An open API service indexing awesome lists of open source software.

https://github.com/chatopera/embeddings-zh

Embeddings with Chatopera Synonyms for chatbot, RAG.
https://github.com/chatopera/embeddings-zh

Last synced: 8 months ago
JSON representation

Embeddings with Chatopera Synonyms for chatbot, RAG.

Awesome Lists containing this project

README

          

# embeddings-zh

Embeddings with Chatopera Synonyms for chatbot, RAG.

[GitHub](https://github.com/chatopera/embeddings-zh) | [Gitee](https://gitee.com/chatopera/embeddings-zh)

Model: [GitHub](https://github.com/chatopera/Synonyms) | [Gitee](https://gitee.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("有什么推荐")
```

# Tutorials

* Build a chabot with langchain: [demo](./demo/)

# License
[LICENSE](./LICENSE)