Low quality code and a lot of technical debt.
I suppose if LangChain doesnt find a good path to becoming more mature -- then some other equivalent open-source library will replace it in coming months.
Thanks for the heads-up.
def embed_documents(self, texts: List[str]) -> List[List[float]]:
texts = list(map(lambda x: x.replace("\n", " "), texts))
embeddings = self.client.encode(texts, \*self.encode_kwargs)
return embeddings.tolist()
```