feat: expose Cohere and HF embedding support on UI (#236)
This commit is contained in:
committed by
GitHub
parent
4d7f16475f
commit
069f0f3c83
@@ -55,10 +55,18 @@ class EmbeddingManager:
|
||||
from kotaemon.embeddings import (
|
||||
AzureOpenAIEmbeddings,
|
||||
FastEmbedEmbeddings,
|
||||
LCCohereEmbeddings,
|
||||
LCHuggingFaceEmbeddings,
|
||||
OpenAIEmbeddings,
|
||||
)
|
||||
|
||||
self._vendors = [AzureOpenAIEmbeddings, OpenAIEmbeddings, FastEmbedEmbeddings]
|
||||
self._vendors = [
|
||||
AzureOpenAIEmbeddings,
|
||||
OpenAIEmbeddings,
|
||||
FastEmbedEmbeddings,
|
||||
LCCohereEmbeddings,
|
||||
LCHuggingFaceEmbeddings,
|
||||
]
|
||||
|
||||
def __getitem__(self, key: str) -> BaseEmbeddings:
|
||||
"""Get model by name"""
|
||||
|
Reference in New Issue
Block a user