SQLite-backed MemoryStore and VectorStore for AgentForge
Project description
agentforge-memory-sqlite
SQLite-backed MemoryStore and VectorStore for AgentForge.
Zero external services required — the database lives in a single file
(or :memory: for tests). Suitable for development, single-host
deployments, and small-to-medium RAG corpora (~10k vectors).
Install
uv add agentforge-memory-sqlite
Usage
from agentforge_memory_sqlite import SqliteMemoryStore, SqliteVectorStore
# Claim audit log
async with SqliteMemoryStore.from_path("agent.db") as memory:
await memory.put(claim)
# Semantic search
async with SqliteVectorStore.from_path("agent.db", dimensions=1024) as store:
await store.upsert(items)
matches = await store.search(query_vector, limit=5)
Both classes pass agentforge_core.testing.run_memory_conformance /
run_vector_conformance so they're drop-in replacements for the
in-memory defaults.
Performance
SqliteVectorStore does brute-force cosine search in Python: O(N) per
query. Fine for ~10k vectors; sluggish past that. v0.2 will add an
opt-in sqlite-vec extension path declared via the "native_ann"
capability flag.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentforge_memory_sqlite-0.2.2.tar.gz.
File metadata
- Download URL: agentforge_memory_sqlite-0.2.2.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34b9378fe657fd4c583e35dd0b40ca3e816628b5700fcbffa888f20e210b651e
|
|
| MD5 |
af9699098b041ee439e02bd5392301d5
|
|
| BLAKE2b-256 |
313b75bf237419e380ac8dc7d71921b9e9f4cb8f9c466f58fd259307c89160c9
|
File details
Details for the file agentforge_memory_sqlite-0.2.2-py3-none-any.whl.
File metadata
- Download URL: agentforge_memory_sqlite-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
438ba16f91ebef01244dcd8f4686787b5645081c191cb7f1cce74cf1d0d54e31
|
|
| MD5 |
140ac329223bd05f61c58760d8da0df2
|
|
| BLAKE2b-256 |
a93538b6652fbd85184c07e7f77b7db9af0726aeb871d5662fed1706c3b2cd15
|