Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 month 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 (3 months ago)
- Default Branch: master
- Last Pushed: 2024-11-13T03:56:52.000Z (2 months ago)
- Last Synced: 2024-11-13T04:29:49.900Z (2 months ago)
- Topics: ai, chatbot, embeddings, turso, vector-database, vercel-ai-sdk
- Language: TypeScript
- Homepage: https://turso-vector-search.vercel.app
- Size: 710 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
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.
![Turso](./public/turso-vector-search.webp)
## 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/)