![Turso](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fheader.bc098197.png&w=3840&q=75)
Native Vector Search
for SQLite
No extensions needed
![Jokull Solberg](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fjokull.084a83c1.jpeg&w=128&q=75)
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."
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](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fall-the-benefits-of-sqlite.15e60fad.png&w=3840&q=75)
- 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](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fall-the-benefits-of-turso.1fddbed1.png&w=3840&q=75)
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](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftalk-to-us-background.59f7e65f.png&w=3840&q=75)
![scarf](https://static.scarf.sh/a.png?x-pxid=3976f68e-9b66-42d1-829a-9357a2c397cc)