Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interleaving for multi-source retrieval #457

Open
ystoneman opened this issue Apr 17, 2024 · 0 comments
Open

Add interleaving for multi-source retrieval #457

ystoneman opened this issue Apr 17, 2024 · 0 comments

Comments

@ystoneman
Copy link

Enable interleaving from multiple sources so chatbot scales and synthesizes as connectors increase. Suboptimal aggregation causes relevance and length issues as sources grow.

Interleaving strategy:

  • Chunk into 100-400 word segments
  • Re-rank chunks per source
  • Interleave top chunks
  • Pass to LLM prompt

Benefits:

  • Scales to more sources
  • Produces relevant, synthesized responses
  • Avoids length limits

Got this idea from the "Interleaving" section of Cohere's guide on RAG for large-scale data, which includes this diagram:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant