Skip to content

[Feature Request]: Enhanced String Filtering in Metadata #3416

Open
@itaismith

Description

@itaismith

Describe the problem

This issue tracks the feature request to significantly improve the string filtering capabilities within Chroma's metadata. Currently, string filtering is limited to basic equality checks, which is insufficient for many real-world use cases that require partial matches, pattern matching, and more sophisticated string comparisons.

Additional operators users have asked for include:

  • $contains (or equivalent): To check if a string metadata field contains a specific substring.
  • $not_contains (or equivalent): To check if a string metadata field does not contain a specific substring.
  • $like (or equivalent): To support SQL-LIKE pattern matching using wildcards (e.g., % for zero or more characters, _ for a single character).
  • $regex (or equivalent): To enable filtering based on regular expressions for advanced pattern matching.

Related user issues:

Describe the proposed solution

To discuss

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions