ModelScopeEmbeddings(
self,
**kwargs: Any = {},
)ModelScopeHub embedding models.
To use, you should have the modelscope python package installed.
Example:
.. code-block:: python
from langchain_community.embeddings import ModelScopeEmbeddings model_id = "damo/nlp_corom_sentence-embedding_english-base" embed = ModelScopeEmbeddings(model_id=model_id, model_revision="v1.0.0")