Fetch records by ID
To fetch records from a namespace based on their IDs, use thefetch operation with the following parameters:
namespace: The namespace containing the records to fetch. To use the default namespace, set this to"__default__".ids: The IDs of the records to fetch. Maximum of 1000.
For on-demand indexes, since vector values are retrieved from object storage, fetch operations may have increased latency. If you only need metadata or IDs, consider using the
query operation with include_values set to false instead. See Decrease latency for more details.Fetch records by metadata
To fetch records from a namespace based on their metadata values, use thefetch_by_metadata operation with the following parameters:
namespace: The namespace containing the records to fetch. To use the default namespace, set this to"__default__".filter: A metadata filter expression to match the records to fetch.limit: The number of matching records to return. Defaults to 100. Maximum of 10,000.
genre field set to documentary from namespace example-namespace:
curl
curl
Fetch limits
Fetch by ID limits:| Metric | Limit |
|---|---|
| Max IDs per request | 1000 IDs |
| Max request size | N/A |
| Max request rate | 100 requests per second per index |
| Metric | Limit |
|---|---|
| Max records per response | 10,000 records |
| Max response size | 4MB |
| Max response rate | 10 requests per second per namespace |