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

feat: add HybridVectorStore API #289

Open
mhordynski opened this issue Jan 21, 2025 · 0 comments
Open

feat: add HybridVectorStore API #289

mhordynski opened this issue Jan 21, 2025 · 0 comments
Labels
feature New feature or request

Comments

@mhordynski
Copy link
Member

Feature description

The class accepts a dictionary containing VectorStore objects that are to be used underneath. By default, when writing to all vector stores, all passed elements are saved, but there should be the option to customize this behavior—"routing" which element goes to which store or modifying elements based on the store. This could likely take the form of a function/method that takes in the entire list of elements and the name (?) of the vector store, and returns a list of elements that should go to that store. By default, all elements are returned, but they can also be filtered, for example, saving a certain aspect of an element in one store (e.g., text) and another aspect in another store (e.g., image).

When querying, there should optionally be the capability to choose which stores we want to search through. If the same element is returned by multiple stores (the class must be able to detect this), the results should be automatically deduplicated. There should be configurable strategies for how this affects the order of elements (you could model this on, for example, strategies used in Qdrant).

Motivation

--

Additional context

No response

@mhordynski mhordynski added the feature New feature or request label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant