Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release 0.2.0 #238

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog page should be removed as it duplicates with the release note.