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

Integrate with RAG #121

Open
amztc34283 opened this issue Mar 29, 2024 · 2 comments
Open

Integrate with RAG #121

amztc34283 opened this issue Mar 29, 2024 · 2 comments

Comments

@amztc34283
Copy link

Does the current version allow RAG lookup?

@eyurtsev
Copy link
Collaborator

There's a retrieval mode that you can test out -- we haven't benchmarked it.

The retrieval mode implemented in the service is only per document rather than across documents.

On a per document basis it's likely reducing recall and increasing precision -- b/c it will be identifying only a few relevant chunks.
This doesn't make sense for all use cases. Probably best for use cases where there are long documents where a fact is only expected to appear once or twice overall rather than multiple times across pages.

IMO a good use case for mixing in RAG is when working with a standard set of documents so that the documents can be pre-indexed (rather than indexed at run time), and where we expect users to want to interact with them more than once. If relevant for your use case, you could test this out using the service by building out the retrieval component externally, and sending in the relevant snippets for extraction into the extraction service.

@lhotwll217
Copy link

RAG pipeline endpoint? /extract/{id/rag/{slackRAGId}/?q=collect-all-the-threads-my-coworkers-mention-ai-in-and-give-me-the-metadata-matching-the-schema - I guess ideally your RAG service would be able to route to the appropriate RAG implementation based off the query if you happened to want to integrate more than 1. Forego the id and DB work and keep the machine lean.

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

No branches or pull requests

3 participants