How to update documents/embeddings stored in a vector database using semantic memory? #574
-
I've had a look through and it's not clear what the intended workflow is for this scenario. Say I've ingested a number of documents, but one has been updated, how would I go about updating the memory? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
hi @jcreek you should be able to achieve what you suggest simply by uploading with the same Document ID. If you put multiple files under the same ID you will have to upload all of them, otherwise, those missing will be considered deletions. Typically you might want to have one-file-one-document-ID, to keep things simple. |
Beta Was this translation helpful? Give feedback.
-
hi @dluc Looks like there are duplicate documents getting created in Azure AI Search even upon using the same document id. Am I doing anything wrong or there is a bug? code used to import:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. After adding |
Beta Was this translation helpful? Give feedback.
Thanks for the quick response.
After adding
.WithAzureBlobsDocumentStorage(azureBlobConfig)
while initializing the memoryKernel object, the issue is fixed.