An interactive demo showcasing TiDB's vector search capabilities. This demo allows you to explore and experiment with semantic search functionality powered by TiDB's vector similarity search feature.
Visit https://tidbcloud-example-with-vector-search.vercel.app/ to experience the demo.
- Interactive vector search demonstration
- Real-time semantic similarity search
- Built-in sample documents and queries
- Custom query testing capability
-
Document Storage:
- Each document is converted into a high-dimensional vector (embedding)
- Both the original content and vector embeddings are stored in TiDB
- Vector indexes enable efficient similarity search
-
Search Process:
- Your search query is converted to a vector
- TiDB finds documents with similar vector representations
- Results are ranked by similarity score
If you want to run this demo locally:
- Sign up for a TiDB Cloud account
- Create a Serverless Tier cluster (free)
- Get a Jina AI API key for text embeddings
- Clone this repository
- Create a
.env
file:
JINA_API_KEY=your_jina_api_key
- Install and run:
pnpm install
pnpm dev
Visit http://localhost:3000
to see the demo locally.