Skip to content

Commit

Permalink
chore: Changed query argument to Iterable to match base class
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader authored and joein committed Nov 13, 2024
1 parent 8c69952 commit d0db6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastembed/late_interaction/colbert.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def embed(
**kwargs,
)

def query_embed(self, query: Union[str, List[str]], **kwargs) -> Iterable[np.ndarray]:
def query_embed(self, query: Union[str, Iterable[str]], **kwargs) -> Iterable[np.ndarray]:
if isinstance(query, str):
query = [query]

Expand Down

0 comments on commit d0db6d8

Please sign in to comment.