Fix missing vllm embeddings from embedder factory
This commit is contained in:
parent
a1efc5a9a3
commit
0a279aa12a
1 changed files with 5 additions and 0 deletions
|
|
@ -27,4 +27,9 @@ def get_embedder() -> EmbedderBase:
|
|||
|
||||
return OpenAIEmbedder(Config.EMBEDDINGS_MODEL, Config.EMBEDDINGS_VECTOR_DIM)
|
||||
|
||||
if Config.EMBEDDINGS_PROVIDER == "vllm":
|
||||
from haiku.rag.embeddings.vllm import Embedder as VllmEmbedder
|
||||
|
||||
return VllmEmbedder(Config.EMBEDDINGS_MODEL, Config.EMBEDDINGS_VECTOR_DIM)
|
||||
|
||||
raise ValueError(f"Unsupported embedding provider: {Config.EMBEDDINGS_PROVIDER}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue