Search a vector store using either text or a vector.
cURL
curl --request POST \ --url https://api.example.com/api/v1/vector_stores/{vector_store_id}/search \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "query_vector": [ 123 ], "limit": 5 } '
{ "items": [ { "item": { "document_id": "<string>", "text": "<string>", "embedding": [ 123 ], "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "document_type": "platform_file", "model_id": "platform", "metadata": {} }, "score": 123 } ], "total_count": 123, "next_page_token": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "has_more": false }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Request to search a vector store.
Vector to search for
Maximum number of results to return
x <= 10
Successful Response
Show child attributes