Skip to main content

AI agent memory system — sub-millisecond hybrid search (FAISS + FTS5 + RRF), knowledge graph, temporal awareness, LLM-powered extraction, entity resolution, conversation memory. Zero infrastructure. OpenAI/Anthropic/Ollama support.

Project description

Ariadne

Memory for AI agents. Sub-millisecond search. Zero infrastructure.

PyPI Python 3.10+ Tests License: MIT


Quick Start

from arriadne import AriadneMemory

mem = AriadneMemory(db_path="memory.db")
# Auto-detects ONNX embeddings — zero config

mem.remember("VPS has 4 cores, 8GB RAM", importance=0.8)

results = mem.recall("server specs", k=5)
pip install arriadne

Why

Ariadne Mnemosyne Mem0 ChromaDB
Vector search 0.83ms 153ms 12ms 8ms
Hybrid search ✅ RRF ⚠️ basic
Knowledge graph ✅ BFS ⚠️ basic
Auto-embeddings ✅ ONNX ✅ cloud
Auto-dedup ✅ MinHash
Runs locally
No daemon

Features

0.83ms Vector Search

FAISS-powered. 12× faster than sqlite-vec. Auto-upgrades from exact to approximate search as your data grows.

Engine 10K vectors
FAISS (Ariadne) 0.83ms
sqlite-vec 10.5ms

Hybrid Retrieval

Vector similarity + BM25 keywords fused with Reciprocal Rank Fusion.

results = mem.recall("how to deploy to production", k=5)
# Searches both keyword and semantic similarity, fuses with RRF
for r in results:
    print(f"[{r['search_type']}] {r['content'][:80]}")

Zero-Config Embeddings

Auto-downloads a quantized ONNX model on first use (~90MB). No API keys, no cloud, works offline.

# Just works — no embedding_provider parameter needed
mem = AriadneMemory("memory.db")
mem.remember("Paris is the capital of France")  # auto-embedded

Falls back to keyword matching if ONNX is unavailable.

Knowledge Graph

BFS graph traversal with typed, weighted edges. Bidirectional — edges are traversed in both directions.

mem.add_edge("Paris", "France", "located_in")
mem.add_edge("Nginx", "VPS", "runs_on")
g = mem.graph("VPS", hops=2)
# Returns: VPS ↔ Nginx, VPS ↔ France (via Paris)

Auto-Deduplication

MinHash LSH near-duplicate detection. Catches paraphrases, not just exact matches.

mem.remember("The server runs Ubuntu 24.04")
mem.remember("Ubuntu 24.04 is running on the server")
# Second store detects near-duplicate (LSH similarity > threshold)

Conversation Memory

Track conversations and extract structured facts automatically.

mem.sync_turn("user", "Deploy the app to production")
mem.sync_turn("assistant", "Deploying now via GitHub Actions")

context = mem.get_context("deployment")  # relevant past turns

Agent Tools

OpenAI function-calling compatible tool definitions for any LLM.

tools = AriadneMemory.get_tools()  # 6 tools: remember, recall, graph, link, forget, stats
# Plug into any agent framework that supports function calling

Memory Lifecycle

Ebbinghaus forgetting curve + priority-based eviction. Memories that matter survive; noise gets cleaned up.

mem.consolidate()  # merge similar memories
mem.evict()        # remove low-priority noise

Benchmark

Measured on a 4-core 8GB VPS with 10K memories and ONNX embeddings (all-MiniLM-L6-v2, 384-dim):

Operation p50 p95
Vector search 0.83ms 0.95ms
FTS search 1.56ms 2.12ms
Hybrid search 5.07ms 6.78ms
Graph traversal (2 hops) 0.06ms
Store (with ONNX embedding) 42ms

Install

pip install arriadne

Optional (for faster dev):

pip install "arriadne[dev]"

Requirements: Python 3.10+, SQLite (built-in). ONNX model auto-downloads on first use.


Hermes Integration

hermes plugin install arriadne
hermes config set memory.provider ariadne

Links

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

arriadne-0.3.0.tar.gz (250.3 kB view details)

Uploaded Source

Built Distribution

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

arriadne-0.3.0-py3-none-any.whl (74.1 kB view details)

Uploaded Python 3

File details

Details for the file arriadne-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for arriadne-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fb248d183a5388011c381dd8dc3ec8720aa48610a9f1636cb6df4469d9b47ee3
MD5 02e5b587667ddbed938f46b5a329ec3f
BLAKE2b-256 b9da7b0986205ae3d33f47c64b95cb997690948d4bc446d0bbc03c7062d75b77

See more details on using hashes here.

File details

Details for the file arriadne-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: arriadne-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 74.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for arriadne-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9ef6d1c457212a2a27eac9b0d6ac054ecc09c2faecd0f9a7926b58ab81994bd
MD5 a4f92760f31cc3493b5698c90734fe32
BLAKE2b-256 b94b7b12cad1f26e7af217a1d06915b94cd95229cc8f8119a2608c7fef3f4de8

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