Embeddings with Chatopera Synonyms for chatbot, RAG. Support Simplified Chinese and Traditional Chinese.
https://github.com/chatopera/embeddings-zh
Model: https://github.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("有什么推荐")
Metadata
Release files for embeddings-zh 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| embeddings_zh-0.0.7.tar.gz | 4.5 kB | Details |
Release files / embeddings_zh-0.0.7.tar.gz
| Download URL | embeddings_zh-0.0.7.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53e4751094fb29ed6f599847bab6368454a49697c65f8967c26ac5627593e8c0
|
|
BLAKE2b-256 checksum How to use checksums |
4500672c1d8d3aba76ed8b5347aefc683e26a0ad0253cfaaefc137489747a98e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|