Embeddings with Chatopera Synonyms for chatbot, RAG.
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("有什么推荐")
- Build a chabot with langchain: demo