-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update parameter order and serverless doc link
- Loading branch information
Showing
10 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ This tutorial walks you through how to use [Jina AI](https://jina.ai/) to genera | |
|
||
> **Note:** | ||
> | ||
> The vector search feature is only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](/tidb-cloud/select-cluster-tier.md#tidb-cloud-serverless) clusters. | ||
> The vector search feature is only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters. | ||
## Prerequisites | ||
|
||
|
@@ -128,14 +128,14 @@ export TIDB_DATABASE_URL="mysql+pymysql://<USERNAME>:<PASSWORD>@<HOST>:<PORT>/<D | |
# For example: export TIDB_DATABASE_URL="mysql+pymysql://[email protected]:4000/test" | ||
``` | ||
|
||
You need to replace parameters in the preceding command according to your TiDB cluster. If you are running TiDB on your local machine, `HOST` is `127.0.0.1` by default. The initial `PASSWORD` is empty, so if you are starting the cluster for the first time, you can omit this field. | ||
You need to replace parameters in the preceding command according to your TiDB cluster. If you are running TiDB on your local machine, `<HOST>` is `127.0.0.1` by default. The initial `<PASSWORD>` is empty, so if you are starting the cluster for the first time, you can omit this field. | ||
|
||
The following are descriptions for each parameter: | ||
|
||
- `<HOST>`: The host of the TiDB cluster. | ||
- `<PORT>`: The port of the TiDB cluster. | ||
- `<USERNAME>`: The username to connect to the TiDB cluster. | ||
- `<PASSWORD>`: The password to connect to the TiDB cluster. | ||
- `<HOST>`: The host of the TiDB cluster. | ||
- `<PORT>`: The port of the TiDB cluster. | ||
- `<DATABASE>`: The name of the database you want to connect to. | ||
|
||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ This tutorial demonstrates how to integrate the [vector search](/vector-search-o | |
|
||
> **Note:** | ||
> | ||
> The vector search feature is only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](/tidb-cloud/select-cluster-tier.md#tidb-cloud-serverless) clusters. | ||
> The vector search feature is only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters. | ||
> **Tip** | ||
> | ||
|
@@ -131,7 +131,6 @@ This document uses [OpenAI](https://platform.openai.com/docs/introduction) as th | |
|
||
To configure the environment variables, run the following code. You will be prompted to enter your connection string and OpenAI API key: | ||
|
||
|
||
```python | ||
# Use getpass to securely prompt for environment variables in your terminal. | ||
import getpass | ||
|
@@ -150,14 +149,14 @@ TIDB_DATABASE_URL="mysql+pymysql://<USERNAME>:<PASSWORD>@<HOST>:<PORT>/<DATABASE | |
# For example: TIDB_DATABASE_URL="mysql+pymysql://[email protected]:4000/test" | ||
``` | ||
|
||
You need to modify the values of the connection parameters according to your TiDB cluster. If you are running TiDB on your local machine, `HOST` is `127.0.0.1` by default. The initial `PASSWORD` is empty, so if you are starting the cluster for the first time, you can omit this field. | ||
You need to modify the values of the connection parameters according to your TiDB cluster. If you are running TiDB on your local machine, `<HOST>` is `127.0.0.1` by default. The initial `<PASSWORD>` is empty, so if you are starting the cluster for the first time, you can omit this field. | ||
|
||
The following are descriptions for each parameter: | ||
|
||
- `<HOST>`: The host of the TiDB cluster. | ||
- `<PORT>`: The port of the TiDB cluster. | ||
- `<USERNAME>`: The username to connect to the TiDB cluster. | ||
- `<PASSWORD>`: The password to connect to the TiDB cluster. | ||
- `<HOST>`: The host of the TiDB cluster. | ||
- `<PORT>`: The port of the TiDB cluster. | ||
- `<DATABASE>`: The name of the database you want to connect to. | ||
|
||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ This tutorial demonstrates how to integrate the [vector search](/vector-search-o | |
|
||
> **Note:** | ||
> | ||
> The vector search feature is only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](/tidb-cloud/select-cluster-tier.md#tidb-cloud-serverless) clusters. | ||
> The vector search feature is only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters. | ||
> **Tip** | ||
> | ||
|
@@ -143,14 +143,14 @@ TIDB_DATABASE_URL="mysql+pymysql://<USERNAME>:<PASSWORD>@<HOST>:<PORT>/<DATABASE | |
# For example: TIDB_DATABASE_URL="mysql+pymysql://[email protected]:4000/test" | ||
``` | ||
|
||
You need to modify the parameters in the connection string according to your TiDB cluster. If you are running TiDB on your local machine, `HOST` is `127.0.0.1` by default. The initial `PASSWORD` is empty, so if you are starting the cluster for the first time, you can omit this field. | ||
You need to modify the parameters in the connection string according to your TiDB cluster. If you are running TiDB on your local machine, `<HOST>` is `127.0.0.1` by default. The initial `<PASSWORD>` is empty, so if you are starting the cluster for the first time, you can omit this field. | ||
|
||
The following are descriptions for each parameter: | ||
|
||
- `<HOST>`: The host of the TiDB cluster. | ||
- `<PORT>`: The port of the TiDB cluster. | ||
- `<USERNAME>`: The username to connect to the TiDB cluster. | ||
- `<PASSWORD>`: The password to connect to the TiDB cluster. | ||
- `<HOST>`: The host of the TiDB cluster. | ||
- `<PORT>`: The port of the TiDB cluster. | ||
- `<DATABASE>`: The name of the database you want to connect to. | ||
|
||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters