https://retellai.com/?utm_source=discord&utm_medium=seo logo
the bot is having trouble providing accurate dates...
# ❓・ai-evy-support
x
@AI Evy the bot is having trouble providing accurate dates for events and if the knowledge base or prompt states that there are multiple of a single event, in my case a commission meeting, when asked when is the next commission meeting it just says the first one written instead of the actual next one chronologically
a
Thanks for tagging me @xmangomelon. I'll look through relevant sources and get back to you shortly.
### Answer The issue you're describing with the AI agent returning the first chronologically listed event instead of the next upcoming event is related to how the knowledge base retrieval system works. During a call, the agent uses the transcript to find the most relevant chunks from the knowledge base and feeds them to the LLM as context [(1) ]() . However, this retrieval process doesn't inherently understand temporal ordering or "next" in a chronological sense. To address this issue, you can add specific instructions to your agent's prompt to help it understand temporal context. The documentation suggests adding prompts like this to constrain the LLM's behavior :
Copy code
Only answer using the information in ## Related Knowledge Base Contexts.
If ## Related Knowledge Base Contexts is missing or does not contain relevant information, respond:
"There is no related information in knowledge base."
For your specific use case with commission meetings, you could enhance this with temporal instructions such as: - Structure your knowledge base entries with clear dates in a consistent format - Include instructions in your prompt to identify the current date and find the next chronological occurrence - Consider organizing meeting information with clear date formatting to help the AI understand temporal relationships If the knowledge base continues to provide inaccurate temporal responses, you might need to restructure how the meeting information is formatted in your knowledge base documents . The retrieval system works best when information is clearly organized and formatted, particularly for time-sensitive data [(2) ]() .
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) [[2] Simplify Support with Retell AI’s Knowledge Base | Retell AI](https://www.retellai.com/blog/knowledge-base-feature) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.