Closed HamzaFarhan closed 2 months ago
@HamzaFarhan sounds good! Happy to provide input / feedback wherever you need it.
The possible routes that are guaranteed using Instructor
:
LanceDB
tables.query
is in ["exit", "quit", "q"])So the transitions
check for routes 2-4 and we assume that it must be one of the tables otherwise.
ask_assistant
will combine all lancedb_results
and exa_search_results
for context if they exist in the state
, and then reset them to []
We stop after ask_assistant
to get the next query
for router
.
This is a combination of Adaptive-RAG and CRAG.
@HamzaFarhan at a high level this makes sense. Not sure I have feedback without actually playing with it. Did you have some alternate designs / thoughts?
This example has been merged, thank you!
Is your feature request related to a problem? Please describe. Thoughts on adding Corrective Retrieval Augmented Generation (CRAG) as an example?
Describe the solution you'd like Using
Burr
,LanceDB
,Instructor
, and Exa(for web search). No frameworks, the SDKs directly.Describe alternatives you've considered There is a LangGraph tutorial with
Tavily
andChroma
but it skips some steps and could be better overall.Additional context Here's the overview image from the paper