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 RAG | Standard GraphRAG | AlphaAgent Intelligence Graph | |
|---|---|---|---|
| What is stored | Fixed-size chunks and one vector each | Entities, short relationship labels and model-written community summaries | Your 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 read | Extracted text, often losing tables and layout | Extracted text | A model reads each page from its image, so tables, columns and figure captions keep their meaning |
| Relationships | None | Labels such as "related to", extracted in one pass | Typed 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 build | None | None as standard | Every 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 material | No | No | Each 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 apart | Only when each chunk happens to resemble the question | Through shared entities, mostly via summaries | By following explained relationships up to two steps from the best matches |
| Level of detail in an answer | One fixed chunk size | An entity or a community summary | Chosen per question: a single sentence where that is enough, a full passage where it is needed, never the same text twice |
| Model calls per question | One embedding | Many 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 receives | Chunks | Generated summaries | Ranked pieces of your document, each self-contained, with the stated relationships between them and any predicted links clearly marked as predictions |
| Change control | Index usually updated in place | Rebuilt or updated in place | Immutable 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 report | What it says | Why 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 12 | Europe is 41% of revenue and 48% of operating profit | A 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 end | A 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:
- Searching by meaning and by wording finds the Chair's letter and the principal risks.
- Following relationships from those two reaches Note 18, Note 24 and the Europe row of the table, none of which the question resembles.
- 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.
- 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.
- 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 RAG | Standard GraphRAG | AlphaAgent Intelligence Graph | |
|---|---|---|---|
| Parts of the answer found | 2 of 5 | The themes of all 5, few of the figures | 5 of 5, with the figures |
| The covenant that restricts the dividend | Missed | Mentioned in general terms | Found and linked to the dividend |
| The worse hedge rate for next year | Missed | Usually dropped from the summary | Found and linked to the hedging statement |
| The table figures | Numbers without labels | Not kept | Kept with their headings |
| Model calls when the question is asked | One embedding | Many | One embedding, plus one rewrite only if the first search is weak |
| What the analyst can do with the answer | Act on an incomplete picture | Go back and read the report | Act 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.
| Step | What it does | What it means for you |
|---|---|---|
| Read every page | A model reads each page from its image rather than from extracted text | Tables, multi-column layouts and captions are understood, not scrambled |
| Levels of detail | Each 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 not | Nothing in your document is dropped, and an answer can quote one precise sentence or take a whole passage |
| Enrich | Each 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 it | A sentence found on its own still makes sense, and important material ranks higher |
| Discover relationships | Likely 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 dropped | The graph holds real, explained connections rather than guesses, and both directions can be followed |
| Self-test | The build asks questions drawn from the graph's own content, checks what can be reached, and adds links where content is cut off | Fewer blind spots: material is reachable even when no question looks like it |
| Learn relationship patterns | After 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 used | Search 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:
| Type | Meaning |
|---|---|
| CONTAINS | A larger piece holds a smaller one (a passage and its paragraphs) |
| ELABORATES | Gives more detail on the other piece |
| CONTRASTS | Shows a difference, tension or exception |
| BUILDS_UPON | Extends or continues the other piece |
| IMPLEMENTS | Puts an abstract idea into practice |
| EXEMPLIFIES | Gives an example of it |
| VALIDATES | Confirms or supports it |
| RELATED | A 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
| Step | What happens | What it means for you |
|---|---|---|
| Two searches | The question is matched by meaning and by exact wording inside the pinned version only, and the two rankings are combined | Finds both paraphrases and exact terms such as product codes, names and figures |
| One rewrite at most | When the best match is weak, a model suggests the search terms the question implies, once | Vague questions still land, without a slow back-and-forth |
| Follow relationships | The best matches' neighbourhoods are read up to two steps away in one query | Brings in the explanation, the exception or the supporting figure that sits elsewhere in the document |
| Rank | Relationships 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 in | The strongest evidence comes first |
| Choose | The best pieces are chosen within a fixed budget; a piece whose larger or smaller version is already chosen is skipped | Focused context: no padding, no duplicates |
| Return | The 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 used | Answers 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 and predicted links
| Stated link | Predicted link | |
|---|---|---|
| Where it comes from | Confirmed by a model during the build, with an explanation | Proposed at answer time from the version's learned relationship patterns |
| When it appears | Whenever it connects the evidence chosen | Only 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 shown | Among the relationships | In a separate list, marked as predicted, with the relationship type it is predicted to be |
| How the agent treats it | As evidence it can cite | As a lead worth checking; the agent is told not to cite it as a fact |
What this means for you
| Benefit | Because |
|---|---|
| Answers in seconds | Search is code, not a model loop; one meaning vector and at most one rewrite per question |
| Answers that connect the whole document | Explained relationships link facts across sections and levels, and search follows them |
| The right amount of context | Levels of detail let a question take one sentence or a full passage, without repeats |
| Traceable answers | The agent cites the passages of your document it used; predicted links are kept apart and never presented as fact |
| Quality that is measured, not assumed | Splits are checked for coverage, weak relationships are dropped, the graph tests itself, and learned patterns are used only where they beat plain similarity |
| Predictable change | Versions are immutable and agents pin one, so an update never changes an agent's answers until you move it |
| Your data stays in your account | Every 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
| Stage | Where the data is | Whose account |
|---|---|---|
| Documents are added | The 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 bucket | Yours |
| A build is queued | An EventBridge rule on object creation puts a message on the kb-processing queue (with a dead-letter queue) | Yours |
| The build runs | The 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 tables | Yours |
| Model calls during the build | Amazon 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 only | Yours |
| The finished version | Your 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 nodes | Yours |
| Retrieval at answer time | The knowledge-base-mcp service reads the version the agent pins from Neo4j and hands the agent bounded context; metered as kg_retrieval | Yours |
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
- In S3, open
alphaagent-kb-artifacts-<account>-<region>: your users' documents, one prefix per graph. - In SQS, open
alphaagent-kb-processing; a build in progress shows messages in flight. - In ECS, open the
neo4jservice: one task, with the EFS volume mounted at/data. - In EFS, open the Neo4j file system: encrypted, backups enabled, size growing with versions.
- On the deployment's Analytics tab in the Organisations console, choose By activity:
kg_build,kg_edge_discovery,kg_embeddingsduring builds andkg_retrievalduring 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-basetask'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.