---
title: "How to build evidence-grounded agent memory with OpenWiki and Graphs"
description: "A compiled, source-linked wiki (OpenWiki) used as agent memory raised accuracy on cross-document questions from 0.10 to 0.52 versus keyword search alone on a synthetic 111-document insurance corpus scored against a 972-fact ledger, and cut cost per correct answer from about $0.55 to $0.19."
url: "https://swe.quest/articles/how-to-build-evidence-grounded-agent-memory-with-openwiki-and-graphs-4ca8c5cc48ba2f30"
canonical: "https://www.langchain.com/blog/building-agent-memory-openwiki-graphs"
source: "LangChain"
published: "2026-10-28"
difficulty: "medium"
kind: "Research"
reading_minutes: 8
tags: ["ai-agents","rag","evals","llms"]
---

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

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-10-28, 8 min read, Research. Original: [https://www.langchain.com/blog/building-agent-memory-openwiki-graphs](https://www.langchain.com/blog/building-agent-memory-openwiki-graphs)

## Summary

A compiled, source-linked wiki (OpenWiki) used as agent memory raised accuracy on cross-document questions from 0.10 to 0.52 versus keyword search alone on a synthetic 111-document insurance corpus scored against a 972-fact ledger, and cut cost per correct answer from about $0.55 to $0.19. Citation consistency stayed low, so the team added a lightweight evidence graph that materializes wiki citations and document references as typed edges (cites, supersedes, refers\_to) between paragraphs, claims and pages, navigated by locate and expand tools. The graph built in under a second with no model calls and, over the wiki alone, improved accuracy 27%, doubled citation consistency, cut median latency 40% and cost per correct answer 58%. For simple single-passage lookups, search alone was equally accurate and faster, so compiled memory pays off only with repeated cross-source reasoning.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- RAG basics ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- LLM tool-calling agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- knowledge graphs

## Keywords

OpenWiki, Deep Agents, LangChain, GraphRAG, LangSmith

## Related posts

- [Evaluating OpenWiki with WikiBench](https://swe.quest/articles/evaluating-openwiki-with-wikibench-2ce78315e1ed723f.md): LangChain · 2026-08-26 · Medium · 5 min read · Evaluation, AI agents, Documentation, LLMs
  WikiBench evaluates OpenWiki-generated codebase wikis by having a reader agent answer auto-generated coverage and retrieval questions about a pinned repository.
- [Why We Rebuilt LangChain’s Chatbot and What We Learned](https://swe.quest/articles/why-we-rebuilt-langchain-s-chatbot-and-what-we-learned-903a9865b6131c52.md): LangChain · 2026-08-26 · Medium · 15 min read · AI agents, RAG & retrieval, LLMs, Documentation
  LangChain replaced chat.langchain.com's chunk-and-embed vector retrieval with tool-calling agents that search structured sources directly: full doc pages via Mintlify's API, a scan-titles-then-read pattern over the Pylon knowledge base, and ripgrep/tree/file-read tools over the codebase.
- [Give Your Coding Agents a Memory You Own](https://swe.quest/articles/give-your-coding-agents-a-memory-you-own-a4b8ff1b9b62d4a5.md): Hugging Face · 2026-09-03 · Medium · 9 min read · AI agents, AI for coding, RAG & retrieval, Search, Developer tools
  funes is an open-source, single-binary memory layer that indexes the session traces of coding agents (Claude Code, Codex, pi, Hermes) so any agent can recall past decisions and rationale with exact provenance.
- [ReasoningBank: Enabling agents to learn from experience](https://swe.quest/articles/reasoningbank-enabling-agents-to-learn-from-experience-c24d005f6ce31b05.md): Google Research · 2026-04-21 · Hard · 5 min read · AI agents, LLMs, Evaluation
  ReasoningBank is an agent memory framework that distills generalizable reasoning strategies from both successful and failed trajectories, stored as structured items (title, description, content) in a closed loop of retrieval, LLM-as-a-judge self-assessment, extraction and append-only consolidation.
- [Unlocking dependable responses with Gemini Enterprise Agent Platform’s Agentic RAG](https://swe.quest/articles/unlocking-dependable-responses-with-gemini-enterprise-agent-platform-s-agentic-1fa2162940afaaba.md): Google Research · 2026-06-05 · Easy · 8 min read · RAG & retrieval, AI agents, LLMs, Evaluation
  Google's agentic RAG framework, now in public preview on Gemini Enterprise Agent Platform, extends multi-agent retrieval (orchestrator, planner, query rewriter, search fanout) with a Sufficient Context Agent.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
