Skip to content
← All guides

Knowledge architecture / Guide

Build a knowledge graph from documents: a source-linked walkthrough

Build knowledge architecture that helps your AI agent find the right source, connect related facts and keep track of corrections.

Interlocking concrete beams against a pale sky.
Photography by Yaosheng Zheng / Unsplash

See the architecture behind agent-ready knowledge

Read from the sources up. Different inputs become source text, connected knowledge and searchable indexes. The retrieval layer draws on those structures to supply context to your agent.

Gigabrain / Visual guideConceptual illustration

Enlarge diagram

Gigabrain knowledge and retrieval architectureRead upward from approved inputs. Documents, tables, email, app data, voice notes and videos are prepared as supported source text. Local indexing and separately approved agent authoring create distinct retrieval indexes and a typed knowledge graph. Hybrid search, bounded graph context and source checks supply selected context to the installed agent adapter. The displayed graph is an illustrative project, not an executed result. This is a component architecture, not a runtime sequence. GIGABRAIN / KNOWLEDGE + RETRIEVAL ARCHITECTURE READ FROM THE SOURCES UP “Why did we change suppliers?” Your AI agent question CONTEXT RETRIEVAL Hybrid search Lexical + semantic · rank fusion Graph context Scoped relationship traversal Source checks Identity · hash · exact span selected context + source handles Knowledge graph AUTHORED MEMORY Retrieval indexes relationships + knowledge candidates supersedes depends_on decided_by relates_to relates_to Contract v1 Contract v2 Review call Notify team Switch supplier Risk report Lexical Exact terms Semantic Meaning vectors Rebuildable from source text Approved inputs → extract / convert / transcribe → source text + provenance Agent / loop authoring Local indexing Documents Tables Email + apps Meetings Voice notes Videos approved material Solid: data / context. Dashed coral: separate agent authoring. Graph arrows: typed relationships. Architecture, not execution order.
The graph retains authored relationships; the indexes support exact-term and meaning-based search. They have different jobs. This is a component architecture, not an execution sequence.
Read the diagram step by step
  1. Approve the project material and configured feeds the system may use: documents, tables, email or app exports, meeting transcripts, voice notes and video transcripts.
  2. Use file preparation for supported Word, Excel and email formats. Local speech transcription needs its tools and model. Image text extraction and app connections need separate tools or exports.
  3. Local ingestion preserves source identities and exact-text chunks. Local indexing builds lexical and semantic retrieval structures. Separate, approved agent or loop authoring creates knowledge notes and relationships.
  4. Hybrid retrieval combines candidate ranks. Optional graph expansion can find further permitted source passages. Results retain source receipts and relationship paths.
  5. Invoke retrieval through a supported integration or the manual command. A hosted agent processes the context you share with its provider.

This diagram explains the architecture, not measured performance. It does not report test results for automatic retrieval or task routing. See the tested integrations and versions.

The short answer

Build the architecture around a question whose answer you can verify.

Map source authority, meaningful relationships and the path back to evidence.

Design for the questions, then the folders

Knowledge architecture is how you organize sources, the knowledge you take from them, and the connections between them. Your agent uses that structure to find evidence for a task. You should be able to follow its answer back to the source.

Start with a recurring decision. For a project review, you might need to know what changed, who agreed to it, which deadline applies and what remains unresolved. A folder called "Important" cannot express those distinctions. A structure that preserves projects, decisions, dates and source references can.

Bring different sources into the same architecture

Your knowledge may start in a PDF, a spreadsheet, an email thread, a meeting, a voice note or a video recording. The original medium and the text used for retrieval are different things. Keeping that distinction visible helps you understand what the system can search and what still needs preparation.

Gigabrain ingests supported text and tabular files, plus text-bearing PDFs when an extractor is available. The file preparation tool handles supported Word, Excel and email formats. Local audio and video speech transcription needs extra tools and a downloaded model. Scans need a separate text extraction tool. Speech transcription does not inspect photographs or video frames. Keep the original alongside its prepared text where the workflow calls for it. Exact-span verification can check the prepared passage, but it does not prove that an OCR tool or transcription was accurate.

App data arrives through the exports or enabled agent connectors you configure. Mail, calendar and accounting streams have different permissions and formats. An ingestion loop can process the approved feeds on its configured schedule. It does not grant access to every app or scan the whole computer. Register one source route, verify that a real passage can be retrieved, then expand. See document preparation and chunking and meeting decisions with evidence for worked guidance.

Map each layer to a responsibility

LayerExampleRule
OriginalsA meeting transcript or signed amendmentPreserve the input. Record where it came from.
Knowledge notesOne sourced decision about deliveryKeep a claim small enough to verify.
RelationshipsAn amendment supersedes a prior decisionName the relationship. Do not treat every link as equivalent.
RetrievalSelected passages for a project questionKeep derived indexes rebuildable.
OutputA project brief with citations and unknownsKeep evidence distinct from suggestions.

In Gigabrain, original material, curated knowledge and the retrieval corpus have distinct roles. The knowledge area includes Sources, MOCs and Process material. The retrieval corpus is derived material. See the product mechanism before designing imports around these boundaries.

Work through one changed decision

Consider this fictional example. A meeting note says "Project North ships on 12 October." A later amendment says "Project North now ships on 18 October." A project summary should retain enough history to explain the change without presenting both dates as equally current.

Original decision: delivery on 12 October. Source: meeting note.

Amendment: delivery on 18 October. Source: dated amendment.

Relationship: amendment supersedes original decision.

Answer: current delivery is 18 October, citing the amendment and identifying the earlier date as replaced.

A link is not proof. Someone must verify that the amendment concerns the same project and actually replaces the relevant commitment. Gigabrain's graph validation checks supported structure. It cannot establish whether the business statement is true.

Use relationships only when they carry meaning

Gigabrain supports typed relationships including supersedes, contradicts, depends_on, caused, decided_by and relates_to, with corresponding inverse relationships. They help express distinctions a generic backlink leaves implicit.

For example, "depends on" describes a prerequisite. "Caused" asserts an explanation. Do not infer causation merely because two events occurred close together. Reserve contradiction for claims that cannot both apply in the same scope and time. Two different project dates may be perfectly consistent.

Inspect the graph model and example for the product's supported representation. Start with the relationships your test questions need. Add more only when someone can keep their meaning consistent.

Save the passage behind each answer

For each answer, record the source path, relevant passage and the question that selected it. A good test set should include an exact identifier, a paraphrased question, a changed fact, an absent answer and a similarly named project. These cases expose different weaknesses.

If retrieval misses a known source, inspect import coverage and the index before changing the reasoning prompt. If retrieval finds the right source but the answer misstates it, inspect the agent's instructions and response. If the source itself is outdated, repair the knowledge.

Specify a source contract before importing

A source contract records what a document is allowed to establish. A meeting transcript can establish what somebody said. It may not establish that a proposal was approved. A signed amendment may outrank an earlier draft, but only for the matters it actually changes. The agent needs enough context to preserve these distinctions.

FieldWhy it mattersIllustrative value
Source identityDistinguishes revisions and similarly named filesNorth / amendment / revision 2
AuthoritySeparates proposals from approved decisionsApproved by the project owner
TimeSeparates publication, effective and import datesEffective date stated in source
ScopeLimits where the fact appliesNorth delivery. Not South
Review statusKeeps uncertainty visibleVerified against paragraph 2

Do not turn this into mandatory clerical work for every casual note. Use the fields when they change how a consequential answer should be interpreted. A research bookmark may need a URL and publication date. A client commitment needs a clearer authority record.

Before connecting the graph, sketch the intended path from question to answer. For "why did the date change?", that path should reach both the current amendment and the decision it replaces. If the path ends at an agent-written summary, make sure the summary still points to the original.

Use the source-contract worksheet with one representative project. The worksheet is a design aid, not a schema Gigabrain requires. Resolve the difficult cases there before importing hundreds of documents.

Give maintenance an owner

  • Review important decisions when a new source changes them.
  • Keep unresolved contradictions visible until someone can resolve them.
  • Check imports and rebuild derived data after changes using supported tools.
  • Test recovery from a copy before relying on a backup.
  • Keep project boundaries explicit when agents share a workspace.

Download the workbook to turn these rules into a small acceptance set. Gigabrain supplies the ingestion, semantic and lexical retrieval, typed relationships and source-verification tools. Your source quality and review choices still matter. Check compatibility, then compare System and Pro for the workflow you want to run.

Further reading

From Local to Global: A Graph RAG Approach to Query-Focused Summarization studies a particular graph and community-summary approach to corpus-wide questions. It is useful background, not evidence that every graph outperforms ordinary retrieval or that Gigabrain implements Microsoft GraphRAG.

Build from the question back to its sources

Ask which date governs Project Alder's inspection. The answer needs the project dependency, the review's schedule and the date in that schedule.

Keep those as three source records. Retain supporting passages when you represent their relationships. The graph then supplies a navigable path without replacing the source documents.

  1. Create a separate test vault.
  2. Add the approved fictional source files.
  3. Complete ingestion and indexing through the supported setup.
  4. Review each proposed relationship against its source.
  5. Query the connected project through the supported interface.
  6. Inspect the returned path and quotation.
  7. Repeat after adding a dated correction.

The reproduction package runs the authored synthetic fixture against a local customer archive. It is separate from model-based graph authoring and does not measure extraction quality.

Make source changes an architectural test

In the executed correction demo, a disposable source changed from 18 October to 25 October. Its old receipt failed verification.

Maintenance removed stale graph support. The refreshed path returned only after the fixture supplied current support. This sequence separates source changes, index maintenance and relationship maintenance.

Preserve originals in normal work. The deliberate mutation belongs to the isolated failure test. Use the stale-index guide to diagnose the relevant layer.

Method note: Gigabrain Labs prepared this material with AI assistance. Fictional teaching examples and executed results are labelled separately.

About this publication

Gigabrain Labs publishes practical guidance for people using file-capable AI agents. Our guides explain the product and link to supporting tests. We label practice exercises separately from recorded results.

About Gigabrain ↗
One complete system

Get Gigabrain.

Give your AI agent persistent, source-linked knowledge from the files you already own.

Gigabrain System
Complete core system

$79 once

The complete knowledge and memory system for your AI agent.

Try Gigabrain
7-day money-back guaranteeNot satisfied? Request a full System refund within seven days of delivery.
  • Persistent, source-linked memory
  • Semantic and lexical retrieval
  • Connected knowledge graph
  • Guided agent setup
  • Tools for building your own workflows
  • Twelve months of core updates

One-time purchase · No coding required · Knowledge stored locally · Model accounts and usage fees are separate

Gigabrain

Gigabrain System 1.1.0

Your context, ready for the next conversation.Keep your files, decisions and previous work ready for your AI.

7-day money-back guarantee

Not satisfied? Request a full System refund within seven days of delivery.

  • Keep every conversation connectedYour AI starts with the decisions and work already done.
  • Set up with a guided walkthroughStart your first project with clear, practical steps.
  • 12 months of core updatesKeep your system current as your work develops.
  • Your licence and download linkSet up on your computer. Keep your files local.

One payment. Yours to keep. No subscription.

Your AI agent and model usage fees are separate.

Secure checkout

Stripe handles your payment details. Your final total, including any tax, appears in the payment form before you pay.

Preparing secure checkout.