Skip to main content

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("有什么推荐")

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)

Uploaded Source

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

Hashes for embeddings_zh-0.0.7.tar.gz
Algorithm Hash digest
SHA256 53e4751094fb29ed6f599847bab6368454a49697c65f8967c26ac5627593e8c0
MD5 be86eb59c1e0877b7800a920c0c511d9
BLAKE2b-256 4500672c1d8d3aba76ed8b5347aefc683e26a0ad0253cfaaefc137489747a98e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 file

0.0.6

1 file

0.0.5

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page