Skip to main content

Nearest Neighbors By Embedding

POST 

/v1/project/data/get/nearest_neighbors/by_embedding

Nearest Neighbors By Embedding

Request

Body

required

    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

    k K (integer)

    Default value: 4

    The number of neighbors to return

Responses

Successful Response

Schema

    neighbors array[]required

    nested list of nearest neighbors

    distances array[]required

    distances of the neighbors to queries

Loading...