Get documents by their IDs.
The returned documents have the ID field set to the ID of the document in the vector store.
Fewer documents may be returned than requested if some IDs are not found or if there are duplicated IDs.
Users should not assume that the order of the returned documents matches the order of the input IDs. Instead, users should rely on the ID field of the returned documents.
aget_by_ids(
self,
ids: Sequence[str],
,
batch_size: int | None = None,
batch_concurrency: int | None = None
) -> list[Document]| Name | Type | Description |
|---|---|---|
ids* | Sequence[str] | List of ids to retrieve. |
batch_size | int | None | Default: NoneIf many IDs are requested, these are split in chunks and multiple requests are run and collated. This sets the size of each such chunk of IDs. Default is 80. The database sets a hard limit of 100. |
batch_concurrency | int | None | Default: NoneNumber of threads for executing multiple requests if needed. Default is 20. |