Skip to main content
Retrieves vectors from the encrypted index by their IDs, with options to specify which fields to include in the results.

Parameters

include defaults differ between endpoints: get returns ["vector", "contents", "metadata"] by default, while query returns [] (only id).

Returns

List[Dict] - List of dictionaries containing the requested vector data.
The contents field is returned in its original format (string or bytes) as it was stored. String contents remain strings, and bytes contents remain bytes after decryption.

Exceptions

  • Throws if the API request fails due to network connectivity issues.
  • Throws if authentication fails (invalid API key).
  • Throws if the encryption key is invalid for the specified index.
  • Throws if there are internal server errors preventing the retrieval.
  • Throws if the ids parameter is null, undefined, or empty.
  • Throws if the include parameter contains invalid field names.

Example Usage