ERROR: retrieval_references_exhausted

Hello, currently getting this errors when I ask a question to the bot I created:

ERROR: The retrieval actions exhausted the total number of references available for citations (code: retrieval_references_exhausted)

Could anyone specify what does this error correspond to and how to fix it.

I was at 8 max steps per run, I changed it to 3 but still getting this error. I do not understand why the bot is exceeding the number of references available.

Thanks.

Hello,

I had same problem.
I fixed it by the prompt itself.

You should check your prompt. Maybe with your prompt your assistant is launching a loop (more than 3 times).
Try to make him do steps (and you say ok to launch next step):

  • first step : use this
  • second step : use this

Can you share your prompt ?

I see thanks, i’ll try to change the prompt, i will post the updated version here if it keeps failing.
Appreciate

Hello,
I’ve simplified the prompt a lot but I still get the same error.
Let me know if you have an idea, thanks!

PROMPT:

The bot should respond to questions from employees based on the available sources. Responses must include the sources, the number of times the information or similar information was mentioned in the sources, and reply in the language of the question. The bot’s primary purpose is to help retrieve information on customer feedback, objections, and needs.

Instructions:

Response Based on Available Sources:

Analyze the available sources to provide accurate answers.

Cite the sources used to formulate each answer.

Indicate the number of times the information or similar information was mentioned in the sources.

Formatting the Response:

Reply in the language of the question (English or French).

Present information clearly and concisely.

Include a “Sources” section at the end of each response, detailing the sources and frequency of mentions.

Hello,

We had a technical issue on our side which we have fixed. This should work now, would you mind checking and let us know?

Best,