tryAGI / tryAGI/LangChain

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

Open
#446 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.