Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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 рік тому
1 рік тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <div align="center">
  2. <a href="https://demo.ragflow.io/">
  3. <img src="web/src/assets/logo-with-text.png" width="350" 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. </p>
  10. <p align="center">
  11. <a href="https://demo.ragflow.io" target="_blank">
  12. <img alt="Static Badge" src="https://img.shields.io/badge/RAGFLOW-LLM-white?&labelColor=dd0af7"></a>
  13. <a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
  14. <img src="https://img.shields.io/badge/docker_pull-ragflow:v1.0-brightgreen"
  15. alt="docker pull ragflow:v1.0"></a>
  16. <a href="https://github.com/infiniflow/ragflow/blob/main/LICENSE">
  17. <img height="21" src="https://img.shields.io/badge/License-Apache--2.0-ffffff?style=flat-square&labelColor=d4eaf7&color=7d09f1" alt="license">
  18. </a>
  19. </p>
  20. ## 💡 What is RAGFlow?
  21. [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 with well-founded citations for various complex fomatted data.
  22. ## 🌟 Key Features
  23. ### 🍭 **"Quality in, quality out"**
  24. - [Deep document understanding](./deepdoc/README.md)-based knowledge extraction from unstructured data with complicated formats.
  25. - Finds "needle in a data haystack" of literally unlimited tokens.
  26. ### 🍱 **Template-based chunking**
  27. - Intelligent and explainable.
  28. - Plenty of template options to choose from.
  29. ### 🌱 **Grounded citations with reduced hallucinations**
  30. - Visualization of text chunking to allow human intervention.
  31. - Quick view of the key references and traceable citations to support grounded answers.
  32. ### 🍔 **Compatibility with heterogeneous data sources**
  33. - Supports Word, slides, excel, txt, images, scanned copies, structured data, web pages, and more.
  34. ### 🛀 **Automated and effortless RAG workflow**
  35. - Streamlined RAG orchestration catered to both personal and large businesses.
  36. - Configurable LLMs as well as embedding models.
  37. - Multiple recall paired with fused re-ranking.
  38. - Intuitive APIs for seamless integration with business.
  39. ## 🔎 System Architecture
  40. <div align="center" style="margin-top:20px;margin-bottom:20px;">
  41. <img src="https://github.com/infiniflow/ragflow/assets/12318111/d6ac5664-c237-4200-a7c2-a4a00691b485" width="1000"/>
  42. </div>
  43. ## 🎬 Get Started
  44. ### 📝 Prerequisites
  45. - CPU >= 2 cores
  46. - RAM >= 8 GB
  47. - Docker
  48. > If you have not installed Docker on your local machine (Windows, Mac, or Linux), see [Install Docker Engine](https://docs.docker.com/engine/install/).
  49. ### 🚀 Start up the server
  50. 1. Ensure `vm.max_map_count` > 65535:
  51. > To check the value of `vm.max_map_count`:
  52. >
  53. > ```bash
  54. > $ sysctl vm.max_map_count
  55. > ```
  56. >
  57. > Reset `vm.max_map_count` to a value greater than 65535 if it is not.
  58. >
  59. > ```bash
  60. > # In this case, we set it to 262144:
  61. > $ sudo sysctl -w vm.max_map_count=262144
  62. > ```
  63. >
  64. > 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:
  65. >
  66. > ```bash
  67. > vm.max_map_count=262144
  68. > ```
  69. 2. Clone the repo:
  70. ```bash
  71. $ git clone https://github.com/infiniflow/ragflow.git
  72. ```
  73. 3. Build the pre-built Docker images and start up the server:
  74. ```bash
  75. $ cd ragflow/docker
  76. $ docker compose up -d
  77. ```
  78. > The core image is about 15 GB in size and may take a while to load.
  79. 4. Check the server status after having the server up and running:
  80. ```bash
  81. $ docker logs -f ragflow-server
  82. ```
  83. _The following output confirms a successful launch of the system:_
  84. ```bash
  85. ____ ______ __
  86. / __ \ ____ _ ____ _ / ____// /____ _ __
  87. / /_/ // __ `// __ `// /_ / // __ \| | /| / /
  88. / _, _// /_/ // /_/ // __/ / // /_/ /| |/ |/ /
  89. /_/ |_| \__,_/ \__, //_/ /_/ \____/ |__/|__/
  90. /____/
  91. * Running on all addresses (0.0.0.0)
  92. * Running on http://127.0.0.1:9380
  93. * Running on http://172.22.0.5:9380
  94. INFO:werkzeug:Press CTRL+C to quit
  95. ```
  96. 5. In your web browser, enter the IP address of your server as prompted and log in to RAGFlow.
  97. > In the given scenario, you only need to enter `http://172.22.0.5` (sans port number) as the default HTTP serving port `80` is omitted when using the default configurations.
  98. 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.
  99. > See [./docs/llm_api_key_setup.md](./docs/llm_api_key_setup.md) for more information.
  100. _The show is now on!_
  101. ## 🔧 Configurations
  102. When it comes to system configurations, you will need to manage the following files:
  103. - [.env](./docker/.env): Keeps the fundamental setups for the system, such as `SVR_HTTP_PORT`, `MYSQL_PASSWORD`, and `MINIO_PASSWORD`.
  104. - [service_conf.yaml](./docker/service_conf.yaml): Configures the back-end services.
  105. - [docker-compose.yml](./docker/docker-compose.yml): The system relies on [docker-compose.yml](./docker/docker-compose.yml) to start up.
  106. 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.
  107. > 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.
  108. 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`.
  109. > Updates to all system configurations require a system reboot to take effect:
  110. >
  111. > ```bash
  112. > $ docker-compose up -d
  113. > ```
  114. ## 🛠️ Build from source
  115. To build the Docker images from source:
  116. ```bash
  117. $ git clone https://github.com/infiniflow/ragflow.git
  118. $ cd ragflow/
  119. $ docker build -t infiniflow/ragflow:v1.0 .
  120. $ cd ragflow/docker
  121. $ docker compose up -d
  122. ```
  123. ## 📜 Roadmap
  124. See the [RAGFlow Roadmap 2024](https://github.com/infiniflow/ragflow/issues/162)
  125. ## 🏄 Community
  126. - [Discord](https://discord.gg/uqQ4YMDf)
  127. - [Twitter](https://twitter.com/infiniflowai)
  128. ## 🙌 Contributing
  129. 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/CONTRIBUTING.md) first.