Skip to content

Commit

Permalink
release 0.2.0 (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
wd0517 authored Aug 21, 2024
1 parent b7031b8 commit 643d20e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- ./redis-data:/data

backend:
image: tidbai/backend:0.1
image: tidbai/backend:0.2
restart: always
depends_on:
- redis
Expand All @@ -25,7 +25,7 @@ services:
max-file: "6"

frontend:
image: tidbai/frontend:0.1
image: tidbai/frontend:0.2
restart: always
depends_on:
- backend
Expand All @@ -40,7 +40,7 @@ services:
max-file: "6"

background:
image: tidbai/backend:0.1
image: tidbai/backend:0.2
restart: always
depends_on:
- redis
Expand Down
45 changes: 45 additions & 0 deletions frontend/app/src/pages/docs/deploy-with-docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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!
17 changes: 17 additions & 0 deletions releases/v0.2.0.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 643d20e

Please sign in to comment.