> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatzy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Improving agent responses

### 1. If conversational AI agent isn't providing the answer you expect.

you can follow these troubleshooting steps

<Accordion title="When the answer comes from the knowledge base">
  This scenario applies when the information you expect the agent to provide is in your uploaded documents or data.

  **1. Verify the content**: First, check that the correct answer is present within your knowledge base documents.
  <br />**2. Check the context**: If the information is present, the agent may not be retrieving it correctly.

  * **If the appropriate chunk is in the context**: The agent is retrieving the correct information but is not using it properly. In this case, you should **change the prompt** to better guide the agent's response.
  * **If the appropriate chunk is NOT in the context**: The agent is failing to retrieve the correct information. You should **adjust your search settings**, such as the `Hybrid Search` configuration, `chunk length`, or `context` to improve retrieval.
</Accordion>

<Accordion title="When the answer comes from the prompt">
  This scenario applies when the desired answer is part of the agent's core instructions, personality, or a specific rule you've defined.

  You should simply **modify the prompt** to be more specific or to include the exact instructions you want the agent to follow.
</Accordion>
