Skip to content

Commit cc41421

Browse files
committed
Counting tokens and create batches
Supporting contextual models Extending the tests
1 parent 7ffcdc2 commit cc41421

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/crewai/src/crewai/rag/embeddings/providers/voyageai/embedding_callable.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ def __call__(self, input: Documents) -> Embeddings:
7373
if isinstance(input, str):
7474
input = [input]
7575

76-
# Early return for empty input
77-
if not input:
78-
return []
79-
8076
# Use unified batching for all text inputs
8177
embeddings = self._embed_with_batching(list(input))
8278

0 commit comments

Comments
 (0)