Search collection items by metadata (datasource path) #441
Replies: 1 comment 1 reply
-
|
I sort of have a similar question. There doesn't seem to be a way to only add new documents to a vector store, its either delete everything and start again (AddDocumentsToDatabaseBehavior.OverwriteExistingCollection) or add the documents again even if they are always added (AddDocumentsToDatabaseBehavior.AlwaysAddDocuments). I think we need a new option AddDocumentsToDatabaseBehavior.AddNewDocumentsOnly, that only adds documents if they don't already exist. I've got a feeling though that the path might need its own table column to retrieve if efficiently to do the check if it already exists. I'm happy to attempt a PR on this if that is something that would be useful. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In the latest version, is there a function that allows searching a vector collection based on metadata? When using the function vectorDatabase.AddDocumentsFromAsync(), the source path is stored in the metadata.
If a file is split into multiple documents, say five, how can I update the related files? Specifically, I need to delete the vector documents that share the same metadata/path. Is there a function for this, or is there a better approach?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions