Skip to main content
Metadata filters can be applied during nearest-neighbor search or used standalone via meta_search / meta_search_paginated.

Privacy notice

Metadata fields (tag1tag5, facets) are stored in plaintext and are not encrypted by default. Chunk content and embedding vectors are end-to-end encrypted — metadata is the only part of a chunk that the XTrace server can read.If metadata privacy is a requirement, consider the following mitigation until native support is available:
  • Store only opaque identifiers in metadata tags (e.g. a hashed or randomly assigned user_id rather than a readable name), and keep the mapping in your own system.
  • Restrict filters to equality checks ($eq / $in) on those opaque values. Range operators ($gt, $lte, $begins_with, etc.) leak ordering information and should be avoided when the tag value itself is sensitive.
XTrace plans to support encrypted metadata indexes natively in a future release.

Metadata fields

Each chunk has five indexed scalar tags and one multi-value field:
All tags are compared as strings. For correct range ordering, numeric values must be zero-padded to a fixed width and dates must use ISO 8601 UTC.

Supported operators

Scalar tags (tag1tag5)

facets (multi-value)

Query examples

Nearest-neighbor search with a filter:
Range filter on a numeric tag:
Date range with facet refinement:
Subset facet filter:
Standalone metadata search:
Paginated metadata search: