Example project based on phi ws and using the playground API.
I’m creating a knowledgebase using pgvector and loading in a small set of test documents with unique fabricated content (not found on internet)
using the models openai:gpt-4o-mini or claude-3-opus-20240229 I can use the /v1/playground/agent/run endpoint and get the expected answer.
However using gemini-1.5-flash I get “i don’t know. my knowledge base does not contain information about {subject}”
Why might this be?
does it matter that the kb was constructed using the PDFKnowledgeBase with AgenticChunking?
Hi @avowkind
Thank you for reaching out and using Phidata! I’ve tagged the relevant engineers to assist you with your query. We aim to respond within 24 hours.
If this is urgent, please feel free to let us know, and we’ll do our best to prioritize it.
Thanks for your patience!
At the heart of it, it really comes down to the agent properly understanding the task and making the right function call. Sometimes, models can hallucinate and need a little extra guidance with explicit instructions to be more reliable, while other times, they handle things well with minimal input. I would love to have a look at your agent config if you can share and to help you guide better.
I know this can be tricky, but happy to help figure it out with you! Let me know how it’s going.