Skip to main content
Version: Studio 2.2.7

Intelligence Graphs in depth

An Intelligence Graph (AMPG) turns your documents into a connected map that agents search when they answer. It keeps your document at several levels of detail, links the pieces with relationships a model has confirmed and explained, and learns which kinds of relationship matter in your material. At answer time an agent gets ranked evidence from that map in seconds, with the links that led there.

This page explains how a version is built and searched, how that differs from the two common alternatives, and where your data is at every stage. It describes what each step does and why; the exact methods, prompts and settings are proprietary and are not published.

Who this is for​

Architects and security engineers assessing Intelligence Graphs, and anyone comparing them with other ways of grounding an AI in documents. The user-facing pages start at Intelligence Graphs.

Before you start​

Vocabulary: an Intelligence Graph is the container your users create; a version is one immutable build of it from a set of documents; an agent pins a version. Versions are peers: there is no pointer that names one of them as the live one. In Studio a version is Building, Ready, Failed or Cancelled (a version being removed shows Deleting), and an agent can pin only a Ready version; the picker defaults to the highest Ready version.

Two terms used below:

  • Standard vector RAG splits documents into fixed-size chunks, stores a vector for each, and at question time hands the model the chunks most similar to the question.
  • Standard GraphRAG asks a model to extract entities and short relationship labels, groups the entities into communities and writes a summary of each; at question time a model reads the entities or summaries that match.

Three approaches compared​

Standard vector RAG

Standard GraphRAG

AlphaAgent Intelligence Graph

Standard vector RAGStandard GraphRAGAlphaAgent Intelligence Graph
What is storedFixed-size chunks and one vector eachEntities, short relationship labels and model-written community summariesYour document at several levels of detail, from a full passage to a single sentence; each piece keeps its original text beside an enriched version with context and definitions
How the document is readExtracted text, often losing tables and layoutExtracted textA model reads each page from its image, so tables, columns and figure captions keep their meaning
RelationshipsNoneLabels such as "related to", extracted in one passTyped relationships (for example elaborates, contrasts, builds upon), each confirmed by a model, explained in a sentence and given a confidence; within a section, across sections and across levels of detail
Quality checks during the buildNoneNone as standardEvery split is checked to cover its parent's text; weak relationships are dropped; the finished graph is tested with questions from its own content and gaps are linked
Learning from your materialNoNoEach version learns how its relationships behave and keeps that learning only for the relationship types where it measurably beats plain similarity
Finding facts that sit far apartOnly when each chunk happens to resemble the questionThrough shared entities, mostly via summariesBy following explained relationships up to two steps from the best matches
Level of detail in an answerOne fixed chunk sizeAn entity or a community summaryChosen per question: a single sentence where that is enough, a full passage where it is needed, never the same text twice
Model calls per questionOne embeddingMany for broad questions (a model reads and combines summaries)One embedding, plus one short rewrite only when the first search finds little; no model writes the search result
What the agent receivesChunksGenerated summariesRanked pieces of your document, each self-contained, with the stated relationships between them and any predicted links clearly marked as predictions
Change controlIndex usually updated in placeRebuilt or updated in placeImmutable versions; each agent pins one and changes only when you move it

A worked example: an annual report​

An illustrative example. The company and figures are invented; it shows how each approach behaves, not a measured result.

Halden Group plc, a fictional company, publishes a 30-page annual report. An analyst asks an agent:

Can Halden keep growing its dividend if the euro weakens next year?

No single passage answers this. The answer is spread across five places in the report, and most of them use none of the question's words.

Where in the reportWhat it saysWhy it is hard to find
Chair's letter, page 3"We raised the dividend by 15% and intend to keep growing it."Easy to find, but only the starting point
Segment results table, page 12Europe is 41% of revenue and 48% of operating profitA table: extracted as plain text, its columns run together; it never mentions the euro or the dividend
Principal risks, page 19"We hedge our euro exposure twelve months ahead."Sounds reassuring on its own
Note 18, Borrowings, page 26"The revolving facility requires net debt to stay below 3.0 times EBITDA. Dividends are restricted if this test is not met." Net debt was 2.6 times EBITDA at the year endA long note about loans; never mentions the euro
Note 24, Events after the reporting period, page 29"Hedges for the coming year were placed at rates 6% less favourable than the current year."At the back of the report; mentions neither the euro nor the dividend

The full answer needs all five: almost half of profit is earned in Europe; the hedge covers one year only and next year's is already at a worse rate; and the dividend can be restricted if profit falls far enough to push net debt above 3.0 times EBITDA, from 2.6 times today.

