Introducing a new way to review your PRs.

Read the announcement

open-metadata / openmetadata

The Open Context Layer for Data and AI , OpenMetadata is the open platform for building trusted data context and business semantics for humans, AI assistants, and agents.

View on GitHub

26 documents · Updated Nov 23, 2026

docs / context-center-ai-knowledge

Context Center and AI knowledge

Context Center turns managed files and knowledge pages into governed knowledge for people and AI agents. It keeps extracted memories linked to their sources, preserves review decisions as sources change, and serves only content that the caller may use.

System boundary

Context Center joins source management, memory curation, access control, and AI context delivery. The server owns these rules. The web app manages them, while search and MCP expose approved context to people and agents.

AreaPurpose
Managed sourcesStore files and pages that contain company knowledge.
Context memoriesKeep reusable question-and-answer knowledge.
GovernanceControl source visibility and memory review status.
AI contextGive agents bounded knowledge that the caller may read.

Source ingestion and processing

Files use their current extracted text. Pages use their stored article body. Both source types pass through the same extraction and reconciliation path after their text is ready.

The source lifecycle is asynchronous. A content hash avoids repeated model work. A changed source is read again before its result is saved, so an older run does not replace newer source knowledge.

This diagram shows how a source becomes source-linked memories.

flowchart LR
    A[File upload or page edit] --> B[Current source text]
    B --> C[Extract candidate memories]
    C --> D[Reconcile with source memories]
    D --> E[Save links and review state]
    E --> F[Search and AI context]

Source lifecycle

Files and pages can state the same memory. A shared memory keeps its identity and review state while its source links change. This lets source edits update knowledge without losing its history or usage record. References: openmetadata-service/…/ContextMemoryReconciler.java• L26-44, openmetadata-service/…/MemorySourceLifecycle.java• L81-106

When a source is archived, memories used only by that source move with it. A memory with another live source stays available. When a source is restored, its memories return only when the source lifecycle had archived them; a person-deleted memory stays deleted. References: openmetadata-service/…/MemorySourceLifecycle.java• L121-146, openmetadata-service/…/MemorySourceLifecycle.java• L230-243, openmetadata-service/…/ArchivedWithSources.java• L6-9

Source sharing

Source sharing changes which source names a memory may expose. A restricted file is removed from visible source links. If it anchors a memory, the anchor moves to a readable source or the memory is copied for readers the anchor would hide. These changes run with the source sharing update so the source and its memory links change together. References: openmetadata-service/…/MemorySourceSharing.java• L15-18, openmetadata-service/…/MemorySourceSharing.java• L27-54, openmetadata-service/…/MemorySourceLifecycle.java• L308-350

The system reads sharing as the current write leaves it. This avoids decisions based on the old file state. It names a file's direct user owners and shared principals when it must compare readers. References: openmetadata-service/…/SourceReaders.java• L19-21, openmetadata-service/…/SourceReaders.java• L38-58

Source copies

When one shared memory would reveal a restricted source to readers, Context Center can make a new memory for that source. The copy keeps the claim and its review state, but it receives its own source anchor and sharing rule. It does not copy the original memory's owners, history, usage, or dispute record. References: openmetadata-service/…/MemoryCopy.java• L14-17, openmetadata-service/…/MemoryCopy.java• L29-46, openmetadata-service/…/MemorySourceLifecycle.java• L199-220

Memory extraction and reconciliation

A context memory is reusable knowledge with a question, answer, type, source, scope, review stage, and sharing rule. Extraction creates candidates. Reconciliation decides whether each candidate is new, a rewording of an existing claim, or a separate value that needs review.

Memory extraction

The extractor asks the active AI provider for durable facts, definitions, policies, and guidance. It rejects empty results and avoids personal data, secrets, credentials, and connection details. Long text is split into bounded chunks, and the results are deduplicated before they become memories. References: openmetadata-service/…/ContextMemoryExtractor.java• L23-46, openmetadata-service/…/ContextMemoryExtractor.java• L64-109

Different values for the same question remain separate candidates. A changed number is therefore not treated as a harmless rewording. Depending on the provider, a new memory starts approved or waits in an unprocessed review stage. References: openmetadata-service/…/ContextMemoryExtractor.java• L37-46, openmetadata-service/…/ContextMemoryExtractor.java• L55-62, openmetadata-service/…/ContextMemoryExtractor.java• L171-191

Memory identity

Reconciliation first matches the same normalized question and answer. It then uses safe text similarity for reworded claims. A match keeps the memory identity and its usage data, while a changed claim can receive a new review stage. Human-edited or reviewed memories are not overwritten by a later extraction run. References: openmetadata-service/…/ContextMemoryReconciler.java• L96-118, openmetadata-service/…/ContextMemoryReconciler.java• L320-369, openmetadata-service/…/ContextMemoryReconciler.java• L397-418

Equivalent facts from another source can link to the existing memory. A conflicting value does not replace a decided memory. It becomes an unprocessed candidate for review, which keeps both claims visible to the review process. References: openmetadata-service/…/ContextMemoryReconciler.java• L176-209, openmetadata-service/…/ContextMemoryReconciler.java• L270-317

Visibility and review controls

Visibility answers who may read a source or memory. Review status answers whether a memory is trusted as current knowledge. Context Center applies both controls to direct reads, lists, search, source links, and AI context.

Memory visibility

Source links are also disclosure paths. A relinking write keeps names of restricted files out of the memory data and history that it records. It can retain only an id and type when a reference must remain for internal linking. References: openmetadata-service/…/MemoryRelinking.java• L13-15, openmetadata-service/…/MemoryRelinking.java• L53-91

Source lifecycle writes use conditional updates. If a person changes a memory while a source is being archived, restored, shared, or detached, the lifecycle write fails or retries instead of overwriting that decision. References: openmetadata-service/…/MemoryLinkWrites.java• L20-24, openmetadata-service/…/MemoryLinkWrites.java• L48-57, openmetadata-service/…/MemoryLinkWrites.java• L72-93

Memory review

Approved memories can ground normal AI responses. Draft, unprocessed, rejected, and other non-approved stages remain available for management or review but do not act as ordinary current knowledge. A memory can carry a dispute that explains which other claims a reviewer must compare. References: openmetadata-service/…/MemoryConflictDecision.java• L220-225, openmetadata-service/…/ContextMemoryReconciler.java• L159-183

Conflict review is a guarded decision. The reviewer must compare the current claims. Approval can supersede an approved disputed memory. Rejection changes only the reviewed memory. If a compared claim changed, became archived, or was replaced by a later value, the decision waits for a new review. References: openmetadata-service/…/MemoryConflictDecision.java• L141-168, openmetadata-service/…/MemoryConflictDecision.java• L200-216, openmetadata-service/…/MemoryConflictResolution.java• L172-190, openmetadata-service/…/MemoryConflictResolution.java• L291-312

Conflict changes commit together. A failed check leaves the reviewed and disputed memories unchanged and leaves the review open for another attempt. References: openmetadata-service/…/MemoryConflictResolution.java• L53-60, openmetadata-service/…/MemoryConflictResolution.java• L276-289

AI context surfaces

AI context has two related paths. A question-first path finds governed knowledge and candidate assets. An asset-first path builds bounded context for one selected asset. Both paths apply the caller's access and memory review rules.

Context delivery

The server exposes files and memories through REST resources. Memory operations cover source links, lifecycle views, history, derivations, edits, and review actions. AI context operations find knowledge for a question or assemble knowledge attached to assets. References: openmetadata-service/…/ContextMemoryResource.java• L91-111, openmetadata-service/…/AIContextResource.java• L50-149

Search provides the discovery layer for files and memories. Its query model can use text, source, status, ownership, sharing, and asset links. Access rules are applied in the search request so hidden records do not enter a result set for later filtering. References: openmetadata-service/…/ContextMemorySearchVisibility.java• L35-80

Agent context

