Find answers from the community

Updated 2 months ago

I used the ingestion pipeline to store

I used the ingestion pipeline to store embeddings (with Postgres) and when I try to load in the index using VectorStoreIndex.from_vector_store, the nodes are empty. Does anyone know how to resolve this?

Im doing index=VectorStoreIndex.from_vector_store(vector_store=vector_store)
L
m
7 comments
what do you mean the nodes are empty?
@Logan M

nodes=index.docstore.docs.values()
print(โ€œnodes:โ€,nodes)
seems like I might have to set the nodes within the index from my database?
Yea, Docstore isn't used by default with vector db integrations
@Logan M thank you. so Iโ€™d go through all my docs and add them to db via ingestion pipeline to Postgres.

And then have to load all the docs into the docstore of the VectorStoreIndex from the db?

Iโ€™m just trying to use the chat engine for a chatbot. Is this the correct way?
Unless you specifically need the docstore, I wouldn't worry about it ๐Ÿ‘€
Add a reply
Sign up and join the conversation on Discord