Feature Request: Search collection items by metadata (datasource path)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.1k
- Forks
- 141
- Avg merge
- 2d 18m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the vectorDatabase.AddDocumentsFromAsync() usage described in the issue and review the discussion in #441. Trace how source-path metadata is stored and how vector collections currently search or delete documents. Done should support finding and removing all split documents sharing the same metadata path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100