Standard vector RAG​

  • Build. The text is cut into fixed-size chunks. The segment table comes out as a run of numbers and is split across two chunks, so the Europe figures lose their headings.
  • Question. The chunks most similar to the question come back: the Chair's letter (dividend) and the principal risks (euro, hedging).
  • Missed. Note 18 and Note 24 do not look like the question, so they rarely make the cut. The table chunks read as numbers without labels.
  • Answer. "Yes. Halden raised its dividend by 15% and hedges its euro exposure twelve months ahead." Confident, cited and wrong by omission.

Standard GraphRAG​

  • Build. A model extracts entities such as Halden, euro, dividend and revolving facility, with short labels such as "Halden is exposed to the euro", and writes a summary of each group of entities.
  • Question. A broad question like this one is answered from the summaries: a model reads many of them and combines them. That takes many model calls, so it is slower and costs more per question.
  • Missed. Summaries keep the themes (currency risk, a loan with conditions, a growing dividend) but tend to drop exact figures and conditions: the 3.0 times limit, the 2.6 times today, the 6% worse hedge rate and the fact that the loan can restrict the dividend.
  • Answer. "Halden is exposed to currency risk, which it hedges, and has borrowing covenants." Accurate, but too general to act on.

AlphaAgent Intelligence Graph​

Once, during the build:

  • A model reads page 12 as an image, so the table keeps its rows and headings: "Europe: 41% of revenue, 48% of operating profit".
  • Note 18 is broken down to the single covenant sentence. Its enriched version explains what net debt to EBITDA means, so the sentence makes sense on its own.
  • Relationships across the report are found, confirmed by a model and explained, for example:
    • Chair's letter to Note 18, CONTRASTS: "the intention to keep growing the dividend is limited by the covenant, which restricts dividends if it is not met".
    • Principal risks to Note 24, CONTRASTS: "the twelve-month hedge described as protection has already been renewed at a less favourable rate".
    • Principal risks to the Europe row of the table, ELABORATES: "shows how much of the profit the euro exposure affects".
  • The self-test checks that Note 24, at the back of the report with few obvious links, can be reached.

When the agent asks, in seconds:

  1. Searching by meaning and by wording finds the Chair's letter and the principal risks.
  2. Following relationships from those two reaches Note 18, Note 24 and the Europe row of the table, none of which the question resembles.
  3. Ranking puts these confirmed relationships first. On a version whose learned relationship patterns passed their check, the types that matter most in this report weigh more.
  4. The agent gets the covenant sentence rather than the whole two-page note, and the Europe row rather than the whole table, with no text repeated.
  5. The agent receives the five pieces and the relationships that explain how they connect.

Answer. "Not safely. Almost half of operating profit comes from Europe (segment results). The euro is hedged only twelve months ahead, and next year's hedges are already 6% less favourable (Note 24). Dividends are restricted if net debt rises above 3.0 times EBITDA (Note 18); it is 2.6 times today, so a sustained fall in the euro would erode that headroom." Each point is cited to the passage it came from.

Side by side​

Standard vector RAGStandard GraphRAGAlphaAgent Intelligence Graph
Parts of the answer found2 of 5The themes of all 5, few of the figures5 of 5, with the figures
The covenant that restricts the dividendMissedMentioned in general termsFound and linked to the dividend
The worse hedge rate for next yearMissedUsually dropped from the summaryFound and linked to the hedging statement
The table figuresNumbers without labelsNot keptKept with their headings
Model calls when the question is askedOne embeddingManyOne embedding, plus one rewrite only if the first search is weak
What the analyst can do with the answerAct on an incomplete pictureGo back and read the reportAct on it, and check each point against the cited passage

The difference comes from work done once, at build time: reading the pages properly, keeping every level of detail, and confirming and explaining the relationships between distant parts of the report. At question time the agent follows those relationships instead of hoping that each relevant passage happens to resemble the question.

How a version is built​

The steps Studio shows for a build are Upload, Prepare document, Parse document, Build graph, Import graph and Train embeddings. Build graph covers levels of detail, enrichment, relationship discovery and the self-test.

