Skip to main content

Method

The fetch method allows you to retrieve vectors from the index based on their identifiers. It takes the following input parameters:
  • ids: A string or a list of strings representing the identifiers of the vectors to be fetched.
  • include_vectors: A boolean flag indicating whether to include vectors in the fetch results.
  • include_metadata: A boolean flag indicating whether to include metadata in the fetch results.
As a response, following field is returned:
  • vectors: A list containing information for each fetched vector, including id, vector, and metadata.

Fetch Example

Alternatively, you can fetch a singular vector: