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

upgrade_ragflow.mdx 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ---
  2. sidebar_position: 11
  3. slug: /upgrade_ragflow
  4. ---
  5. # Upgrade RAGFlow
  6. import Tabs from '@theme/Tabs';
  7. import TabItem from '@theme/TabItem';
  8. Upgrade RAGFlow to `nightly-slim`/`nightly` or the latest, published release.
  9. ## Upgrade RAGFlow to `nightly-slim`/`nightly`, the most recent, tested Docker image
  10. `nightly-slim` refers to the RAGFlow Docker image *without* embedding models, while `nightly` refers to the RAGFlow Docker image with embedding models. For details on their differences, see [ragflow/docker/.env](https://github.com/infiniflow/ragflow/blob/main/docker/.env).
  11. To upgrade RAGFlow, you must upgrade **both** your code **and** your Docker image:
  12. 1. Clone the repo
  13. ```bash
  14. git clone https://github.com/infiniflow/ragflow.git
  15. ```
  16. 2. Update **ragflow/docker/.env**:
  17. <Tabs
  18. defaultValue="nightly-slim"
  19. values={[
  20. {label: 'nightly-slim', value: 'nightly-slim'},
  21. {label: 'nightly', value: 'nightly'},
  22. ]}>
  23. <TabItem value="nightly-slim">
  24. ```bash
  25. RAGFLOW_IMAGE=infiniflow/ragflow:nightly-slim
  26. ```
  27. </TabItem>
  28. <TabItem value="nightly">
  29. ```bash
  30. RAGFLOW_IMAGE=infiniflow/ragflow:nightly
  31. ```
  32. </TabItem>
  33. </Tabs>
  34. 3. Update RAGFlow image and restart RAGFlow:
  35. ```bash
  36. docker compose -f docker/docker-compose.yml pull
  37. docker compose -f docker/docker-compose.yml up -d
  38. ```
  39. ## Upgrade RAGFlow to the most recent, officially published release
  40. To upgrade RAGFlow, you must upgrade **both** your code **and** your Docker image:
  41. 1. Clone the repo
  42. ```bash
  43. git clone https://github.com/infiniflow/ragflow.git
  44. ```
  45. 2. Switch to the latest, officially published release, e.g., `v0.15.0`:
  46. ```bash
  47. git checkout -f v0.15.0
  48. ```
  49. 3. Update **ragflow/docker/.env** as follows:
  50. ```bash
  51. RAGFLOW_IMAGE=infiniflow/ragflow:v0.15.0
  52. ```
  53. 4. Update the RAGFlow image and restart RAGFlow:
  54. ```bash
  55. docker compose -f docker/docker-compose.yml pull
  56. docker compose -f docker/docker-compose.yml up -d
  57. ```