sqlite-vec
CommunityAdd vector search to SQLite, simplify your stack.
Software Engineering#python#semantic search#embeddings#vector database#sqlite#database extension#knn
Authoranderskev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Integrating vector similarity search often requires setting up and managing a separate vector database, adding complexity to your application stack. sqlite-vec brings this capability directly into SQLite, simplifying deployment and maintenance.
Core Features & Use Cases
- In-Database Vector Search: Store and query vector embeddings (float, int8, bit) directly within SQLite using the
vec0virtual table. - Efficient KNN Queries: Perform K-Nearest Neighbor searches with support for L2, cosine, and Hamming distance metrics.
- Metadata & Partition Filtering: Combine vector search with traditional SQL filtering on metadata columns and use partition keys for multi-tenant or temporal data.
- Use Case: Build a lightweight semantic search engine for a local application, storing text embeddings alongside document metadata in a single SQLite database, enabling fast and relevant content retrieval.
Quick Start
Show me how to create a vec0 table in SQLite to store 768-dimension float embeddings and perform a basic KNN query.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: sqlite-vec Download link: https://github.com/anderskev/amelia/archive/main.zip#sqlite-vec Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.