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 namespaced vector stores to storage context #8753

Merged
merged 4 commits into from
Nov 7, 2023

Conversation

logan-markewich
Copy link
Collaborator

Description

There are some scenarios where you may want several vector indexes, and those vector indexes could come from any vector db provider.

This PR updates the storage context to add high-level namespaces for vector stores, to help support future development.

I have personally tested storing/loading old and new indexes for backwards compatibility.

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • I stared at the code and made sure it makes sense

@logan-markewich logan-markewich merged commit 4911527 into main Nov 7, 2023
@logan-markewich logan-markewich deleted the logan/multiple_vector_stores branch November 7, 2023 21:56
) -> Dict[str, VectorStore]:
"""Load from namespaced persist dir."""
vector_stores: Dict[str, VectorStore] = {}
for fname in os.listdir(persist_dir):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@logan-markewich I think this line may have broken using a remote fs like gcsfs?

ryanpeach pushed a commit to OnScale/llama_index that referenced this pull request Feb 7, 2024
This was referenced Feb 7, 2024
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

Successfully merging this pull request may close these issues.

3 participants