Skip to content

Commit

Permalink
Cohere embeddings support (#432)
Browse files Browse the repository at this point in the history
cohere embedding support

Co-authored-by: Abhinav Naikawadi <[email protected]>
  • Loading branch information
Abhinav-Naikawadi and Abhinav Naikawadi authored Jul 6, 2023
1 parent 4250884 commit d568318
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/autolabel/few_shot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from autolabel.configs import AutolabelConfig
from autolabel.schema import FewShotAlgorithm, ModelProvider
from langchain.embeddings import (
CohereEmbeddings,
HuggingFaceEmbeddings,
OpenAIEmbeddings,
VertexAIEmbeddings,
Expand All @@ -30,6 +31,7 @@
ModelProvider.OPENAI: OpenAIEmbeddings,
ModelProvider.GOOGLE: VertexAIEmbeddings,
ModelProvider.HUGGINGFACE_PIPELINE: HuggingFaceEmbeddings,
ModelProvider.COHERE: CohereEmbeddings,
}

logger = logging.getLogger(__name__)
Expand Down

0 comments on commit d568318

Please sign in to comment.