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

{"message":"Cannot initialize VectorStoreIndex without nodes or indexStruct"} #5

Open
Shameel123 opened this issue Oct 15, 2024 · 3 comments

Comments

@Shameel123
Copy link

I am getting this error when I am asking for query.

This is how the query was constructed:


http://localhost:3000/api/context?query=Can%20you%20tell%20me%20what%20that%20PDF%20is%20about%3F

This is what I got:

{"message":"Cannot initialize VectorStoreIndex without nodes or indexStruct"}

Code gave an error at line 304:

if (!response.ok) {
> 305 |       throw new Error(`HTTP error! status: ${response.status}`);
      |         

Please let me know what to do with this, thank you!

@Shameel123
Copy link
Author

This is in the console:

[context] Processing query: "Can you tell me what that PDF is about?"
No valid data found at path: cache/index_store.json starting new store.

@marcusschiesser
Copy link
Collaborator

Did you run the generate script?

@Shameel123
Copy link
Author

Yes, generting it gives following error:

No valid data found at path: cache\index_store.json starting new store.

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