Skip to content

Commit

Permalink
fix EmbeddingCall
Browse files Browse the repository at this point in the history
  • Loading branch information
morganmcg1 committed Jan 22, 2025
1 parent c8b4648 commit cf4636b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wandbot/models/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,8 @@ def __init__(self, provider: str, **kwargs):
self.model = self.PROVIDER_MAP[provider](**kwargs)

def embed(self, input: Union[str, List[str]] = None) -> List[List[float]]:
return self.model.embed(input)
return self.model.embed(input)

def __call__(self, input: Union[str, List[str]] = None) -> List[List[float]]:
"""Required interface for Chroma's EmbeddingFunction"""
return self.embed(input)

0 comments on commit cf4636b

Please sign in to comment.