@Logan M Actually I found a way to make the index store and docstore updated when using pgvector store, we can do that by enabling the
store_nodes_override
western_index = VectorStoreIndex.from_documents(documents,
service_context=self.service_context,
storage_context=self.storage_context,
store_nodes_override=True)
The problem is, somehow the generated
nodes_dict
is not respected by the query_engine, and it still search from all nodes instead of only from the nodes that belong to that index.
----
he index store and docstore is not used when using a vector store integration. This is because the entire index is stored in the vector store.
I don't think this statement is always true, because we can disable that behaviour on VectorStore
stores_text=False
. CMIIW.