Views
No views yet
It is Angle 📐, not Angel 👼.
| Model | ATEC | BQ | LCQMC | PAWSX | STS-B | SOHU-dd | SOHU-dc | Avg. |
|---|---|---|---|---|---|---|---|---|
| ^shibing624/text2vec-bge-large-chinese | 38.41 | 61.34 | 71.72 | 35.15 | 76.44 | 71.81 | 63.15 | 59.72 |
| ^shibing624/text2vec-base-chinese-paraphrase | 44.89 | 63.58 | 74.24 | 40.90 | 78.93 | 76.70 | 63.30 | 63.08 |
| SeanLee97/angle-roberta-wwm-base-zhnli-v1 | 49.49 | 72.47 | 78.33 | 59.13 | 77.14 | 72.36 | 60.53 | 67.06 |
| SeanLee97/angle-llama-7b-zhnli-v1 | 50.44 | 71.95 | 78.90 | 56.57 | 81.11 | 68.11 | 52.02 | 65.59 |
1from angle_emb import AnglE, Prompts
2
3angle = AnglE.from_pretrained('NousResearch/Llama-2-7b-hf', pretrained_lora_path='SeanLee97/angle-llama-7b-zhnli-v1')
4# 请选择对应的 prompt,此模型对应 Prompts.B
5print('All predefined prompts:', Prompts.list_prompts())
6angle.set_prompt(prompt=Prompts.B)
7print('prompt:', angle.prompt)
8vec = angle.encode({'text': '你好世界'}, to_numpy=True)
9print(vec)
10vecs = angle.encode([{'text': '你好世界1'}, {'text': '你好世界2'}], to_numpy=True)
11print(vecs)1@article{li2023angle,
2 title={AnglE-Optimized Text Embeddings},
3 author={Li, Xianming and Li, Jing},
4 journal={arXiv preprint arXiv:2309.12871},
5 year={2023}
6}