Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
When the CSVSearch Tool is run the below error occurs
Calling Method
def analyze_agent(self, csv):
tool = CSVSearchTool(csv = csv)
return Agent(
role="CSV Search Specialists",
goal="Collect extensive and detailed data about each candidate.",
tools=[tool],
backstory=dedent("""\
As a CSV Search Specialist, you role is to search through CSV file and create a summary of each candidate which can be further used for scaling that candidate from 1-10."""),
verbose=True
)
Error
ValueError: Expected where value for $and or $or to be a list with at least two where expressions, got [{'app_id': 'default-app-id'}]
Traceback:
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 589, in _run_script
exec(code, module.dict)
File "D:\AI\placementCrew\src\app.py", line 69, in
main()
File "D:\AI\placementCrew\src\app.py", line 29, in main
analyze_agent = agents.analyze_agent(csv)
File "D:\AI\placementCrew\src\agents.py", line 7, in analyze_agent
tool = CSVSearchTool(csv = csv)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\tools\csv_search_tool\csv_search_tool.py", line 34, in init
self.add(csv)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\tools\csv_search_tool\csv_search_tool.py", line 45, in add
super().add(*args, kwargs)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\tools\rag\rag_tool.py", line 59, in add
self.adapter.add(*args, *kwargs)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\adapters\embedchain_adapter.py", line 25, in add
self.embedchain_app.add(args, kwargs)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\embedchain.py", line 182, in add
documents, metadatas, _ids, new_chunks = self._load_and_embed(
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\embedchain.py", line 318, in _load_and_embed
existing_doc_id = self._get_existing_doc_id(chunker=chunker, src=src)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\embedchain.py", line 252, in _get_existing_doc_id
existing_embeddings = self.db.get(
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\vectordb\chroma.py", line 132, in get
return self.collection.get(**args)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\chromadb\api\models\Collection.py", line 195, in get
valid_where = validate_where(where) if where else None
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\chromadb\api\types.py", line 342, in validate_where
raise ValueError(
When the CSVSearch Tool is run the below error occurs Calling Method
Error ValueError: Expected where value for $and or $or to be a list with at least two where expressions, got [{'app_id': 'default-app-id'}] Traceback: File "C:\Users\Dell.conda\envs\placement\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 589, in _run_script exec(code, module.dict) File "D:\AI\placementCrew\src\app.py", line 69, in
main()
File "D:\AI\placementCrew\src\app.py", line 29, in main
analyze_agent = agents.analyze_agent(csv)
File "D:\AI\placementCrew\src\agents.py", line 7, in analyze_agent
tool = CSVSearchTool(csv = csv)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\tools\csv_search_tool\csv_search_tool.py", line 34, in init
self.add(csv)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\tools\csv_search_tool\csv_search_tool.py", line 45, in add
super().add(*args, kwargs)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\tools\rag\rag_tool.py", line 59, in add
self.adapter.add(*args, *kwargs)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\crewai_tools\adapters\embedchain_adapter.py", line 25, in add
self.embedchain_app.add(args, kwargs)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\embedchain.py", line 182, in add
documents, metadatas, _ids, new_chunks = self._load_and_embed(
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\embedchain.py", line 318, in _load_and_embed
existing_doc_id = self._get_existing_doc_id(chunker=chunker, src=src)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\embedchain.py", line 252, in _get_existing_doc_id
existing_embeddings = self.db.get(
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\embedchain\vectordb\chroma.py", line 132, in get
return self.collection.get(**args)
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\chromadb\api\models\Collection.py", line 195, in get
valid_where = validate_where(where) if where else None
File "C:\Users\Dell.conda\envs\placement\lib\site-packages\chromadb\api\types.py", line 342, in validate_where
raise ValueError(