2023-05-24 15:06:45 +00:00
|
|
|
# ModelScope
|
|
|
|
|
2023-09-08 02:53:33 +00:00
|
|
|
>[ModelScope](https://www.modelscope.cn/home) is a big repository of the models and datasets.
|
|
|
|
|
2023-05-24 15:06:45 +00:00
|
|
|
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
|
|
|
|
|
2023-09-08 02:53:33 +00:00
|
|
|
Install the `modelscope` package.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install modelscope
|
|
|
|
```
|
2023-05-24 15:06:45 +00:00
|
|
|
|
|
|
|
|
2023-09-08 02:53:33 +00:00
|
|
|
## Text Embedding Models
|
2023-05-24 15:06:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
from langchain.embeddings import ModelScopeEmbeddings
|
|
|
|
```
|
|
|
|
|
2023-09-08 02:53:33 +00:00
|
|
|
For a more detailed walkthrough of this, see [this notebook](/docs/integrations/text_embedding/modelscope_hub)
|