StepWhat it doesWhat it means for you
Read every pageA model reads each page from its image rather than from extracted textTables, multi-column layouts and captions are understood, not scrambled
Levels of detailEach passage is split into paragraphs, then groups of sentences, then single sentences; every split is checked to cover its parent's text and redone if it does notNothing in your document is dropped, and an answer can quote one precise sentence or take a whole passage
EnrichEach piece gets an enriched version with the context and definitions it needs to stand alone, checked to keep the original meaning (if the check fails, the original is used), plus an importance score and topic tags; the original text is kept beside itA sentence found on its own still makes sense, and important material ranks higher
Discover relationshipsLikely related pieces are found by meaning, including in distant sections and at other levels of detail; a model confirms each one, names its type, writes a sentence explaining it and gives a confidence; weak ones are droppedThe graph holds real, explained connections rather than guesses, and both directions can be followed
Self-testThe build asks questions drawn from the graph's own content, checks what can be reached, and adds links where content is cut offFewer blind spots: material is reachable even when no question looks like it
Learn relationship patternsAfter the version is Ready, a model is trained on its relationships and tested on links it has not seen, type by type, against plain similarity; only the types where it wins are usedSearch gets better where your material shows it should, and never worse where it does not

Levels of detail and relationships, by example​

A quarterly report: a sentence in the results section and a sentence in the risks section are many pages apart and use different words. Vector RAG finds one of them at most; the Intelligence Graph links them during the build and explains why.

Every relationship has one of eight types:

TypeMeaning
CONTAINSA larger piece holds a smaller one (a passage and its paragraphs)
ELABORATESGives more detail on the other piece
CONTRASTSShows a difference, tension or exception
BUILDS_UPONExtends or continues the other piece
IMPLEMENTSPuts an abstract idea into practice
EXEMPLIFIESGives an example of it
VALIDATESConfirms or supports it
RELATEDA confirmed link that fits none of the above

A version's statistics in Studio count its nodes, relationships and relationship types.

How a question is answered​

StepWhat happensWhat it means for you
Two searchesThe question is matched by meaning and by exact wording inside the pinned version only, and the two rankings are combinedFinds both paraphrases and exact terms such as product codes, names and figures
One rewrite at mostWhen the best match is weak, a model suggests the search terms the question implies, onceVague questions still land, without a slow back-and-forth
Follow relationshipsThe best matches' neighbourhoods are read up to two steps away in one queryBrings in the explanation, the exception or the supporting figure that sits elsewhere in the document
RankRelationships are ranked by their confidence, the importance of what they connect and their relevance to the question; where the version's learned pattern passed its check, it is blended inThe strongest evidence comes first
ChooseThe best pieces are chosen within a fixed budget; a piece whose larger or smaller version is already chosen is skippedFocused context: no padding, no duplicates
ReturnThe agent receives each chosen piece once, the stated relationships between them and a short extract of the top results; it answers and cites the passages it usedAnswers you can trace back to your document

The only model calls while searching are the question's meaning vector and, at most, the one rewrite. All the reading, splitting, enriching and linking happened once, during the build, and was checked there; at answer time no model reads or summarises the evidence before the agent sees it. That is why search takes seconds.

Stated linkPredicted link
Where it comes fromConfirmed by a model during the build, with an explanationProposed at answer time from the version's learned relationship patterns
When it appearsWhenever it connects the evidence chosenOnly on a version whose learned patterns passed their check, and only when it is at least as plausible as a typical stated link
How it is shownAmong the relationshipsIn a separate list, marked as predicted, with the relationship type it is predicted to be
How the agent treats itAs evidence it can citeAs a lead worth checking; the agent is told not to cite it as a fact

What this means for you​

BenefitBecause
Answers in secondsSearch is code, not a model loop; one meaning vector and at most one rewrite per question
Answers that connect the whole documentExplained relationships link facts across sections and levels, and search follows them
The right amount of contextLevels of detail let a question take one sentence or a full passage, without repeats
Traceable answersThe agent cites the passages of your document it used; predicted links are kept apart and never presented as fact
Quality that is measured, not assumedSplits are checked for coverage, weak relationships are dropped, the graph tests itself, and learned patterns are used only where they beat plain similarity
Predictable changeVersions are immutable and agents pin one, so an update never changes an agent's answers until you move it
Your data stays in your accountEvery step below runs in your deployment

The trade-off. A build does much more work than a vector index: a model reads every page, splits and enriches every piece, and confirms every relationship. A build therefore takes longer and uses more Worker model tokens than indexing chunks would. That work is done once per version; every question afterwards is fast and cheap.

Versions built before Studio 2.2.7 answer without learned relationship patterns. Build a new version and move your agents to it to benefit; see Use, move agents, delete.

Where your data is at each stage​

StageWhere the data isWhose account
Documents are addedThe kb-artifacts bucket in the deployment; the browser sends each document to the deployment's own host and the knowledge-base service writes it to the bucketYours
A build is queuedAn EventBridge rule on object creation puts a message on the kb-processing queue (with a dead-letter queue)Yours
The build runsThe knowledge-base ECS task (Heavy tier; 50 GiB of task storage) reads the documents and works through the steps Studio shows: Upload, Prepare document, Parse document, Build graph, Import graph, Train embeddings. Intermediate state lands in the kb-processing and kb-dgl-training buckets and in the Intelligence Graph tablesYours
Model calls during the buildAmazon Bedrock through the deployment's VPC endpoint, pinned to your zone: the deployment's Worker model for the build and cohere.embed-v4 for embeddings. Metered as kg_build, kg_edge_discovery and kg_embeddings, counts onlyYours
The finished versionYour self-hosted Neo4j (a single Fargate task) with its data on the encrypted EFS file system; every version is its own subgraph keyed by the graph and the version number, with its learned relationship patterns stored on its own nodesYours
Retrieval at answer timeThe knowledge-base-mcp service reads the version the agent pins from Neo4j and hands the agent bounded context; metered as kg_retrievalYours

Nothing about a document, a graph or a query is sent to Prometheus Research Labs. The Console sees the four kg_* metering kinds as token counts.

Versions​

  • One route creates every version. A first build from uploaded files, a rebuild from the browser, an Intelligence Graph update step in a Flow (Rewrite or Append) and an import from a Library all create version N+1 through the same operation. A version request names its source: uploaded files, keys already in the workspace, an import from a Library transfer, or a retry of a failed version.
  • The base of an update is the highest Ready version. A Flow step that updates a graph starts from that version's documents. Rewrite produces one consolidated document that becomes the whole next version; Append adds a document beside the base. There is no union of every earlier version.
  • Bounds. At most 50 versions per graph, and one version building at a time per graph: a second request while one is building answers 409. A document is a PDF of up to 32 pages and 50 MiB.
  • What a version records. Status and failure reason; created, started and finished times; who created it; its source; the job ids; graph statistics (nodes, edges, relation types, documents, pages) stamped when it becomes Ready; the documents it was built from; and, for a version a Flow produced, provenance naming the run and conversation.
  • Learned relationship patterns are per version. Each version trains its own when it becomes Ready, from its own relationships only. A version whose training did not pass its check answers on meaning and wording alone.
  • Deleting a version removes its subgraph. Agents pinned to it are found first (the service asks agent-management which agents pin the version), so a version in use is not silently removed from under them.

How agents use a graph​

An agent pins one graph at one version in its active configuration. A change to the graph does not change what the agent reads until the agent is re-pinned. Re-pinning is explicit: from the agent's configuration, from a Flow step that has Update all agents using this Intelligence Graph set, or from the graph page, which lists the agents affected. Retrieval is bounded to the pinned version and stays inside the deployment; the answer cites the passages it used.

Sharing a graph between deployments​

An Intelligence Graph shared to a Library is catalogued as a pointer to one version with node and edge counts. On pull, the Organisations engine runs the kg-transfer task in the source deployment to export that version's subgraph to the source account's staging bucket, copies it to the target account's staging bucket, and runs the task in the target deployment to import it as a new version there. Neo4j credentials for each side come from that deployment's own configuration secret. Staged objects expire after seven days; see Secrets and connector credentials.

Steps: verify the stores in your account​

  1. In S3, open alphaagent-kb-artifacts-<account>-<region>: your users' documents, one prefix per graph.
  2. In SQS, open alphaagent-kb-processing; a build in progress shows messages in flight.
  3. In ECS, open the neo4j service: one task, with the EFS volume mounted at /data.
  4. In EFS, open the Neo4j file system: encrypted, backups enabled, size growing with versions.
  5. On the deployment's Analytics tab in the Organisations console, choose By activity: kg_build, kg_edge_discovery, kg_embeddings during builds and kg_retrieval during use.

What you should see​

  • Every Intelligence Graph object in your own buckets, tables and file system, in the deployment region.
  • A Ready version with graph statistics, and agents pinned to a named version rather than to "the latest".

Limits​

  • 50 versions per graph; one build in flight per graph; PDF documents up to 32 pages and 50 MiB each.
  • In a standard deployment each user may create up to 256 Intelligence Graphs; in a governed deployment graphs are shared and the cap stands down.
  • Neo4j is a single task on Fargate. Its durability is the EFS file system and its backups, not a Neo4j cluster.

If something goes wrong​

  • A version shows Failed: open it for the failure reason; the documents are untouched and a retry creates a new version.
  • A build stays in Building: the knowledge-base task's log group in CloudWatch shows the step; a message in the dead-letter queue means the task could not process it.
  • An agent cannot pin a version: only Ready versions can be pinned; wait for the build or pick an earlier Ready version.