---
title: "Turso brings Native Vector Search to SQLite"
description: "libSQL, the SQLite fork behind Turso, now has native vector similarity search exposed as a column type (F32_BLOB) instead of an extension like sqlite-vss."
url: "https://swe.quest/articles/turso-brings-native-vector-search-to-sqlite-524b5f374ac6abee"
canonical: "https://turso.tech/blog/turso-brings-native-vector-search-to-sqlite"
source: "Turso"
published: "2024-06-05"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["vector-search","sqlite","multi-tenancy"]
---

# Turso brings Native Vector Search to SQLite

A post on [Turso](https://swe.quest/sources/turso.md), published 2024-06-05, 5 min read, Announcement. Original: [https://turso.tech/blog/turso-brings-native-vector-search-to-sqlite](https://turso.tech/blog/turso-brings-native-vector-search-to-sqlite)

## Summary

libSQL, the SQLite fork behind Turso, now has native vector similarity search exposed as a column type (F32\_BLOB) instead of an extension like sqlite-vss. Vectors are stored as blobs and handled with functions such as vector(), vector\_extract() and vector\_distance\_cos(), so similarity queries can mix with ordinary relational filters. Full table scans give perfect recall and stay acceptable up to roughly 10,000 vectors. Larger datasets can use a DiskANN-based approximate nearest neighbor index, created with libsql\_vector\_idx and queried explicitly through vector\_top\_k joined back to the table. DiskANN's low memory footprint suits Turso's database-per-tenant, embedded-replica and on-device mobile use cases. The feature is in beta.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- vector embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))

## Keywords

Turso, libSQL, SQLite, DiskANN, sqlite-vss, vector\_top\_k

## Related posts

- [SQLite Retrieval Augmented Generation and Vector Search](https://swe.quest/articles/sqlite-retrieval-augmented-generation-and-vector-search-f6665825b9a1cb47.md): Turso · 2024-06-21 · Medium · 5 min read · Vector search, SQLite, RAG & retrieval
  Retrieval-augmented generation fixes stale or hallucinated LLM answers by retrieving relevant data, typically via embeddings and vector similarity search, and injecting it into the prompt. libSQL adds native vector search to SQLite: embeddings are stored in an F32\_BLOB column (SQLite treats column types as hints), inserted with a vector() function, and queried with vector\_distance\_cos() plus ORDER BY/LIMIT for exact top-k results.
- [You Don't Need A Separate Vector Database](https://swe.quest/articles/you-don-t-need-a-separate-vector-database-3c832a16be076ef3.md): Turso · 2024-11-04 · Easy · 4 min read · Vector search, SQLite, Databases, RAG & retrieval
  Vector search belongs in your primary database rather than a separate system like Pinecone, because syncing embeddings across multiple stores adds cost and operational complexity.
- [Approximate nearest neighbor search with DiskANN in libSQL](https://swe.quest/articles/approximate-nearest-neighbor-search-with-diskann-in-libsql-f704916b9c7db474.md): Turso · 2024-07-26 · Medium · 7 min read · Vector search, SQLite, Storage engines, Algorithms
  libSQL implements approximate nearest neighbor search using LM-DiskANN, a low-memory variant of DiskANN.
- [Indexing sparse vectors with Turso](https://swe.quest/articles/indexing-sparse-vectors-with-turso-3c9fdb0f1a894948.md): Turso · 2025-11-05 · Hard · 8 min read · Vector search, SQLite, Query engines, Algorithms, Performance engineering
  Turso 0.3.0 adds a compact sparse vector representation (vector32\_sparse) that uses 5–50x less storage than dense vectors, plus an inverted index for nearest-neighbor search by weighted Jaccard distance.
- [How to Generate & Store OpenAI Vector Embeddings with Turso](https://swe.quest/articles/how-to-generate-store-openai-vector-embeddings-with-turso-1144f075a7bcad32.md): Turso · 2024-07-01 · Medium · 5 min read · Vector search, SQLite, LLMs, JavaScript
  Turso's beta vector support stores OpenAI text-embedding-ada-002 embeddings in a libSQL F32\_BLOB(1536) column, whose size matches the model's 1536 dimensions.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
