Skip to content

Commit a312eb2

Browse files
committed
Lint correction
1 parent c3839ad commit a312eb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redisvl/utils/vectorize/text/voyageai.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ def _embed_many(
290290
self._validate_input(texts, input_type, truncation)
291291

292292
# Use token-aware batching
293-
batches = self._build_token_aware_batches(texts, max_batch_size=batch_size)
293+
batches = self._build_token_aware_batches(
294+
texts, max_batch_size=batch_size if batch_size is not None else 1000
295+
)
294296

295297
try:
296298
embeddings: List = []

0 commit comments

Comments
 (0)