https://github.com/chatopera/embeddings-zh
Embeddings with Chatopera Synonyms for chatbot, RAG.
https://github.com/chatopera/embeddings-zh
Last synced: 8 months ago
JSON representation
Embeddings with Chatopera Synonyms for chatbot, RAG.
- Host: GitHub
- URL: https://github.com/chatopera/embeddings-zh
- Owner: chatopera
- License: other
- Created: 2025-05-30T02:42:49.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-07-22T13:03:50.000Z (11 months ago)
- Last Synced: 2025-07-30T08:49:41.563Z (11 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# embeddings-zh
Embeddings with Chatopera Synonyms for chatbot, RAG.
[GitHub](https://github.com/chatopera/embeddings-zh) | [Gitee](https://gitee.com/chatopera/embeddings-zh)
Model: [GitHub](https://github.com/chatopera/Synonyms) | [Gitee](https://gitee.com/chatopera/Synonyms)
```
pip install -U embeddings-zh
```
Usage::
```
from embeddings_zh import EmbeddingsZh
emb = EmbeddingsZh()
vector1 = emb.embed_documents([texts]) # e.g. emb.embed_documents(["今天天气怎么样", "有什么推荐"])
vector2 emb.embed_query(texts) # e.g. emb.embed_documents("有什么推荐")
```
# Tutorials
* Build a chabot with langchain: [demo](./demo/)
# License
[LICENSE](./LICENSE)