您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # README
  2. ## Docker environment variables
  3. Look into [.env](./.env), there're some important variables.
  4. - `STACK_VERSION`
  5. The Elasticsearch version. Defaults to `8.11.3`
  6. - `ES_PORT`
  7. Port to expose Elasticsearch HTTP API to the host. Defaults to `1200`.
  8. - `ELASTIC_PASSWORD`
  9. The Elasticsearch password.
  10. - `MYSQL_PASSWORD`
  11. The MySQL password. When updated, you must also revise the `mysql.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
  12. - `MYSQL_PORT`
  13. The exported port number of MySQL Docker container, needed when you access the database from outside the Docker container.
  14. - `MINIO_USER`
  15. The MinIO username. When updated, you must also revise the `minio.user` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
  16. - `MINIO_PASSWORD`
  17. The MinIO password. When updated, you must also revise the `minio.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
  18. - `SVR_HTTP_PORT`
  19. The port number on which RAGFlow's backend API server listens.
  20. - `TIMEZONE`
  21. The local time zone.
  22. - `RAGFLOW-IMAGE`
  23. The Docker image edition. Available options:
  24. - `infiniflow/ragflow:dev-slim` (default): The RAGFlow Docker image without embedding models
  25. - `infiniflow/ragflow:dev`: The RAGFlow Docker image with embedding models including:
  26. - Embedded embedding models:
  27. - `BAAI/bge-large-zh-v1.5`
  28. - `BAAI/bge-reranker-v2-m3`
  29. - `maidalun1020/bce-embedding-base_v1`
  30. - `maidalun1020/bce-reranker-base_v1`
  31. - Embedding models that will be downloaded once you select them in the RAGFlow UI:
  32. - `BAAI/bge-base-en-v1.5`
  33. - `BAAI/bge-large-en-v1.5`
  34. - `BAAI/bge-small-en-v1.5`
  35. - `BAAI/bge-small-zh-v1.5`
  36. - `jinaai/jina-embeddings-v2-base-en`
  37. - `jinaai/jina-embeddings-v2-small-en`
  38. - `nomic-ai/nomic-embed-text-v1.5`
  39. - `sentence-transformers/all-MiniLM-L6-v2`
  40. ## Service Configuration
  41. [service_conf.yaml](./service_conf.yaml) defines the system-level configuration for RAGFlow and is used by its API server and task executor.
  42. - `ragflow`
  43. - `host`: The IP address of the API server.
  44. - `port`: The serving port of API server.
  45. - `mysql`
  46. - `name`: The database name in MySQL used by RAGFlow. Defaults to `rag_flow`.
  47. - `user`: The MySQL user name.
  48. - `password`: The MySQL password. When updated, you must also revise the `MYSQL_PASSWORD` variable in [.env](./.env) accordingly.
  49. - `port`: The serving port of MySQL inside the Docker container. When updated, you must also revise the `MYSQL_PORT` variable in [.env](./.env) accordingly.
  50. - `max_connections`: The maximum database connection.
  51. - `stale_timeout`: Timeout in seconds.
  52. - `minio`
  53. - `user`: The MinIO username. When updated, you must also revise the `MINIO_USER` variable in [.env](./.env) accordingly.
  54. - `password`: The MinIO password. When updated, you must also revise the `MINIO_PASSWORD` variable in [.env](./.env) accordingly.
  55. - `host`: The serving IP and port inside the docker container. This is not updated until changing the minio part in [docker-compose.yml](./docker-compose.yml)
  56. - `user_default_llm`
  57. The default LLM to use for a new RAGFlow user. It is disabled by default. If you have not set it here, you can configure the default LLM on the **Settings** page in the RAGFlow UI. Newly signed-up users use LLM configured by this part; otherwise, you need to configure your own LLM on the *Settings* page.
  58. - `factory`: The LLM suppliers. "OpenAI", "Tongyi-Qianwen", "ZHIPU-AI", "Moonshot", "DeepSeek", "Baichuan", and "VolcEngine" are supported.
  59. - `api_key`: The API key for the specified LLM.
  60. - `oauth`
  61. The OAuth configuration for signing up or signing in to RAGFlow using a third-party account. It is disabled by default. To enable this feature, uncomment the corresponding lines in **service_conf.yaml**.
  62. - `github`: The GitHub authentication settings for your application. Visit the [Github Developer Settings page](https://github.com/settings/developers) to obtain your client_id and secret_key.