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.5.tar.gz
(3.1 kB
view details)
File details
Details for the file embeddings-zh-0.0.5.tar.gz.
File metadata
- Download URL: embeddings-zh-0.0.5.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f29012f5f948e416608d7724f4f1c9b7e958543810d1fbd00026a4f8946b703a
|
|
| MD5 |
5fe09772b01f0924f55e43d408fb3ee9
|
|
| BLAKE2b-256 |
f2a67ea714218c2ec7e60f96c9a83cd73107ca318995dbd731a065c90b234f9b
|