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.

upgrade_ragflow.mdx 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 `dev-slim`/`dev` or the latest, published release.
  9. ## Upgrade RAGFlow to `dev-slim`/`dev`, the most recent, tested Docker image
  10. `dev-slim` refers to the RAGFlow Docker image *without* embedding models, while `dev` refers to the RAGFlow Docker image with embedding models. For details on their differences, see **docker/.env**.
  11. 1. Clone the repo
  12. ```bash
  13. git clone https://github.com/infiniflow/ragflow.git
  14. ```
  15. 2. Update **ragflow/docker/.env**:
  16. <Tabs
  17. defaultValue="dev-slim"
  18. values={[
  19. {label: 'dev-slim', value: 'dev-slim'},
  20. {label: 'dev', value: 'dev'},
  21. ]}>
  22. <TabItem value="dev-slim">
  23. ```bash
  24. RAGFLOW_IMAGE=infiniflow/ragflow:dev-slim
  25. ```
  26. </TabItem>
  27. <TabItem value="dev">
  28. ```bash
  29. RAGFLOW_IMAGE=infiniflow/ragflow:dev
  30. ```
  31. </TabItem>
  32. </Tabs>
  33. 3. Update RAGFlow image and restart RAGFlow:
  34. ```bash
  35. docker compose -f docker/docker-compose.yml pull
  36. docker compose -f docker/docker-compose.yml up -d
  37. ```
  38. ## Upgrade RAGFlow to the most recent, officially published release
  39. 1. Clone the repo
  40. ```bash
  41. git clone https://github.com/infiniflow/ragflow.git
  42. ```
  43. 2. Switch to the latest, officially published release, e.g., `v0.14.0`:
  44. ```bash
  45. git checkout v0.14.0
  46. ```
  47. 3. Update **ragflow/docker/.env** as follows:
  48. ```bash
  49. RAGFLOW_IMAGE=infiniflow/ragflow:v0.14.0
  50. ```
  51. 4. Update the RAGFlow image and restart RAGFlow:
  52. ```bash
  53. docker compose -f docker/docker-compose.yml pull
  54. docker compose -f docker/docker-compose.yml up -d
  55. ```