Skip to content

Commit

Permalink
update parameter order and serverless doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
qiancai committed Oct 14, 2024
1 parent 49f624c commit 5ddb8cf
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion vector-search-functions-and-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This document lists the functions and operators available for Vector data types.

> **Note:**
>
> Vector data types and these vector functions are only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](/tidb-cloud/select-cluster-tier.md#tidb-cloud-serverless) clusters.
> Vector data types and these vector functions are only available for TiDB Self-Managed clusters and [TiDB Cloud Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-cloud-serverless) clusters.
## Vector functions

Expand Down
2 changes: 1 addition & 1 deletion vector-search-get-started-using-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ TIDB_DATABASE_URL="mysql+pymysql://<USER>:<PASSWORD>@<HOST>:<PORT>/<DATABASE>"

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 placeholder:
The following are descriptions for each parameter:

- `<USER>`: The username to connect to the TiDB cluster.
- `<PASSWORD>`: The password to connect to the TiDB cluster.
Expand Down
2 changes: 1 addition & 1 deletion vector-search-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ In TiDB, you can create and use vector search indexes for such approximate neare

> **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.
TiDB currently supports the [HNSW (Hierarchical Navigable Small World)](https://en.wikipedia.org/wiki/Hierarchical_navigable_small_world) vector search index algorithm.

Expand Down
8 changes: 4 additions & 4 deletions vector-search-integrate-with-jinaai-embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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>
Expand Down
9 changes: 4 additions & 5 deletions vector-search-integrate-with-langchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
>
Expand Down Expand Up @@ -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
Expand All @@ -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>
Expand Down
8 changes: 4 additions & 4 deletions vector-search-integrate-with-llamaindex.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions vector-search-integrate-with-sqlalchemy.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This tutorial walks you through how to use [SQLAlchemy](https://www.sqlalchemy.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.
## Prerequisites

Expand Down Expand Up @@ -130,7 +130,7 @@ TIDB_DATABASE_URL="mysql+pymysql://<USER>:<PASSWORD>@<HOST>:<PORT>/<DATABASE>"

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 placeholder:
The following are descriptions for each parameter:

- `<USER>`: The username to connect to the TiDB cluster.
- `<PASSWORD>`: The password to connect to the TiDB cluster.
Expand Down
2 changes: 1 addition & 1 deletion vector-search-integration-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This document provides an overview of TiDB vector search integration, including

> **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.
## AI frameworks

Expand Down
2 changes: 1 addition & 1 deletion vector-search-limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This document describes the known limitations of TiDB Vector Search.

> **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.
- Each [vector](/vector-search-data-types.md) supports up to 16383 dimensions.
- You cannot store `NaN`, `Infinity`, or `-Infinity` values in the vector data type.
Expand Down
2 changes: 1 addition & 1 deletion vector-search-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ TiDB Vector Search provides an advanced search solution for performing semantic

> **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.
## Concepts

Expand Down

0 comments on commit 5ddb8cf

Please sign in to comment.