Skip to content

Feat: support jina-embeddings via sentence-transformers #1278

@kno10

Description

@kno10

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions