Repository navigation
Search collection items by metadata (datasource path) #441
Unanswered
irfansuteja
asked this question in
Q&A
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. |
1 reply
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.
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.
All reactions