← 返回
未分类 中文

Quantum Memory Graph

Quantum-enhanced long-term memory for AI agents — #1 on LongMemEval (98.6% R@5, 99.4% R@10, 0.9426 NDCG). Chunked gte-large retrieval with QAOA+CVaR subgraph...
Quantum-enhanced long-term memory for AI agents — #1 on LongMemEval (98.6% R@5, 99.4% R@10, 0.9426 NDCG). Chunked gte-large retrieval with QAOA+CVaR subgraph...
dustin-a11y dustin-a11y 来源
未分类 clawhub v1.2.0 2 版本 100000 Key: 无需
★ 0
Stars
📥 554
下载
💾 1
安装
2
版本
#agent-memory#agents#ai-agents#embeddings#knowledge-graph#latest#long-memory#memory#quantum#rag#retrieval

概述

Quantum Memory Graph (QMG)

Quantum-enhanced long-term memory for AI agents. Uses chunked gte-large embeddings for state-of-the-art semantic retrieval with QAOA+CVaR quantum subgraph optimization for graph-based reasoning.

Features

  • #1 on LongMemEval — 98.6% R@5, 99.4% R@10, 0.9426 NDCG
  • Chunked retrieval — 500-char blocks with 100-char overlap, mean-of-top-3 per session
  • QAOA+CVaR optimization — 12.8% edge over greedy on graph/PCE tasks
  • GPU accelerated — runs on NVIDIA GB10 (DGX Spark)
  • Cascade recall — personal graph → historical archive fallback
  • Per-agent isolation — each agent gets their own isolated memory graph

How It Works

  1. Session chunking — Conversations split into overlapping 500-char chunks
  2. Embedding — Chunks encoded with gte-large (1024-dim sentence transformer)
  3. Scoring — Per-session score = mean of top-3 chunk cosine similarities
  4. Refinement — Top-N candidates optionally refined via QAOA+CVaR subgraph optimizer
  5. Cascade — Personal graph first, historical archive fallback if relevance < 0.4

Performance

MetricScore
--------:-----:
R@190.6%
R@598.6%
R@1099.4%
NDCG@100.9426

Benchmark: LongMemEval-S (500 questions, 18,464 sessions), May 28 2026

Usage

from quantum_memory_graph import MemoryGraph

mg = MemoryGraph()
mg.store("Project Alpha uses React frontend with TypeScript.")
mg.store("Project Alpha backend is FastAPI with PostgreSQL.")

# Recall — chunked semantic retrieval + optional QAOA refinement
results = mg.retrieve("What is Project Alpha's tech stack?", top_k=5)

Or as a FastAPI server for agent integration:

pip install quantum-memory-graph
quantum-memory-graph serve  # serves /store, /recall, /stats endpoints

Requirements

  • Python 3.10+
  • sentence-transformers
  • numpy
  • (optional) qiskit for QAOA optimization on real hardware

Links

License

MIT

版本历史

共 2 个版本

  • v1.2.0 当前
    2026-05-31 13:24
  • v1.1.1
    2026-05-07 04:10 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,446 📥 329,259
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,523 📥 580,526
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,170 📥 942,868