You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
пре 1 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <div align="center">
  2. <a href="https://demo.ragflow.io/">
  3. <img src="web/src/assets/logo-with-text.png" width="520" alt="ragflow logo">
  4. </a>
  5. </div>
  6. <p align="center">
  7. <a href="./README.md">English</a> |
  8. <a href="./README_zh.md">简体中文</a> |
  9. <a href="./README_ja.md">日本語</a>
  10. </p>
  11. <p align="center">
  12. <a href="https://github.com/infiniflow/infinity/releases/latest">
  13. <img src="https://img.shields.io/github/v/release/infiniflow/ragflow?color=blue&label=Latest%20Release" alt="Latest Release">
  14. </a>
  15. <a href="https://demo.ragflow.io" target="_blank">
  16. <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
  17. <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
  18. <img src="https://img.shields.io/badge/docker_pull-ragflow:v0.3.1-brightgreen"
  19. alt="docker pull infiniflow/ragflow:v0.3.1"></a>
  20. <a href="https://github.com/infiniflow/ragflow/blob/main/LICENSE">
  21. <img height="21" src="https://img.shields.io/badge/License-Apache--2.0-ffffff?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
  22. </a>
  23. </p>
  24. ## 💡 What is RAGFlow?
  25. [RAGFlow](https://demo.ragflow.io) is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding. It offers a streamlined RAG workflow for businesses of any scale, combining LLM (Large Language Models) to provide truthful question-answering capabilities, backed by well-founded citations from various complex formatted data.
  26. ## 🌟 Key Features
  27. ### 🍭 **"Quality in, quality out"**
  28. - [Deep document understanding](./deepdoc/README.md)-based knowledge extraction from unstructured data with complicated formats.
  29. - Finds "needle in a data haystack" of literally unlimited tokens.
  30. ### 🍱 **Template-based chunking**
  31. - Intelligent and explainable.
  32. - Plenty of template options to choose from.
  33. ### 🌱 **Grounded citations with reduced hallucinations**
  34. - Visualization of text chunking to allow human intervention.
  35. - Quick view of the key references and traceable citations to support grounded answers.
  36. ### 🍔 **Compatibility with heterogeneous data sources**
  37. - Supports Word, slides, excel, txt, images, scanned copies, structured data, web pages, and more.
  38. ### 🛀 **Automated and effortless RAG workflow**
  39. - Streamlined RAG orchestration catered to both personal and large businesses.
  40. - Configurable LLMs as well as embedding models.
  41. - Multiple recall paired with fused re-ranking.
  42. - Intuitive APIs for seamless integration with business.
  43. ## 📌 Latest Features
  44. - 2024-04-19 Support conversation API ([detail](./docs/conversation_api.md)).
  45. - 2024-04-16 Add an embedding model 'bce-embedding-base_v1' from [BCEmbedding](https://github.com/netease-youdao/BCEmbedding).
  46. - 2024-04-16 Add [FastEmbed](https://github.com/qdrant/fastembed), which is designed specifically for light and speedy embedding.
  47. - 2024-04-11 Support [Xinference](./docs/xinference.md) for local LLM deployment.
  48. - 2024-04-10 Add a new layout recognization model for analyzing Laws documentation.
  49. - 2024-04-08 Support [Ollama](./docs/ollama.md) for local LLM deployment.
  50. - 2024-04-07 Support Chinese UI.
  51. ## 🔎 System Architecture
  52. <div align="center" style="margin-top:20px;margin-bottom:20px;">
  53. <img src="https://github.com/infiniflow/ragflow/assets/12318111/d6ac5664-c237-4200-a7c2-a4a00691b485" width="1000"/>
  54. </div>
  55. ## 🎬 Get Started
  56. ### 📝 Prerequisites
  57. - CPU >= 4 cores
  58. - RAM >= 16 GB
  59. - Disk >= 50 GB
  60. - Docker >= 24.0.0 & Docker Compose >= v2.26.1
  61. > If you have not installed Docker on your local machine (Windows, Mac, or Linux), see [Install Docker Engine](https://docs.docker.com/engine/install/).
  62. ### 🚀 Start up the server
  63. 1. Ensure `vm.max_map_count` >= 262144 ([more](./docs/max_map_count.md)):
  64. > To check the value of `vm.max_map_count`:
  65. >
  66. > ```bash
  67. > $ sysctl vm.max_map_count
  68. > ```
  69. >
  70. > Reset `vm.max_map_count` to a value at least 262144 if it is not.
  71. >
  72. > ```bash
  73. > # In this case, we set it to 262144:
  74. > $ sudo sysctl -w vm.max_map_count=262144
  75. > ```
  76. >
  77. > This change will be reset after a system reboot. To ensure your change remains permanent, add or update the `vm.max_map_count` value in **/etc/sysctl.conf** accordingly:
  78. >
  79. > ```bash
  80. > vm.max_map_count=262144
  81. > ```
  82. 2. Clone the repo:
  83. ```bash
  84. $ git clone https://github.com/infiniflow/ragflow.git
  85. ```
  86. 3. Build the pre-built Docker images and start up the server:
  87. ```bash
  88. $ cd ragflow/docker
  89. $ chmod +x ./entrypoint.sh
  90. $ docker compose up -d
  91. ```
  92. > The core image is about 9 GB in size and may take a while to load.
  93. 4. Check the server status after having the server up and running:
  94. ```bash
  95. $ docker logs -f ragflow-server
  96. ```
  97. _The following output confirms a successful launch of the system:_
  98. ```bash
  99. ____ ______ __
  100. / __ \ ____ _ ____ _ / ____// /____ _ __
  101. / /_/ // __ `// __ `// /_ / // __ \| | /| / /
  102. / _, _// /_/ // /_/ // __/ / // /_/ /| |/ |/ /
  103. /_/ |_| \__,_/ \__, //_/ /_/ \____/ |__/|__/
  104. /____/
  105. * Running on all addresses (0.0.0.0)
  106. * Running on http://127.0.0.1:9380
  107. * Running on http://x.x.x.x:9380
  108. INFO:werkzeug:Press CTRL+C to quit
  109. ```
  110. > If you skip this confirmation step and directly log in to RAGFlow, your browser may prompt a `network anomaly` error because, at that moment, your RAGFlow may not be fully initialized.
  111. 5. In your web browser, enter the IP address of your server and log in to RAGFlow.
  112. > With default settings, you only need to enter `http://IP_OF_YOUR_MACHINE` (**sans** port number) as the default HTTP serving port `80` can be omitted when using the default configurations.
  113. 6. In [service_conf.yaml](./docker/service_conf.yaml), select the desired LLM factory in `user_default_llm` and update the `API_KEY` field with the corresponding API key.
  114. > See [./docs/llm_api_key_setup.md](./docs/llm_api_key_setup.md) for more information.
  115. _The show is now on!_
  116. ## 🔧 Configurations
  117. When it comes to system configurations, you will need to manage the following files:
  118. - [.env](./docker/.env): Keeps the fundamental setups for the system, such as `SVR_HTTP_PORT`, `MYSQL_PASSWORD`, and `MINIO_PASSWORD`.
  119. - [service_conf.yaml](./docker/service_conf.yaml): Configures the back-end services.
  120. - [docker-compose.yml](./docker/docker-compose.yml): The system relies on [docker-compose.yml](./docker/docker-compose.yml) to start up.
  121. You must ensure that changes to the [.env](./docker/.env) file are in line with what are in the [service_conf.yaml](./docker/service_conf.yaml) file.
  122. > The [./docker/README](./docker/README.md) file provides a detailed description of the environment settings and service configurations, and you are REQUIRED to ensure that all environment settings listed in the [./docker/README](./docker/README.md) file are aligned with the corresponding configurations in the [service_conf.yaml](./docker/service_conf.yaml) file.
  123. To update the default HTTP serving port (80), go to [docker-compose.yml](./docker/docker-compose.yml) and change `80:80` to `<YOUR_SERVING_PORT>:80`.
  124. > Updates to all system configurations require a system reboot to take effect:
  125. >
  126. > ```bash
  127. > $ docker-compose up -d
  128. > ```
  129. ## 🛠️ Build from source
  130. To build the Docker images from source:
  131. ```bash
  132. $ git clone https://github.com/infiniflow/ragflow.git
  133. $ cd ragflow/
  134. $ docker build -t infiniflow/ragflow:v0.3.1 .
  135. $ cd ragflow/docker
  136. $ chmod +x ./entrypoint.sh
  137. $ docker compose up -d
  138. ```
  139. ## 📚 Documentation
  140. - [FAQ](./docs/faq.md)
  141. ## 📜 Roadmap
  142. See the [RAGFlow Roadmap 2024](https://github.com/infiniflow/ragflow/issues/162)
  143. ## 🏄 Community
  144. - [Discord](https://discord.gg/4XxujFgUN7)
  145. - [Twitter](https://twitter.com/infiniflowai)
  146. ## 🙌 Contributing
  147. RAGFlow flourishes via open-source collaboration. In this spirit, we embrace diverse contributions from the community. If you would like to be a part, review our [Contribution Guidelines](https://github.com/infiniflow/ragflow/blob/main/docs/CONTRIBUTING.md) first.