https://github.com/patelvivekdev/turso-vector-search
A demo AI chatbot with Vercel AI SDK, Turso as vector DB and google gemini model.
https://github.com/patelvivekdev/turso-vector-search
ai chatbot embeddings turso vector-database vercel-ai-sdk
Last synced: about 1 year ago
JSON representation
A demo AI chatbot with Vercel AI SDK, Turso as vector DB and google gemini model.
- Host: GitHub
- URL: https://github.com/patelvivekdev/turso-vector-search
- Owner: patelvivekdev
- Created: 2024-10-06T21:55:02.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-21T18:05:24.000Z (about 1 year ago)
- Last Synced: 2025-04-13T04:46:04.849Z (about 1 year ago)
- Topics: ai, chatbot, embeddings, turso, vector-database, vercel-ai-sdk
- Language: TypeScript
- Homepage: https://turso-vector-search.vercel.app
- Size: 1.17 MB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Turso Vector Search
This is a simple RAG example of how to use the Turso Vector Search API with Drizzle ORM and Mistral AI | Google AI.

## Installation
```bash
bun i
```
### Copy the .env.example to .env and set the values
```bash
cp .env.example .env
```
### Run the migrations
```bash
bun run db:generate
bun run db:migrate
```
### Create Index on Turso
```sql
CREATE INDEX vector_idx ON embeddings (libsql_vector_idx(embedding));
```
### Run the server
```bash
bun run dev
```
## Links
- [Turso](https://turso.tech/)
- [Vercel AI SDK](https://sdk.vercel.ai/)
- [Drizzle](https://orm.drizzle.team/)
- [Mistral](https://docs.mistral.ai/)
- [Google AI](https://ai.google.com/)
- [patelvivekdev](https://patelvivek.dev/)