Parameters
include defaults differ between endpoints: get returns ["vector", "contents", "metadata"] by default, while query returns [] (only id).Returns
Promise<GetResultItem[]>: A Promise that resolves to an array of retrieved vector items with type-safe access to fields. Each item contains the requested fields based on the include parameter. See the GetResultItem type for more details.
Exceptions
Error
Error
- 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.
Validation Errors
Validation Errors
- Throws if the
idsparameter is null, undefined, or empty. - Throws if the
includeparameter contains invalid field names.