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

SummaryIndex expects vector_store.json; causes continual recreation of this file #839

Open
reidperyam opened this issue May 15, 2024 · 2 comments

Comments

@reidperyam
Copy link

I noticed that when creating the default storage context from persistDir, it defaults to trying to load the vector_store.json file. However, the summary index does not create this file (or it does not persist it), so the "No valid data found at path: .../vector_store.json starting new store." pops up every time.

vectorStore =

Originally posted by @pelikhan in #649 (comment)

@reidperyam
Copy link
Author

a workaround to avoid rebuilding the vector_index continually is to pass an empty VectorIndex in the constructor of the storageContext:

  const storageContext = await storageContextFromDefaults({
    persistDir,
    vectorStore: new SimpleVectorStore(),
  });

@marcusschiesser
Copy link
Collaborator

@reidperyam this is a good workaround. The SummaryIndex indeed doesn't need a vector store and the current design of the storage context must contain a vector store. I added a PR to ignore the warning: #861 @himself65 please have a look and merge

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

2 participants