This commit is contained in:
Bagatur
2023-08-08 10:54:25 -07:00
committed by GitHub
parent 4a07fba9f0
commit 642b57c7ff

View File

@@ -241,7 +241,7 @@ class HuggingFaceBgeEmbeddings(BaseModel, Embeddings):
Returns:
List of embeddings, one for each text.
"""
texts = [t.replace("\n", " ") for t in texts]
texts = [t.replace("\n", " ") for t in texts]
embeddings = self.client.encode(texts, **self.encode_kwargs)
return embeddings.tolist()