Search environment files

http
POST /projects/{project_reference}/environments/{environmentName}/search

Search environment files. Requires project.files.read.

Parameters

NameInRequiredDescription
project_referencepathYes
environmentNamepathYes

Request body

FieldTypeRequiredDescription
modelobject
document_scopeobject
vectorarrayYesPre-computed query embedding vector. Generate it with an embedding provider before sending the request.
dimensionYesEmbedding vector dimension: 768, 1024, 1536, 3072, or 4096.
limitnumberMaximum search results to return, as an integer from 1 to 100.
cursorstringOpaque cursor returned from page_info.next.
thresholdnumberMinimum similarity score for returned semantic matches.

Responses

StatusDescription
200Searches the named environment deployment using a precomputed embedding vector. A deployed environment with no release yields no results; an environment that does not exist for the project is not found.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error