-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Description
When the knowledge-space agent processes a query, there are cases where the retrieval step returns no relevant documents or the LLM / external API call fails or times out. In such situations, the agent currently returns a generic or unclear response, which can be confusing for users.
Expected behavior
- If no relevant documents are retrieved, return a clear, user-friendly message suggesting the user refine or rephrase the query.
- If an LLM or external API call fails, handle the error gracefully and return a meaningful fallback response.
- Log errors internally to aid debugging, without exposing sensitive details to the user.
Proposed improvement
- Add a check for empty retrieval results before invoking the LLM.
- Wrap LLM / API calls in proper error handling.
- Return consistent, descriptive responses for empty results, timeouts, or API failures.
Additional context
This would improve user experience and debuggability, especially for new users unfamiliar with the dataset scope.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels