* Add huggingface embeddings and cohere embeddings * Update openai interface and the mock for newer OpenAI SDK --------- Co-authored-by: trducng <trungduc1992@gmail.com>
13 lines
345 B
Python
13 lines
345 B
Python
from langchain.embeddings import HuggingFaceBgeEmbeddings as LCHuggingFaceEmbeddings
|
|
|
|
from kotaemon.embeddings.base import LangchainEmbeddings
|
|
|
|
|
|
class HuggingFaceEmbeddings(LangchainEmbeddings):
|
|
"""HuggingFace embeddings
|
|
|
|
This class wraps around the Langchain HuggingFaceEmbeddings class
|
|
"""
|
|
|
|
_lc_class = LCHuggingFaceEmbeddings
|