Open sorin-costea opened 5 days ago
Facing the same issue in gemini:
pdf_search_tool = PDFSearchTool(pdf="lorem/Most_Admired_Wine.pdf", config=dict(
embedder=dict(provider="google", config=dict(model="models/gemini-1.5-flash"))
))
...
@agent
def wine_tester(self) -> Agent:
return Agent(
config=self.agents_config['wine_tester'],
verbose=True,
llm='gemini/gemini-pro',
tools=[pdf_search_tool]
)
and error
I encountered an error while trying to use the tool. This was the error: 400 * BatchEmbedContentsRequest.model: unexpected model name format
* BatchEmbedContentsRequest.requests[0].model: unexpected model name format
.
Tool Search a PDF's content accepts these inputs: Search a PDF's content(query: 'string') - A tool that can be used to semantic search a query the lorem/Most_Admired_Wine.pdf PDF's content. query: 'Mandatory query you want to use to search the PDF's content'
Description
I get this error:
Steps to Reproduce
The code I use is (fluff removed for clarity):
Expected behavior
As I cannot influence the format of what the agent sends to the tools, I'd expect the agent would send properly query=string. Could it be the config=... is messing up things?
Screenshots/Code snippets
The error is in the description above
Operating System
Windows 11
Python Version
3.12
crewAI Version
0.67.1
crewAI Tools Version
0.12.1
Virtual Environment
Poetry
Evidence
The error is in the description above
Possible Solution
None
Additional context
Same behaviour when I use the DOCXSearchTool, so there's either something I completely misunderstand, or worse.