knowhere
knowhere copied to clipboard
Expose Agentic Pipeline Signals (evidence_text, stop_reason) in Public API to Prevent Client Hallucinations
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.