Instructions to use richinfoai/ritrieve_zh_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use richinfoai/ritrieve_zh_v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("richinfoai/ritrieve_zh_v1") sentences = [ "那是 個快樂的人", "那是 條快樂的狗", "那是 個非常幸福的人", "今天是晴天" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download modules.json from richinfoai/ritrieve_zh_v1: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/richinfoai/ritrieve_zh_v1/resolve/main/modules.json
- Command line
-
hf download hf://richinfoai/ritrieve_zh_v1/modules.json
-
curl -L -o modules.json https://huggingface.co/richinfoai/ritrieve_zh_v1/resolve/main/modules.json
341 Bytes
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| }, | |
| { | |
| "idx": 2, | |
| "name": "2", | |
| "path": "2_Dense", | |
| "type": "sentence_transformers.models.Dense" | |
| } | |
| ] |