Find answers from the community

Home
Members
slyapustin
s
slyapustin
Offline, last seen last week
Joined November 28, 2024
Hey everyone,

I have a question about updating documents in a vector store. I'm trying to figure out how to update nodes for a document when the document gets updated.

For example, if my article is revised, I want to update it in the vector store without doing a lot of extra work. However, it seems that even when I use docstore_strategy=DocstoreStrategy.UPSERTS_AND_DELETE, the nodes in my document don't automatically get replaced.

I manually construct my Document object with the same id as the original, expecting it to replace the existing one. Is there something I'm missing in how updates are handled? Why aren't my document nodes being replaced as expected?

I saw a lot of the similar questions in the Github.

Am I missing something?
4 comments
L
s