curl $UPSTASH_VECTOR_REST_URL/resumable-query-next \
-X POST \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN" \
-d '{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"additionalK": 2
}'
{
"Scores": [
{
"id": "<string>",
"score": 123,
"vector": [
123
],
"sparseVector": [
{
"indices": [
123
],
"values": [
123
]
}
],
"metadata": {},
"data": "<string>"
}
]
}Resumable Query
Resume
Resumes a previously started query to fetch additional results.
POST
/
resumable-query-next
curl $UPSTASH_VECTOR_REST_URL/resumable-query-next \
-X POST \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN" \
-d '{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"additionalK": 2
}'
{
"Scores": [
{
"id": "<string>",
"score": 123,
"vector": [
123
],
"sparseVector": [
{
"indices": [
123
],
"values": [
123
]
}
],
"metadata": {},
"data": "<string>"
}
]
}Request
string
required
The unique identifier returned from the start resumable query request.
number
required
The number of additional results to fetch.
Response
Object[]
Hide child attributes
Hide child attributes
string
required
The id of the vector.
number
required
The similarity score of the vector, calculated based on the distance
metric of your index.
number[]
The dense vector value for dense and hybrid indexes.
Object[]
Object
The metadata of the vector, if any.
string
The unstructured data of the vector, if any.
curl $UPSTASH_VECTOR_REST_URL/resumable-query-next \
-X POST \
-H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN" \
-d '{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"additionalK": 2
}'
Was this page helpful?
⌘I