Nearest Neighbors By Embedding
POST/v1/project/data/get/nearest_neighbors/by_embedding
Nearest Neighbors By Embedding
Request
- application/json
Body
required
- MOD1
- MOD2
Array [
]
atlas_index_id Atlas Index Id (string)required
Unique atlas index id
queries
object
required
A set of embeddings to query. Where n is the number of vectors to search and d is the vector dimensionality, this can be either an nxd numpy array encoded to base64, OR a list of n lists with d numbers per list.
anyOf
string
items number
type
k K (integer)
Default value: 4
The number of neighbors to return
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
neighbors array[]required
nested list of nearest neighbors
distances array[]required
distances of the neighbors to queries
{
"neighbors": [
[
"string"
]
],
"distances": [
[
0
]
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...