Question and Answer based on Anything
Question and Answer based on Anything (QAnything) is a local knowledge base question-answering system designed to support a wide range of file formats and databases, allowing for offline installation and use.
With QAnything, you can simply drop any locally stored file of any format and receive accurate, fast, and reliable answers.
Currently supported formats include: PDF, Word (doc/docx), PPT, Markdown, Eml, TXT, Images (jpg, png, etc.), Web links and more formats coming soon…
In scenarios with a large volume of knowledge base data, the advantages of a two-stage approach are very clear. If only a first-stage embedding retrieval is used, there will be a problem of retrieval degradation as the data volume increases, as indicated by the green line in the following graph. However, after the second-stage reranking, there can be a stable increase in accuracy, the more data, the better the performance.
QAnything uses the retrieval component BCEmbedding, which is distinguished for its bilingual and crosslingual proficiency. BCEmbedding excels in bridging Chinese and English linguistic gaps, which achieves
| Model | Retrieval | STS | PairClassification | Classification | Reranking | Clustering | Avg |
|---|---|---|---|---|---|---|---|
| bge-base-en-v1.5 | 37.14 | 55.06 | 75.45 | 59.73 | 43.05 | 37.74 | 47.20 |
| bge-base-zh-v1.5 | 47.60 | 63.72 | 77.40 | 63.38 | 54.85 | 32.56 | 53.60 |
| bge-large-en-v1.5 | 37.15 | 54.09 | 75.00 | 59.24 | 42.68 | 37.32 | 46.82 |
| bge-large-zh-v1.5 | 47.54 | 64.73 | 79.14 | 64.19 | 55.88 | 33.26 | 54.21 |
| jina-embeddings-v2-base-en | 31.58 | 54.28 | 74.84 | 58.42 | 41.16 | 34.67 | 44.29 |
| m3e-base | 46.29 | 63.93 | 71.84 | 64.08 | 52.38 | 37.84 | 53.54 |
| m3e-large | 34.85 | 59.74 | 67.69 | 60.07 | 48.99 | 31.62 | 46.78 |
| bce-embedding-base_v1 | 57.60 | 65.73 | 74.96 | 69.00 | 57.29 | 38.95 | 59.43 |
| Model | Reranking | Avg |
|---|---|---|
| bge-reranker-base | 57.78 | 57.78 |
| bge-reranker-large | 59.69 | 59.69 |
| bce-reranker-base_v1 | 60.06 | 60.06 |
NOTE:
WithoutReranker setting, our bce-embedding-base_v1 outperforms all the other embedding models.bce-reranker-base_v1 achieves the best performence.bce-embedding-base_v1 and bce-reranker-base_v1 is SOTA.The open source version of QAnything is based on QwenLM and has been fine-tuned on a large number of professional question-answering datasets. It greatly enhances the ability of question-answering. If you need to use it for commercial purposes, please follow the license of QwenLM. For more details, please refer to: QwenLM
| Required item | Minimum Requirement | Note |
|---|---|---|
| NVIDIA GPU Memory | >= 16GB | NVIDIA 3090 recommended |
| NVIDIA Driver Version | >= 525.105.17 | |
| CUDA Version | >= 12.0 | |
| docker compose version | >=1.27.4 | docker compose install |
Please refer to: https://github.com/netease-youdao/QAnything?tab=readme-ov-file#installation
If you need to access the API, please refer to the QAnything API documentation.
Welcome to scan the QR code below and join the WeChat group.
Reach out to the maintainer at one of the following places:
QAnything is licensed under Apache 2.0 License
QAnything adopts dependencies from the following: