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: support for different MetadataStores in VectorStore #88

Open
akonarski-ds opened this issue Oct 11, 2024 · 0 comments
Open

feat: support for different MetadataStores in VectorStore #88

akonarski-ds opened this issue Oct 11, 2024 · 0 comments
Labels
core Changes to the core package feature New feature or request integrations Changes in vendor integration
Milestone

Comments

@akonarski-ds
Copy link
Collaborator

akonarski-ds commented Oct 11, 2024

VectorStore class should support different ways of storing metadata that is associated with stored vectors. Some of the vector stores providers allow to store metadata in the same DB as vectors, but some of them are missing such support.
To solve this we can add field to VectorStore class that will allow to provide external MetadataStore:

class MetadataStore(ABC):
     ...
     async def store(self, key: str | UUID, metadata: dict) -> None:
          ...

     async def query(self, query: str) -> dict:
         ...

     async def get(self, key: str | UUID) -> dict:
        ...


class VectorStore:
    metadata_store: MetadataStore
    ...

    def __init__(self, metadata_store: MetadataStore = DEFAULT_METADATA_STORE):
@micpst micpst added feature New feature or request core Changes to the core package integrations Changes in vendor integration labels Oct 11, 2024
@mhordynski mhordynski added this to the Ragbits 0.4 milestone Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to the core package feature New feature or request integrations Changes in vendor integration
Projects
Status: Ready
Development

No branches or pull requests

3 participants