Embeddings with Chatopera Synonyms for chatbot, RAG.
Project description
Embeddings with Chatopera Synonyms for chatbot, RAG.
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.2.tar.gz
(3.0 kB
view details)
File details
Details for the file embeddings-zh-0.0.2.tar.gz.
File metadata
- Download URL: embeddings-zh-0.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8223399c964c53c575b62f9b837dd8daa12999fdcff93a654fba6b1ac0b6fe43
|
|
| MD5 |
a8ac080e6e0ff226869835eb49874b03
|
|
| BLAKE2b-256 |
2afa3bcfa880243d09f73388fb76f9b83714bbbc7b03f7beae8c5ab19a38c627
|