Skip to main content
POST
/
v1
/
vector_stores
/
{vector_store_id}
/
search
Search Vector Store
curl --request POST \
  --url https://documents.absconsulting.com/v1/vector_stores/{vector_store_id}/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>"
}
'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "object": "<string>",
      "score": 123,
      "content": "<string>",
      "file_id": "<string>"
    }
  ],
  "query": "<string>",
  "max_num_results": 123,
  "vector_store_id": "<string>",
  "files": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Path Parameters

vector_store_id
string
required

The ID of the vector store.

Body

application/json
query
string
required

The search query. Maximum length: 10,000 characters.

max_num_results
integer | null
default:10

Maximum number of results to return. Must be between 1 and 50.

files
string[] | null

Optional list of file IDs to restrict the search to.

Response

Successful Response

object
string
required

The type of object.

data
SearchVectorStoreResultData · object[]
required

The list of search results.

query
string
required

The search query. Maximum length: 10,000 characters.

max_num_results
integer
required

Maximum number of results to return. Must be between 1 and 50.

vector_store_id
string
required

The ID of the vector store to search.

files
string[] | null

Optional list of file IDs to restrict the search to.