We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c00e1 commit d9da17cCopy full SHA for d9da17c
redisvl/utils/vectorize/text/voyageai.py
@@ -273,7 +273,7 @@ def _embed_many(
273
274
Args:
275
texts: List of texts to embed
276
- batch_size: Deprecated. Token-aware batching is now always used.
+ batch_size: Maximum number of texts to process in each API call.
277
**kwargs: Additional parameters to pass to the VoyageAI API.
278
279
Returns:
@@ -290,7 +290,7 @@ def _embed_many(
290
self._validate_input(texts, input_type, truncation)
291
292
# Use token-aware batching
293
- batches = self._build_token_aware_batches(texts)
+ batches = self._build_token_aware_batches(texts, max_batch_size=batch_size)
294
295
try:
296
embeddings: List = []
0 commit comments