Skip to main content


ModelScope is a big repository of the models and datasets.

This page covers how to use the modelscope ecosystem within LangChain. It is broken into two parts: installation and setup, and then references to specific modelscope wrappers.

Installation and Setup​

Install the modelscope package.

pip install modelscope

Text Embedding Models​

from langchain_community.embeddings import ModelScopeEmbeddings

API Reference:

For a more detailed walkthrough of this, see this notebook

Help us out by providing feedback on this documentation page: