Keeping track of vector data by Id #358
Replies: 1 comment
-
For those wondering the constructor of class Document returns the Id so you can grab it and do what you like with it before you add it to a vector store. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Great work so far and thanks.
The VectorStore add(Document) method returns void. I'm trying to figure out how to keep track of the embedded data. Is there a way when parsing a pdf to the Document type and then adding the Documents to a VectorStore that I can get the Ids returned of the embedded Documents? This way I could persist an association between Document name and Vector Ids in a relational db so that if a document needs to be deleted I know which data in the vector db needs to be deleted.
Cheers
Ben
Beta Was this translation helpful? Give feedback.
All reactions