Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Vector Examples

This directory contains examples of how to use the TiDB as a vector database.

Prerequisites

Please follow the instructions below to set up a TiDB Serverless cluster with built-in vector search supported.

  1. Sign up TiDB Cloud
  2. Follow this tutorial to create a TiDB Serverless cluster
  3. Navigate to the Clusters page, and then click the name of your target cluster to go to its overview page
  4. Click Connect in the upper-right corner.
  5. In the connection dialog, select General from the Connect With dropdown and keep the default setting of the Endpoint Type as Public.
  6. If you have not set a password yet, click Create password to generate a random password.
The connection dialog of TiDB Serverless
The connection dialog of TiDB Serverless
7. Save the connection parameters to a safe place. You will need them to connect to the TiDB Serverless cluster in the following examples.

Examples

Real World Applications

TiDB.ai

tidb.ai is an amazing out-of-the-box Graph RAG(Retrieval Augmented Generation) template project based on the TiDB vector store, it contains ui and server logic, fork it on github and deploy your own.

out-of-box-conversational-search