Search
POST {{baseUrl}}/engines/:engine_id/search
The search endpoint computes similarity scores between provided query and documents. Documents can be passed directly to the API if there are no more than 200 of them.To go beyond the 200 document limit, documents can be processed offline and then used
Request Body
{"query"=>"the president", "documents"=>["mollit cillum irure"], "file"=>"tempor deserunt of", "max_rerank"=>200, "return_metadata"=>false, "user"=>"user-1234"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"object":"aliqua","model":"culpa mollit","data":[{"object":"quis ullamco","document":-71944099,"score":-27372955.13266051},{"object":"nostrud","document":60251307,"score":27385981.955217436}]}