构建可验证可信记忆的AI代理运行时,解决知识来源不可靠问题。
ElephantBroker: A Knowledge-Grounded Cognitive Runtime for Trustworthy AI Agents
- 用知识图谱+向量库融合实现可追溯的记忆存储
- 11维评分机制在有限上下文下优化信息组合
- 支持企业级安全审计,适合高风险场景应用
基于大语言模型的智能体在高风险多轮交互中日益普及,但其记忆系统通常依赖扁平键值存储或简单向量检索,缺乏对知识来源和可信度的追踪机制。本文提出ElephantBroker,一个开源的认知运行时,通过Cognee SDK将Neo4j知识图谱与Qdrant向量存储统一,实现持久、可验证的代理记忆。系统包含完整的认知循环(存储、检索、评分、组合、保护、学习),涵盖五源混合检索管道、十一维竞争评分引擎(用于预算受限的上下文组装)、四状态证据验证模型、五阶段目标感知的上下文生命周期及持续压缩机制、六层低成本优先安全防护管道、支持强制工具调用拦截与多层级安全扫描的AI防火墙、九阶段整合引擎(强化有效模式、衰减噪声),以及基于数值权威的多组织身份管理与分层访问控制。通过超过2200项测试(涵盖单元、集成、端到端级别)验证架构正确性。模块化设计支持三种部署层级、五种带继承关系的配置模板、多网关隔离与管理仪表板,可灵活配置为轻量记忆代理至具备企业级安全与审计能力的完整认知运行时。
原文摘要 · Abstract (English)
Large Language Model based agents increasingly operate in high stakes, multi turn settings where factual grounding is critical, yet their memory systems typically rely on flat key value stores or plain vector retrieval with no mechanism to track the provenance or trustworthiness of stored knowledge. We present ElephantBroker, an open source cognitive runtime that unifies a Neo4j knowledge graph with a Qdrant vector store through the Cognee SDK to provide durable, verifiable agent memory. The system implements a complete cognitive loop (store, retrieve, score, compose, protect, learn) comprising a hybrid five source retrieval pipeline, an eleven dimension competitive scoring engine for budget constrained context assembly, a four state evidence verification model, a five stage context lifecycle with goal aware assembly and continuous compaction, a six layer cheap first guard pipeline for safety enforcement, an AI firewall providing enforceable tool call interception and multi tier safety scanning, a nine stage consolidation engine that strengthens useful patterns while decaying noise, and a numeric authority model governing multi organization identity with hierarchical access control. Architectural validation through a comprehensive test suite of over 2,200 tests spanning unit, integration, and end to end levels confirms subsystem correctness. The modular design supports three deployment tiers, five profile presets with inheritance, multi gateway isolation, and a management dashboard for human oversight, enabling configurations from lightweight memory only agents to full cognitive runtimes with enterprise grade safety and auditability.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。