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

[Question]: is there a way to update rows in Qdrant vector store using llama index? #17520

Open
1 task done
mirallm opened this issue Jan 15, 2025 · 4 comments
Open
1 task done
Labels
question Further information is requested

Comments

@mirallm
Copy link

mirallm commented Jan 15, 2025

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

https://docs.llamaindex.ai/en/stable/examples/vector_stores/QdrantIndexDemo/
Based on this doc, i cant find anything, but i would like to be able to update using llama index rows in qdrant especially node_content because it is actually created automaticall y with VectorStoreIndex @dosu

@mirallm mirallm added the question Further information is requested label Jan 15, 2025
Copy link

dosubot bot commented Jan 15, 2025

I couldn't find specific methods in LlamaIndex for directly updating existing entries in a Qdrant vector store, particularly for updating the node_content. However, a common workaround is to delete the existing entries and then re-add them with the updated information. This approach is demonstrated in the LlamaIndex documentation for other vector stores, such as Redis, where entries are updated by deleting and re-adding them [1].

If you need to update the node_content, you can follow a similar process:

  1. Delete the existing entry using its node ID.
  2. Modify the document as needed.
  3. Re-index the modified document using the VectorStoreIndex.

This method ensures that the updated content is stored in the vector store.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@logan-markewich
Copy link
Collaborator

delete and re-insert imo

@mirallm
Copy link
Author

mirallm commented Jan 15, 2025

@logan-markewich but i want to avoid recreating the embeddings since only metadata are changed

@logan-markewich
Copy link
Collaborator

You can get the existing node and copy the embeddings i think? Get the node, updste the metadata, delete, add again

vector_store.get_nodes([node_id]) -> vector_store.delete_nodes([node_id]) -> vector_store.add([node])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants