Embeddings with Chatopera Synonyms for chatbot, RAG.
Project description
Output logs
https://github.com/chatopera/embeddings-zh
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.1.tar.gz
(2.6 kB
view details)
File details
Details for the file embeddings-zh-0.0.1.tar.gz.
File metadata
- Download URL: embeddings-zh-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a8a267c83076107947e4f9257ad0e42440c97d7909c617eadbf5e9c21754bfa
|
|
| MD5 |
8e2434afc529a6414586ffb2f27f1a20
|
|
| BLAKE2b-256 |
77a62611a37758a2009cfce0ce8ffaba5c5cba399c1c94cded4ad2a5b9106c03
|