Skip to main content

Run an agent retrieval dry run

POST 

/agents/:agent_id/search

Runs the retrieval placeholders of an agent against the pipeline named in the x-pipeline-id header, without calling an LLM, and returns the fragments that each retrieval placeholder retrieves. The body takes the prompt, classification and filters fields of an agent execution. A client application uses the dry run to test the placeholders, filters and classifications of an agent.

Permissions. Execute on the agent and on the pipeline.

Agents and prompt templates describes retrieval placeholders, and Filter operators describes the filter language.

Request​

Responses​

An object that maps the name of each retrieval placeholder to the fragments that the placeholder retrieved, in ascending order of distance. query placeholders do not appear.