Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhutcherson authored Sep 6, 2024
1 parent 2e2004a commit 7a388e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redisvl/utils/vectorize/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async def aembed_many(
as_buffer: bool = False,
**kwargs,
) -> List[List[float]]:
# Fallback to standard embedding call if no async support
return self.embed_many(texts, preprocess, batch_size, as_buffer, **kwargs)

async def aembed(
Expand All @@ -70,6 +71,7 @@ async def aembed(
as_buffer: bool = False,
**kwargs,
) -> List[float]:
# Fallback to standard embedding call if no async support
return self.embed(text, preprocess, as_buffer, **kwargs)

def batchify(self, seq: list, size: int, preprocess: Optional[Callable] = None):
Expand Down

0 comments on commit 7a388e8

Please sign in to comment.