For RAG (vectorstore), can files subset be dynamically selected #5259
Unanswered
vodkaslime
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Currently as documented in https://js.langchain.com/docs/use_cases/question_answering/, it looks like we have the basic functionality to:
This works fine in general cases, but what if I want to dynamically select files SUBSET for each chat session?
Let's say I have an app. Not multi-tenant, just single tenant, to put it simple. But here's the thing: I have a single vector database under the hood (let's say
lancedb
), where I stored 100 files. But in the app on top of it, for different chat sessions, I want to have the ability to dynamically select files that should be considered in that specific session. Say I want to select 3 out of the 100 files for chat session 1, and then select another 5 for chat session 2, since different chat sessions may stand for different kinds of tasks, therefore have different file sets.I know this request is kinda like https://js.langchain.com/docs/use_cases/question_answering/per_user but not quite the same. The
per user
feature depends onnamespace
features in vector databases but thedynamic files
feature requires more trivial operations to the vector databases.So just wondering if we have this feature already, or is it on our roadmap?
Thanks
System Info
N/A
Beta Was this translation helpful? Give feedback.
All reactions