SQLite-Vec is an SQLite extension designed for vector search, emphasizing local-first operations and easy integration into applications without external servers. It is the successor to SQLite-VSS by the same author. It is written in zero-dependency C and designed to be easy to build and use.
This notebook shows how to use the SQLiteVec vector database.
Setup
You’ll need to installlangchain-community with pip install -qU langchain-community to use this integration
Credentials
SQLiteVec does not require any credentials to use as the vector store is a simple SQLite file.Initialization
Manage vector store
Add items to vector store
Update items in vector store
Not supported yetDelete items from vector store
Not supported yetQuery vector store
Query directly
Query by turning into retriever
Not supported yetUsage for retrieval-augmented generation
Refer to the documentation on sqlite-vec at alexgarcia.xyz/sqlite-vec/ for more information on how to use it for retrieval-augmented generation.API reference
For detailed documentation of all SQLiteVec features and configurations head to the API reference: python.langchain.com/api_reference/community/vectorstores/langchain_community.vectorstores.sqlitevec.SQLiteVec.htmlOther examples
Example using existing SQLite connection
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.