From 643d20e6b3edf51c25a70d26f36a24a7884fff84 Mon Sep 17 00:00:00 2001 From: WD Date: Thu, 22 Aug 2024 07:58:11 +0800 Subject: [PATCH] release 0.2.0 (#238) --- .env.example | 1 + docker-compose.yml | 6 +-- .../app/src/pages/docs/deploy-with-docker.mdx | 45 +++++++++++++++++++ releases/v0.2.0.md | 17 +++++++ 4 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 releases/v0.2.0.md diff --git a/.env.example b/.env.example index 5ab1a5e1..9d6be5c6 100644 --- a/.env.example +++ b/.env.example @@ -16,6 +16,7 @@ TIDB_HOST=xxxxx.prod.aws.tidbcloud.com TIDB_USER= TIDB_PASSWORD= TIDB_DATABASE= +TIDB_SSL=true # *** DO NOT CHANGE BELOW CONFIGURATIONS UNLESS YOU KNOW WHAT YOU ARE DOING DSP_CACHEBOOL=false diff --git a/docker-compose.yml b/docker-compose.yml index 2fb2b3a5..3a672d9b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: - ./redis-data:/data backend: - image: tidbai/backend:0.1 + image: tidbai/backend:0.2 restart: always depends_on: - redis @@ -25,7 +25,7 @@ services: max-file: "6" frontend: - image: tidbai/frontend:0.1 + image: tidbai/frontend:0.2 restart: always depends_on: - backend @@ -40,7 +40,7 @@ services: max-file: "6" background: - image: tidbai/backend:0.1 + image: tidbai/backend:0.2 restart: always depends_on: - redis diff --git a/frontend/app/src/pages/docs/deploy-with-docker.mdx b/frontend/app/src/pages/docs/deploy-with-docker.mdx index ad85ac62..d25ae501 100644 --- a/frontend/app/src/pages/docs/deploy-with-docker.mdx +++ b/frontend/app/src/pages/docs/deploy-with-docker.mdx @@ -63,3 +63,48 @@ After you deploy the tool, you need to initialize the tool by following the popu * Set up `Data Source` to index the data. ![initialization](https://github.com/user-attachments/assets/7f9253da-3d6f-4ccd-838d-feed3f0b6f05 "Initialization") + + +## Upgrade + +This section will help you upgrade tidb.ai to the new version. + +Suppose you want to upgrade tidb.ai from 0.1 to version 0.2 + +1. Edit your docker-compose.yml file to use the new image version. + + ```yaml + services: + backend: + image: tidbai/backend:0.2 + frontend: + image: tidbai/frontend:0.2 + background: + image: tidbai/backend:0.2 + ``` + +2. Pull the new image: + + ```bash + docker compose pull + ``` + +3. Migrate the database schema: + + ```bash + docker compose run backend /bin/sh -c "alembic upgrade head" + ``` + +4. Recreate the docker containers: + + ```bash + docker compose up -d --force-recreate + ``` + +5. Check the logs to ensure everything is working correctly: + + ```bash + docker compose logs -f + ``` + +6. Done! diff --git a/releases/v0.2.0.md b/releases/v0.2.0.md new file mode 100644 index 00000000..10e033e1 --- /dev/null +++ b/releases/v0.2.0.md @@ -0,0 +1,17 @@ +# Release Notes for v0.2.0 + +## Improvements + +- Added an end-to-end test flow after releasing new versions to enhance system robustness. +- Optimized the UI during answer retrieval to provide better feedback on current processes. +- Support for connecting to Self-Managed TiDB clusters that also have vector search capabilities. +- Integrated support for the BaiSheng reranker. + +## Bug Fixes + +- Fixed an issue when creating synopsis entity nodes. +- Fix the delete button in LLM/Reranker list page. +- Fixed a SiteSetting cache issue that prevented proper synchronization across processes. + + +If you are deploying tidb.ai using docker, please refer to this [document](https://tidb.ai/docs/deploy-with-docker#upgrade) for upgrading your tidb.ai.