when using phidata, why my agent can’t read the data in the knowledgebase? /u/FunDatabase7098 Python Education

if __name__ == ‘__main__’:

pdf_knowledge_base = PDFKnowledgeBase(

path=”1.pdf”,

vector_db=ChromaDb(

collection=”pdf_knowledge_base”,

embedder=OllamaEmbedder()

),

reader=PDFReader(chunk=False),

)

pdf_knowledge_base.load()

agent = Agent(

knowledge=pdf_knowledge_base,

model=Ollama(id=”qwen2.5:1.5b”)

)

agent.print_response(“pls parse the data in the knowledge base and give me the json output”)

above is the code i write. what should i change to fix this problem.

submitted by /u/FunDatabase7098
[link] [comments]

​r/learnpython if __name__ == ‘__main__’: pdf_knowledge_base = PDFKnowledgeBase( path=”1.pdf”, vector_db=ChromaDb( collection=”pdf_knowledge_base”, embedder=OllamaEmbedder() ), reader=PDFReader(chunk=False), ) pdf_knowledge_base.load() agent = Agent( knowledge=pdf_knowledge_base, model=Ollama(id=”qwen2.5:1.5b”) ) agent.print_response(“pls parse the data in the knowledge base and give me the json output”) above is the code i write. what should i change to fix this problem. submitted by /u/FunDatabase7098 [link] [comments] 

if __name__ == ‘__main__’:

pdf_knowledge_base = PDFKnowledgeBase(

path=”1.pdf”,

vector_db=ChromaDb(

collection=”pdf_knowledge_base”,

embedder=OllamaEmbedder()

),

reader=PDFReader(chunk=False),

)

pdf_knowledge_base.load()

agent = Agent(

knowledge=pdf_knowledge_base,

model=Ollama(id=”qwen2.5:1.5b”)

)

agent.print_response(“pls parse the data in the knowledge base and give me the json output”)

above is the code i write. what should i change to fix this problem.

submitted by /u/FunDatabase7098
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *