Open chiragvels opened 1 day ago
Hello @chiragvels ! This is really odd, but I have not been able to replicate it. Is there also a PDFUrlKnowledgeBase
already defined with the sample pdf?
Hi,
Thanks for your answer promptly.
I have tried PDFUrlKnowledgeBase with sample PDF before trying this PDFKnowledgeBase with my local PDF.
But not really think that I have already defined.
Also I can see it is Dropping collection and Creating collection on every request. I cannot see any documentation where I can continue with each PDF?
Is there any way I can use MongoDB as JSON input file to run this?
I have also this question of Usage.
Once I have knowledge base prepared how I can use same knowledge base to get diffrent answers based on knowledge already prepared? For example I have this knowledge_base ready but to get answer I need to prepare knowledge base everytime?
knowledge_base = JSONKnowledgeBase( path="/ai/local_rag_agent/jaon/input_data.json",
vector_db=vector_db
)
agent = Agent( knowledge_base=knowledge_base, add_references_to_prompt=True, model=Ollama(id="llama3.2"), )
agent.print_response("How has the ranking of 'Cheap Dumpster Rental Near Me' changed over time?", stream=True)
I want to use this agent every time to get the response.
Thanks,
Hi,
I am trying to use vector DB for storing of my PDFs stored locally. So that I take refrence of this code and try to add PDFs in vector DB.
But when I run the script it was still processing PDF from example and not from PDF path I provided.
I am still not getting this behaviour.
My code is: