# How to build evidence-grounded agent memory with OpenWiki and Graphs

DevFeed: [How to build evidence-grounded agent memory with OpenWiki and Graphs](<https://devfeed.tech/articles/how-to-build-evidence-grounded-agent-memory-with-openwiki-and-graphs-105682.md>)

Original publisher: [Read original article](<https://www.langchain.com/blog/building-agent-memory-openwiki-graphs>)

Author: LangChain Accounts

Published: 2026-10-28T17:28:42Z

Content type: article

Language: en

Sources: [LangChain Blog](<https://devfeed.tech/sources/langchain-blog.md>)

Topics: [knowledge-engineering](<https://devfeed.tech/topics/knowledge-engineering.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [LangChain](<https://devfeed.tech/topics/langchain.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-memory](<https://devfeed.tech/tags/agent-memory.md>), [agents](<https://devfeed.tech/tags/agents.md>), [build](<https://devfeed.tech/tags/build.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [graph](<https://devfeed.tech/tags/graph.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [layer](<https://devfeed.tech/tags/layer.md>), [memory](<https://devfeed.tech/tags/memory.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [persistent-memory](<https://devfeed.tech/tags/persistent-memory.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [source](<https://devfeed.tech/tags/source.md>), [tasks](<https://devfeed.tech/tags/tasks.md>), [used](<https://devfeed.tech/tags/used.md>), [wiki](<https://devfeed.tech/tags/wiki.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

In a synthetic insurance library of 111 long-form documents, an OpenWiki compiled from source material made an agent answering connected, cross-document questions about five times as accurate as keyword search alone (0.52 vs. 0.10) and reduced cost per correct answer from about $0.55 to $0.19. For simple lookups, accuracy was similar and search was faster. OpenWiki synthesizes sources into linked, cited pages; claims link to source lines and hashes help flag changes for review. A lightweight evidence graph makes citations and document relationships explicit: claims cite paragraph-level passages, while typed edges capture references and supersession. The graph took under a second to build without additional model calls, and gave the agent `locate` and `expand` tools to follow evidence paths. Compared with the wiki alone, it increased accuracy 27%, doubled citation consistency, reduced median answer time 40%, and cut cost per correct answer 58%. These retrieval costs exclude wiki compilation and updates; the results come from a synthetic benchmark, and graph-derived edges still depend on the accuracy of model-generated wiki citations.

## Source excerpt

LangChain used OpenWiki, its open-source wiki compiler, and an evidence graph to build a persistent memory layer that preserves knowledge for agents to reuse across tasks. Learn how.