-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Jina Embeddings are a promising current model for embeddings used in RAG.
https://huggingface.co/jinaai/jina-embeddings-v2-base-en
While they are available via huggingface transformers, the current localai backend will not load them:
"could not load model (no success): Unexpected err=ValueError('The repository for /root/.cache/torch/sentence_transformers/jinaai_jina-embeddings-v2-base-en/ contains custom code which must be executed to correctlyload the model. You can inspect the repository content at https://hf.co//root/.cache/torch/sentence_transformers/jinaai_jina-embeddings-v2-base-en/.\\nPlease pass the argument 'trust_remote_code=True' to allow custom code to be run.'), type(err)=\u003cclass 'ValueError'\u003e","type":""}}
As little work may be necessary as allowing to pass this option to the constructor.