Semantic Search

Run a semantic search using natural language and contextual filters. Supports citation formatting.

Request

Request body for semantic search. Includes the query, optional filters, and response formatting preferences.
querystringRequired
The natural language query to search for relevant content.
context_filterobjectRequired

Filters to narrow the search context (collections, artifacts, metadata).

formatenumOptionalDefaults to default
Format of the result content. 'default' returns standard content blocks. 'citations' returns blocks annotated for citation formatting.

Response

Semantic search completed successfully.
contentlist of objects
List of content blocks generated by the tool. Blocks can include plain text, citations, source attributions, or images.
is_errorbooleanDefaults to false
True if the tool encountered an error during execution.

Errors

401
Unauthorized Error
422
Unprocessable Entity Error