Parameter | Type | Default | Description |
---|---|---|---|
ids | string[] | - | Array of vector IDs to retrieve from the index |
include | string[] | ["vector", "contents", "metadata"] | (Optional) Fields to include in the response. Valid options: "vector" , "contents" , "metadata" |
Promise<Array<GetResultItem>>
: A Promise that resolves to an array of retrieved vector items, each containing the requested fields based on the include
parameter.
Error
Validation Errors
ids
parameter is null, undefined, or empty.include
parameter contains invalid field names.Field | Type | Description |
---|---|---|
id | string | Unique identifier of the vector (always included) |
vector | number[] | The vector data (included if "vector" in include array) |
contents | Buffer | string | The content data, automatically decoded from base64 if needed (included if "contents" in include array) |
metadata | any | Associated metadata object (included if "metadata" in include array) |