Skip to content

Conversation

@nesnyx
Copy link

@nesnyx nesnyx commented Dec 15, 2025

Description

Add comprehensive error handling and fallback logic to improve robustness
of the retrieval graph when API calls fail or no documents are found.

Changes

  • Added try-catch blocks to checkQueryType() function
  • Added validation for empty document retrieval in retrieveDocuments()
  • Added fallback to 'retrieve' mode when router model fails
  • Added hasDocuments flag to state for downstream handling
  • Added console warnings for better debugging

- Add try-catch blocks to checkQueryType function
- Add validation for empty document retrieval
- Add fallback to 'retrieve' mode on router error
- Add hasDocuments flag to state for better error handling
- Add console warnings untuk debugging"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant