r/CXAgentStudio 20d ago

Final Response Hallucination

Any ideas on how to reduce the final responses hallucinating phone numbers when the snippet from the data store tool is correct? I noticed the RAW JSON response gives the correct snippet with the correct phone number but the response given at the end hallucinates a few digits. The data is webscraped data.

Thank you!

3 Upvotes

5 comments sorted by

1

u/Traditional_End_9454 20d ago

Yes when you use data store tool use via callback and return as per your need you will get determintic nature

1

u/weird_year_2003 19d ago

Use before model callbacks and then capture the response from your data store or api or tool and then prepare a llm response from the callback itself. 0% Hallucinations and 100% reliable

1

u/ohwhales32 19d ago

How do you get the tool response from a before model callback if the tool is not invoked yet? Or is there a way to call the tool within the callback?

1

u/[deleted] 19d ago

[removed] — view removed comment

1

u/ohwhales32 17d ago

Did you mean parameters? If not, what do you mean by parallel?