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 ef108af commit a59dc32
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 @@ -227,7 +227,7 @@ def __init__(self, config: RAGLiteConfig):
self.config = config or RAGLiteConfig()

def embed_query(self, text: str) -> list[float]:
# Embed the query text using RAGLite's embedding function
# Embed the input text with RAGLite's embedding function.
embeddings = embed_sentences([text], config=self.config)
return embeddings[0].tolist() # type: ignore[no-any-return]

Expand Down

0 comments on commit a59dc32

Please sign in to comment.