Skip to content

Commit

Permalink
Refactoring to late interaction class
Browse files Browse the repository at this point in the history
  • Loading branch information
I8dNLo committed Nov 27, 2024
1 parent d581de9 commit e43f680
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def passage_embed(self, texts: Iterable[str], **kwargs) -> Iterable[np.ndarray]:
# This is model-specific, so that different models can have specialized implementations
yield from self.embed(texts, **kwargs)

def query_embed(
self, query: Union[str, Iterable[str]], **kwargs
) -> Iterable[np.ndarray]:
def query_embed(self, query: Union[str, Iterable[str]], **kwargs) -> Iterable[np.ndarray]:
"""
Embeds queries
Expand Down

0 comments on commit e43f680

Please sign in to comment.