Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentforge_memory_sqlite-0.2.4.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentforge_memory_sqlite-0.2.4-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_memory_sqlite-0.2.4.tar.gz.

File metadata

  • Download URL: agentforge_memory_sqlite-0.2.4.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_memory_sqlite-0.2.4.tar.gz
Algorithm Hash digest
SHA256 913cdf4e4a36b734c83e01aabdf3b348b2cd1fe27a65e8c72dbcbf99a64d21ff
MD5 97113383c0fdc4ef7d827cb279d7a86e
BLAKE2b-256 ac0e763938c13c5240b09db7b5210f96d33e4a18cebb04cd7cd06e5b09230fe2

See more details on using hashes here.

File details

Details for the file agentforge_memory_sqlite-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_memory_sqlite-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 575ef32d3ca87d6acfd09025221fe897e647d148e1e6ce432c4b66107b623985
MD5 8ee62782ebdfbc1064c02d5fadc0987e
BLAKE2b-256 d666f671f8304896368a8189c0222d7cf7005054d06a954253ea622c3ee2d426

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page