knowhere icon indicating copy to clipboard operation
knowhere copied to clipboard

Expose Agentic Pipeline Signals (evidence_text, stop_reason) in Public API to Prevent Client Hallucinations

Open EricNGOntos opened this issue 6 months ago • 0 comments

When using the Knowhere app to retrieve complex knowledge, the AI agent sometimes hallucinates or fabricates facts if the internal search yields no valid data. Currently, the backend pipeline knows exactly when it couldn't find evidence (e.g., returning a NOT_FOUND status), but this signal is stripped from the API response. We need to expose the internal evidence_text, stop_reason, and failure_reason so the client application can gracefully handle missing information instead of trying to guess or fabricate an answer.

EricNGOntos avatar May 19 '26 07:05 EricNGOntos