I am using CSVSearchTool as well as JSONSearchTool in my code. The task using the CSVSearchTool is giving correct rag search result from the specified CSV file. However the task using the JSONSearchTool is somehow referring the CSV file instead of looking into the JSON file. Now, to test, even if I completely remove the CSV file and corresponding Agents and Tasks, the JSON RAG search is still yielding the vector search content from the CSV file. Can someone please help me understand what might be the issue?
Can you share snippets of your crew and agents setup. It might help others fully understand your issue and help.
Have been able to resolve this. Turns out that while instantiating the corresponding RAG tool, within the “config” parameter I need to declare separate vector dbs for separate RAG tools to keep the contents non-interfering.
E.g. for the CSVSearchTool:
“vectordb”:{
“config”:
{“dir”:“crew-db-csv”}
}
This helped to retrieve the content from corresponding embedding only.
1 Like