Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/)