Embeddings with Chatopera Synonyms for chatbot, RAG.
Project description
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("有什么推荐")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
embeddings_zh-0.0.7.tar.gz
(4.5 kB
view details)
File details
Details for the file embeddings_zh-0.0.7.tar.gz.
File metadata
- Download URL: embeddings_zh-0.0.7.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53e4751094fb29ed6f599847bab6368454a49697c65f8967c26ac5627593e8c0
|
|
| MD5 |
be86eb59c1e0877b7800a920c0c511d9
|
|
| BLAKE2b-256 |
4500672c1d8d3aba76ed8b5347aefc683e26a0ad0253cfaaefc137489747a98e
|