Skip to main content

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.

Metadata

Release files for agentforge-memory-sqlite 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentforge-memory-sqlite 0.4.0
File Size Uploaded
agentforge_memory_sqlite-0.4.0.tar.gz 16.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentforge-memory-sqlite 0.4.0
File Interpreter ABI Platform
agentforge_memory_sqlite-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / agentforge_memory_sqlite-0.4.0.tar.gz

Download URL agentforge_memory_sqlite-0.4.0.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3bab124162c61ebe7d8f75e8a67f557fd8e50847d20e410a82b2decde12a148d
BLAKE2b-256 checksum
How to use checksums
905dec83bf95c33ab62869a94868407ed8b4d38a804ab1d9e64f68dc6e06b8ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Release files / agentforge_memory_sqlite-0.4.0-py3-none-any.whl

Download URL agentforge_memory_sqlite-0.4.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
155cf3e7ff2e5f8c40ae7908c9da54c9bb1e2c1c57fa271c69b9628c97d87a63
BLAKE2b-256 checksum
How to use checksums
f5d0b11a48cc26a95e4929f0b327ae24584cade03165d67a68d20be230bbccb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page