Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAG implementation in CREWAI #247

Open
NeethanShetty07 opened this issue Feb 13, 2024 · 12 comments
Open

RAG implementation in CREWAI #247

NeethanShetty07 opened this issue Feb 13, 2024 · 12 comments

Comments

@NeethanShetty07
Copy link

Hi,

Is there any method implemented which we can link RAG method with agents.

@ZmeiGorynych
Copy link

You could run off this branch #246 and use a LangChain agent with RAG? :)

@slavakurilyak
Copy link

slavakurilyak commented Feb 18, 2024

Similar to issue #18

RAG with tools example here: https://mer.vin/2024/02/crewai-rag-using-tools/

RAG will be one of the first tools on our crew toolkit

-- Joao (@joaomdmoura)

@slavakurilyak
Copy link

RAG is now part of crewai-tools

@NeethanShetty07
Copy link
Author

Hi @slavakurilyak Thanks for the response

@NeethanShetty07
Copy link
Author

Can we attach any pdf or any document and do RAG on these documents using Agents ??

@ilyasudakov
Copy link
Contributor

Can we attach any pdf or any document and do RAG on these documents using Agents ??

@NeethanShetty07 Yeah, I got it working, here's a simple example with .txt file:

from crewai_tools.tools import TXTSearchTool
rag_tool = TXTSearchTool(txt='./sample_data/test.txt')

data_analyst = Agent(
  role='Data Analyst',
  goal='You perfectly know how to analyze any data using provided txt file and searching info via RAG tool',
  backstory='You are data expert',
  verbose=True,
  allow_delegation=False,
  tools=[rag_tool]
)

test_task = Task(
  description="Show me a company name",
  tools=[rag_tool],
  agent=data_analyst
)

test_task.execute()

@Neethan54
Copy link

But i have AzureOPENAI key , But TXTSearchTool is asking OPENAI key for the process , how to do solve this issue?

@P7201
Copy link

P7201 commented Mar 29, 2024

I am having the exact same problem as Neethan54 can anyone please let us know how we pass in the key from AzureOpenAI for the TXTSearchtool?

@SL13PNIR
Copy link

Bump.

Do tools need Open AI keys? I'm trying to use the PDFSearchTool with Mistral, assumed I'd only need OpenAI keys for using an Open AI llm.

@thekizoch
Copy link

Im having the same issue as @Neethan54 and @P7201 , for Azure OpenAI for PDFSearchTool

@manojselvakumar
Copy link

I'd like to understand the same. How to use Azure OpenAI for PDFSearchTool?

@ItzmeAkash
Copy link

how to use groq and other embeddings on PDFSearchTool anyone knows??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants