Skip to content

Add more regex details to docs #5118

@philipithomas

Description

@philipithomas

Current page: https://docs.trychroma.com/docs/querying-collections/full-text-search#full-text-search-and-regex

Details to include:

  • Limits: Must be at least 3 characters (including full-text search)
  • Maximum length via quota on cloud, but no limit on single-node.
  • Uses Rust regex - look at docs for full syntax support (including - does not support lookaheads) https://docs.rs/regex/1.11.1/regex/#syntax
  • Don’t support byte patterns
  • Can be combined with other filters - consider a complex example with multiple filters

Additional details which we can probably skip, but adding from my notes:

  • Recommend adding non-trivial substrings in regex patterns for optimal speed because it speeds up secondary scans.
  • Worst case, regex scales linearly with size of collection, but avg 500ms

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions