run-llama / voice-chat-pdf

Use OpenAI's realtime API for a chatting with your documents
MIT License
261 stars 51 forks source link

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

Open Shameel123 opened 2 weeks ago

Shameel123 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

Did you run the generate script?

Shameel123 commented 1 week ago

Yes, generting it gives following error:

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