Skip to main content
Use GET https://api.ai-baseline.dev/{org}/{base}/v2/metadata-filters to inspect the selected knowledge base’s metadata-filter fields, value types, supported operators, bounds, and optional categorical values. Fields depend on the base’s domain, and available values depend on its corpus. The examples below use the S&P 500 base, baseline/sandp500. Discover filters again when switching bases; SEC fields such as sec_ticker are specific to this example. See knowledge bases and domains.
To inspect one field:

Available Fields

The metadata endpoint returns the current field list. For the S&P 500 domain, supported fields include:

Shorthand Forms

Scalar values use eq:
Arrays use in:
Operator objects use the field-specific operators listed above:

Filter Semantics

Caller-provided metadata_filters are supported for research and agentic_research. basic rejects non-empty metadata filters, and basic is the default mode. If you send metadata_filters, explicitly set mode to research or agentic_research. Use metadata_filters, not filters. The legacy filters request key is rejected by request validation. Boolean expression roots such as and, or, not, and field are not part of the supported metadata filter format and return FILTER_EXPRESSION_UNSUPPORTED.

Limits

The API validates metadata filters before running the query: Validation errors use the standard ErrorResponse envelope.