Skip to content

Commit

Permalink
Update src/raglite/_eval.py
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Sorber <[email protected]>
  • Loading branch information
undo76 and lsorber authored Dec 4, 2024
1 parent d91b52a commit e42ac00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raglite/_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def embed_query(self, text: str) -> list[float]:
return embeddings[0].tolist() # type: ignore[no-any-return]

def embed_documents(self, texts: list[str]) -> list[list[float]]:
# Embed a list of documents using RAGLite's embedding function
# Embed a list of documents with RAGLite's embedding function.
embeddings = embed_sentences(texts, config=self.config)
return embeddings.tolist() # type: ignore[no-any-return]

Expand Down

0 comments on commit e42ac00

Please sign in to comment.