Skip to main content

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.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file embeddings-zh-0.0.3.tar.gz.

File metadata

  • Download URL: embeddings-zh-0.0.3.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

Hashes for embeddings-zh-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2ee5120071cc8dc2396937a0e470c8a9ac69473c51a2b161d0d57e044f17ba8a
MD5 cb10b8356bcfd6a9c6ce6e52429bf817
BLAKE2b-256 28a19a49bd8f0aece187a997ea297c9c5aee6c73df26089febc1f004942c3781

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page