An asset context bundle combines asset details with related glossary terms, metrics, articles, and approved memories. A shared content budget controls how much text an agent receives. Items can become excerpts or references when the budget is tight, and the bundle can mark knowledge as stale without removing it. References: openmetadata-service/…/AIContextBuilder.java• L90-100, openmetadata-service/…/AIContextBuilder.java• L234-253, openmetadata-service/…/AIContextBuilder.java• L605-632

MCP gives agents the same governed model through tools. A question search finds approved terms, metrics, and pages, then routes results to assets that the caller may view. A follow-up can request full content when the first bundle contains only an excerpt. Inaccessible attached items are omitted rather than exposed through an otherwise visible asset. References: openmetadata-mcp/…/FindContextTool.java• L22-32, openmetadata-service/…/AIContextFinder.java• L49-57, openmetadata-service/…/AIContextBuilder.java• L796-852

Context Center interface

The web interface gives users separate views for documents, pages, memories, and AI context. It supports source preview and sharing, memory editing and review, and persona context status. The interface reflects server decisions; it does not bypass source visibility or memory review rules. References: openmetadata-ui/…/contextCenter.module.tsx• L114-289, openmetadata-ui/…/DocumentsView.component.tsx• L507-613

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep source copy, archive, restore, sharing, and relinking rules aligned so a restricted source cannot leak through a shared memory.
  • Keep conditional source-link writes aligned with memory edits and conflict decisions so concurrent changes fail safely.
  • Keep extraction rules aligned with reconciliation rules for conflicting values, review stages, and source reuse.
  • Keep archived-source marks aligned with permanent deletion and restoration so a person-deleted memory does not return.
  • Keep conflict comparison timestamps aligned with supersession chains and archive checks before approval.
  • Keep MCP and AI context filtering aligned with search visibility and approved-memory rules.
  • Keep context budget behavior aligned with excerpt and full-content follow-up responses.

Important failure modes

TriggerConsequenceGuard
A restricted source remains named in a shared memoryA reader can learn that a hidden document supports the memoryRelinking removes restricted names and copies or reanchors the memory when needed.
A changed value is matched as a rewordingA reviewed claim can be silently replacedConflicting values remain separate and enter review.
A source lifecycle write lands over a user decisionReview or sharing changes can be lostConditional writes retry on fresh reads and fail after bounded attempts.
A memory is approved after its compared claim changedThe decision can apply to facts the reviewer did not inspectConflict decisions check content times and current dispute members.
A source is archived and later restoredIts memories can stay live or fail to return with the sourceSource marks distinguish archive-driven deletion from person deletion.
AI context includes a pending or hidden memoryAn agent can use untrusted or unauthorized knowledgeSearch and context assembly filter by caller access and approved status.

Key files

FileWhy to read it
openmetadata-service/…/ContextMemoryExtractor.javaSource text to candidate memory boundary.
openmetadata-service/…/ContextMemoryReconciler.javaMemory identity, source reuse, conflict holds, and retirement rules.
openmetadata-service/…/MemorySourceLifecycle.javaMemory behavior when sources link, archive, restore, or detach.
openmetadata-service/…/MemorySourceSharing.javaMemory behavior when file visibility changes.
openmetadata-service/…/MemoryRelinking.javaProtection against restricted source disclosure.
openmetadata-service/…/MemoryConflictDecision.javaConflict approval, rejection, comparison, and supersession rules.
openmetadata-service/…/MemoryConflictResolution.javaConflict review authorization, archive checks, and atomic decisions.
openmetadata-service/…/AIContextBuilder.javaAsset context assembly, access checks, budgets, and stale signals.
openmetadata-service/…/AIContextFinder.javaQuestion-first knowledge discovery.
openmetadata-service/…/ContextMemorySearchVisibility.javaSearch-time access and status filtering.
openmetadata-mcp/…/FindContextTool.javaMCP question-first agent surface.
openmetadata-ui/…/contextCenter.module.tsxUser-facing Context Center areas and navigation.