How can i do RAG with multiple PDFs?
I’m currently using the PDFSearchTool and it works well with one single PDF but I didn’t find any example or managed to pass a list of PDFs. I tried the Knowledge solution but the information used to answer the query by the LLM was not restricted only to the passed knowledge documents and thus I found hallucinations in the answer. That is why I’d like to use the PDFSearchTool that instead grounded better the information used from the LLM to answer
1 Like
Here is something to try. Give your Agent both the PDFSearchTool and the Directory Read Tool.
Don’t put a path to a file or folder in the PDFSearch Tool, but put a path to your folder in the Directory Read Tool. Give it a shot and let me know.