Get
Retrieves, decrypts and returns items from their IDs. If an item does not exist at that ID, it will return an empty object.Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
ids | List[str] | - | Item IDs to retrieve & decrypt |
include | List[str] | "vector", "contents", "metadata" | (Optional) List of item fields to return. Can include vector, contents, and metadata (vector only for IVFFlat indexes). |
Returns
List[Dict]: Decrypted item fields for each item, including id and specified fields (e.g., vector, contents, and metadata).
The
contents field is always returned as bytes, regardless of whether it was originally stored as a string or bytes. All contents are encoded to bytes and encrypted before storage.Exceptions
ValueError
ValueError
- Throws if the item could not be retrieved or decrypted.