Skip to content

Agent Knowledge

AI Agent Knowledge Graph

Build a source-backed AI knowledge base that links people, projects, tools, observations, and relations without treating graph context as authority.

Qi-Xuan LuUpdated 5 min read

At a glance

01

Quick answer: an AI agent knowledge graph connects typed entities, relations, and observations so retrieval can recover relationships that text similarity misses.

02

Use graph context as supporting evidence. Source memories and maintained pages remain the inspectable authority and human review remains part of the workflow.

01

Quick answer: what an AI agent knowledge graph adds

Use text or vector search for direct matches. Use an AI agent knowledge graph for typed relationships: who worked on a project, which tool it uses, and which grounded observations belong to the same entity.

A reliable source-backed AI knowledge base keeps that graph beside inspectable source memories and maintained pages. Graph context supplies nearby facts; it does not become authority or replace provenance and review.

02

Entities, relations, observations

An entity is a named thing such as a person, project, tool, repo, or concept. A relation connects two entities. An observation is a grounded statement attached to an entity.

The goal is practical retrieval. The graph should help the next session find the right surrounding context, not become a hand-maintained ontology.

  • Entity: Wenlan, Claude Code, a client project, a person, a tool, or a repo.
  • Relation: works_on, uses, depends_on, belongs_to, supersedes, or another useful link.
  • Observation: a sourced note about an entity that should help future recall.

03

How graph context is created

Post-ingest enrichment can link entities, deduplicate overlapping captures, enrich titles, grow matching pages, and update effective confidence based on memory type, access, and age. Optional local models or API keys can make extraction and graph linking richer.

Claude Code skills can also help because the agent already has language judgment during capture and distillation.

Read models and keys

05

Graph in retrieval

Hybrid retrieval can combine vectors, full-text search, pages, and graph context. The graph adds nearby related facts when text similarity alone would miss why a memory matters.

Treat graph context as support, not authority. The source memory, page provenance, and local git history remain the inspectable record.

Read advanced retrieval

06

Review and cleanup

Graph data can be wrong when a name is ambiguous, a project changes direction, or an imported link was noisy. Use review, corrections, spaces, and forget when stored context needs cleanup.

If graph context feels like it is mixing unrelated worlds, check the active space before changing the data model. Many apparent graph problems are actually context-boundary problems.

Read review and trust

Next

Source-Backed Pages

Understand how Wenlan turns atomic captures into readable pages with source memory IDs, revision state, and refresh paths.

Read next