tryAGI / LangChain

C# implementation of LangChain. We try to be as close to the original as possible in terms of abstractions, but are open to new entities.
https://tryagi.github.io/LangChain/
MIT License
585 stars 87 forks source link

Feature Request: Search collection items by metadata (datasource path) #446

Open HavenDV opened 3 months ago

HavenDV commented 3 months ago

Discussed in https://github.com/tryAGI/LangChain/discussions/441

Originally posted by **irfansuteja** August 21, 2024 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.
robalexclark commented 1 month ago

Got a branch with changes to search sql lite by metadata - getting a 403 when trying to push the branch. Do you need to grant me any permissions?