Register and Configure Custom Embedding Model #495
Replies: 4 comments
-
Hi @sivakumarl ! Currently, there isn't an API for registering an embedding model, similar to LLM providers/actions/embedding search providers. If not, a quick workaround would be to add it manually into the If you have a bit of time to contribute the addition of a |
Beta Was this translation helpful? Give feedback.
-
Hi @drazvan , Thank you for the response , Could you please provide guidance on utilizing the _embedding_model_cache? I'm eager to contribute to adding the register_embedding_model feature. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @sivakumarl ! In from nemoguardrails.embeddings import embedding_providers
embedding_providers._embedding_model_cache["custom_embed"] = CustomEmbedLLM() Then, in your models:
...
- type: embeddings
engine: custom_embed I haven't tested this, so let me know if you encounter any issues. |
Beta Was this translation helpful? Give feedback.
-
Hi @drazvan ,
Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I am tyring to integrate and configure Huggingface TEI , able to implement the custom embedding model using EmbeddingModel , but not sure how to register this custom embedding class in conflig.yml for models of type embeddings . Please assist, appreciate your help. Thanks
Regards,
Siva Kumar.
Beta Was this translation helpful? Give feedback.
All reactions