Turso

Native Vector Search
for SQLite

No extensions needed

Jokull Solberg

Jökull Sólberg, CTO

TripToJapan

"Forget vector databases. It's just a column type.

It's great being able to index and query Vector distances alongside other data in the same table as opposed to dealing with sync and drift between databases."

Jokull Solberg

Dhananjoy Biswas (DJ), Founder

Retune

"Being able to put Vectors in SQL comes with a ton of extra benefits.

Powerful filtering, joining tables, doing Vector Search over multiple columns - makes Turso way more versatile over using just a Vector DB!"

Intuitive SQL
For AI applications

  • Embeddings are just a column.
  • Zero setup, no extensions - it just works.
  • When you insert a new row the index is updated automatically. You can query the table and embeddings using SQL.
  • You can efficiently do approximate nearest neighbor search with SQL functions.
  • You can also do exact neighbor search without needing an index.


import { createClient } from '@libsql/client';

const db = createClient({
  url: 'file:local.db',
});

await db.batch([
  "CREATE TABLE movies (title TEXT, embedding FLOAT32(3))",
  "CREATE INDEX movies_idx
   USING diskann_cosine_ops ON movies (embedding)",
  "INSERT INTO movies
   VALUES ('Napoleon', vector('[1,2,3]'))"
]);

await db.execute(
  "SELECT title, year
   FROM vector_top_k('movies_idx', '[4,5,6]', 3)
   JOIN movies
   ON movies.rowid = id;"
);
  • It’s just a file, and vectors are now just another column type.
  • Works on all platforms: mobile, desktop, web, embedded systems, servers, etc.
  • RAG now available using only SQLite.
  • Efficient resource usage with low memory footprint.
  • No need for separate vector databases.
  • Combine relational and vector data for richer more powerful queries.
Talk to us
  • It works everywhere, via a local file or over http
  • Extremely cost efficient
  • Natively serverless
  • Built for low latency
  • Read from local embedded replicas
  • Effortless multi region edge replication
Talk to us

Talk to us

Whether you're already using the product or thinking of trying us out, we'd love to hear from you.

Schedule a call
Talk to us
scarf