langchain_core.utils.iter
.batch_iterate¶
- langchain_core.utils.iter.batch_iterate(size: int, iterable: Iterable[T]) Iterator[List[T]] [source]¶
Utility batching function.
- Parameters
size (int) –
iterable (Iterable[T]) –
- Return type
Iterator[List[T]]