Open deb007 opened 4 months ago
I am also having this issue, and have not yet found a resolution.
I believe it is now working correctly for me. I had to do 2 things.
tool = PDFSearchTool( pdf='file.pdf', config=dict( llm=dict( provider="azure_openai", # or google, openai, anthropic, llama2, ... config=dict( model=os.environ.get("MODEL"), deployment_name=os.environ.get("DEPLOYMENT_NAME"), api_key=os.environ.get("AZURE_OPENAI_KEY"), ), ), embedder=dict( provider="azure_openai", # or openai, ollama, ... config=dict( model="text-embedding-ada-002", deployment_name="text-embedding-ada-002", api_key=os.environ.get("AZURE_OPENAI_KEY"), ), ), ) )
embeddings = AzureOpenAIEmbeddings(deployment=self.config.deployment_name, api_key=api_key, base_url=api_base)
This solution executes (the parameters are accepted) but it's not constructing a RAG DB for me. Weirdly, when I use the code with openAI (not AzureopenAI) it creates the Chroma DB as normal. Then, if I use my code as @DavidGayda outlines above with AzureOpenAI it adds the new text to that existing DB.
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Hello, following up on this issue. Is there a fix available for using PDFSearchTool and Azure OpenAI?
Same question, anyone figure out this?
Same question, anyone figure out this?
https://github.com/crewAIInc/crewAI/issues/541#issuecomment-2118393378
Hello, I am trying out the PDFSearchTool with Azure OpenAI. I see
provider = azure_openai
is a valid option but I am unable to get it working. This is my current code:Getting error:
Any kind of help will be much appreciated.