* 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
315 B
Python
13 lines
315 B
Python
from langchain.embeddings import CohereEmbeddings as LCCohereEmbeddings
|
|
|
|
from kotaemon.embeddings.base import LangchainEmbeddings
|
|
|
|
|
|
class CohereEmbdeddings(LangchainEmbeddings):
|
|
"""Cohere embeddings.
|
|
|
|
This class wraps around the Langchain CohereEmbeddings class.
|
|
"""
|
|
|
|
_lc_class = LCCohereEmbeddings
|