Launch Flow

Whitepapers

Knowledge Graph

The Fontana Knowledge Graph

How your documents, data files and decisions become one governed graph that AI agents search, navigate, query and cite.

Technical whitepaper
Zoltan Bourne · November 2026

Executive summary

The Fontana Knowledge Graph gives AI agents an institutional memory and the research tools to use it. It reads your organisation's documents, spreadsheets, data files and source code, and builds one governed graph from them: the passages, the organisations, products and other named things those passages mention, and the relationships between them. Agents search that graph, follow its links and query it, and every answer cites the file, the section and the passage it came from.

It is the knowledge layer of Fontana, an AI platform that runs in your cloud account, in Fontana's managed cloud or on your own hardware. It covers the whole path in one product: ingestion of your files, storage of everything derived from them, retrieval by agents, and governance of every step.

  • It reads the file as a person would

    Documents, scans, spreadsheets, data files and source code are read by their structure, so headings, tables, page numbers and code structure are kept. Scans go through optical character recognition (OCR) inside your own deployment. A file is searchable by keyword as soon as it is parsed.

  • It uses your vocabulary

    Fontana recognises the things your files name against an ontology you control: your list of the types that matter and the relationships allowed between them. Recognition runs inside your own deployment, and published industry standards import with their original identifiers.

  • It answers more than one kind of question

    Exact words, similar meaning, a walk along relationships, a read-only OpenCypher graph query, and SQL over the data files the graph points to. The agent picks the path for each step, and each step returns cited evidence.

  • It stays governed as it grows

    One permission model covers chat, workflows, schedules and external AI clients, and every tool call is recorded. Your files stay the record, knowledge at rest occupies disk only, and memory stays within a budget you set.

This paper explains how each part works, with the data structures, the standards, the tool names and the limits behind it.

Docs:Knowledge Graph overview

Introduction

Every organisation runs on knowledge that is written down somewhere: policies, contracts, procedures, product documentation, data dictionaries, spreadsheets, source code and the record of past decisions. That knowledge is spread across thousands of files. It changes on known dates, and the people who rely on an answer need to see where it came from.

AI agents can do real research on that material when they can reach all of it. Finding text that resembles the question is one part of the job. A dependable answer often needs more:

  • The exact term. A defined term, an identifier or a figure has to match word for word.
  • The context. A rule is understood in its section, beside its definitions and exceptions.
  • The relationships. Many questions follow a chain, from a clause to the agreements that contain it to the parties those agreements bind.
  • The date. The answer depends on which edition was in force on the day in question.
  • The data. Some answers are a count or a calculation over a data file.
  • The proof. Every claim leads back to a passage a reviewer can open.

The Fontana Knowledge Graph is built for that whole job. A knowledge graph stores things and the links between them. This one stores your files, their sections and passages, the entities those passages name, the typed relationships between those entities, the vocabulary that defines them and the source of every fact. Agents work on it through one governed toolset, and each tool returns evidence with its citation.

Where it sits in Fontana

Fontana is an AI platform with three parts that are run and governed as one. The Knowledge Graph holds what your organisation knows. The Agent Harness is the runtime in which AI agents work: assistants that act on a person's behalf, inside that person's permissions, in chat, in Slack and Microsoft Teams, on a schedule and inside workflows. The third part is where your team and its agents shape data work into workflows, repeatable processes that run again on new data and whose outputs can be ingested as knowledge in turn. People use all three in Flow, the Fontana web application.

Fontana runs on Kubernetes, in your cloud account, in Fontana's managed cloud or on your own hardware. Parsing, OCR and entity recognition run inside that deployment, which this paper calls the cluster. You choose the embedding provider and approve the language models that agents may call.

Who this paper is for

This paper is written for architects, engineers, data owners and the security and risk teams who review how knowledge is ingested, stored, retrieved and governed. It assumes no prior knowledge of Fontana. The next section defines the terms that recur, and each section ends with a link to the matching page of the product documentation.

The paper follows the path of the knowledge itself. It starts with what the graph holds and where each layer is stored. It then follows a file through ingestion and a question through retrieval, describes the tools and query languages agents use, and closes with governance, scale and deployment.

Key terms

These terms recur throughout the paper. Each later section introduces its own vocabulary where it is first used.

TermMeaning
AgentAn AI assistant that works on a person's behalf, inside that person's permissions. Each agent has its own instructions, tools and list of namespaces.
TurnOne run of an agent in response to a message, a schedule or a workflow step.
WorkspaceYour organisation's own Fontana environment: its people, agents, namespaces, data and secrets.
ClusterThe Kubernetes cluster that runs your Fontana deployment. A step that runs inside the cluster runs on that infrastructure.
Fontana FilesFontana's versioned file store. It is the record for every document, setting and authored fact, and every write is a new version with its author.
NamespaceA named library of files in Fontana Files, such as a policy library or one project's documents. It is the unit of access, and a namespace enabled for the Knowledge Graph has one graph.
PassageA short stretch of a document's text under one heading. It is the unit that search returns and cites.
EntityA named thing found in your files, such as an organisation, a product, a contract or a regulation.
RelationA typed link between two entities, kept with its source file and the quote that supports it.
OntologyYour vocabulary for a namespace: the types of entity that exist and the relations allowed between them.
EmbeddingA numerical form of a passage, an entity name or a whole file that captures its meaning. Also called a vector.
Evidence packageWhat every search or navigation step returns: the text, its citation and its context.
FlowThe Fontana web application that people use in the browser.
KG StudioThe part of Flow where you explore and administer a namespace's graph.
MCPThe Model Context Protocol, an open standard through which AI clients such as Claude, ChatGPT and Cursor call tools.

One graph, five dimensions

Many retrieval systems keep one view of a body of documents: text fragments and a vector for each. Fontana keeps five views of the same files and links them, so an agent moves between structure, meaning, vocabulary, similarity and provenance in one investigation. Each view is a dimension of one graph, and each answers a kind of question the others leave open.

DimensionWhat it holdsWhat you can ask
StructuralNamespaces, folders, files, a heading outline to six levels, and passages in reading order.Open a section, then step to the passage before it, after it, or the chapter above.
SemanticTyped entities, the relations the ontology allows between them, and co-occurrence: entities that are often named together, weighted by pointwise mutual information.Start from a name and walk the evidenced relationships around it.
OntologyEntity types and their hierarchy, relation types with allowed ends, constraints, and a stable identifier (an IRI) for each. The file is OWL 2, SKOS and SHACL in Turtle.Ask for a type and receive its sub-types. Keep one vocabulary across teams.
VectorEmbeddings of every passage, every entity name and every whole file, plus similarity links between entities and between files.Find the same idea when the wording differs.
ProvenanceFile, section, character offsets, page or line span, the quote behind each mention and relation, and how the fact was found.Open the source at the passage a claim came from.

The passage is the unit every dimension shares. A passage targets 1,600 characters and stays inside one heading. It records its place in the document, its character offsets, a SHA-256 hash of its text, and a context header of the form Document, Heading, Subheading. The same bytes always produce the same passages and the same keys, so a citation resolves to the same place on every later read.

Docs:Graph overlays

What is stored where

Four principles organise the architecture. Source files and the decisions you make about them are versioned files in Fontana Files, the platform's file store. Processing results are columnar tables on disk. The graph engine holds only the graph, and only while it is in use. One permission model covers every way in.

What the Knowledge Graph stores, and whereThe record is versioned files in Fontana Files: source documents, settings, the ontology and agent facts. Ingestion derives columnar tables on disk for each namespace. Search indexes and the article index are built from the tables. A graph is loaded from the tables into memory on first use, saved as a snapshot when it is released, and restored from that snapshot on the next use.THE RECORD · VERSIONED FILES IN FONTANA FILESDERIVED ON DISK · REBUILT FROM THE RECORDIN MEMORY · WITHIN A BYTE BUDGET YOU SETINGESTIONFIRST LOADRESTORESAVEFILESSource documentsevery format, every versionCONFIGSettingsnamespace · folder · fileSCHEMAOntologyTurtle · recognition treeFACTSAgent facts and mergescited, in the order writtenINDEXSearch indexesfull text · vector · B-treeTABLESColumnar tablesLance on Apache ArrowINDEXArticle indexone row per ingested fileSNAPGraph snapshota saved copy of the graphCACHEGraph cacheentities · relations · types
Figure 1. The record, what is derived from it, and what is held in memory. Everything below the first band can be rebuilt from the files in it.
LayerWhereWhat it holds
The recordVersioned files in Fontana FilesSource documents, namespace and file settings, the ontology, the recognition tree (the types entity recognition looks for), facts written by agents and merge decisions.
Derived tablesLance, an open columnar format on Apache Arrow. One dataset per namespace, on the shared file systemEleven tables: source stages, files, passages, outline, entities, mentions, relations, co-occurrences, ontology candidates, entity types and resolution plans. Vectors sit in the same rows as the text they describe.
Search indexesOn disk, beside the tablesAn inverted full-text index for BM25, the standard keyword ranking method. An entity-name index. B-tree indexes on passage, entity and source keys. Once a table reaches 50,000 vectors, an IVF-PQ index, a standard approximate index for large vector tables, with exact re-ranking.
Graph cacheIn memory, within a byte budget you setEntities, typed relations, co-occurrence and similarity links, types, files, folders, collections and outlines. Passage text, mentions and vectors stay in the tables.
Graph snapshotA binary file beside the tablesA saved copy of a graph, written when the graph is released and restored on the next use. It can always be rebuilt from the tables.
Article indexOne index for the whole workspaceOne row per ingested file: namespace, path, title, description, keywords, tags, opening text, file vector and dates. The search that starts each chat turn reads this index once.

Every change is written to its file before it reaches the graph: a setting saved in KG Studio, a review decision, a fact an agent writes. Every row in the tables carries the path of the source file it came from, so re-ingesting one file replaces that file's rows and leaves the rest of the namespace as it was. A graph is rebuilt from the files in a fixed order: the ontology, each file's results, then agent facts and merges in the order they were written. That rebuild calls no language model.

Docs:Knowledge Graph architecture

Ingestion

Ingestion turns a file into searchable knowledge. A file committed to a namespace flows through five stages. Each stage compares a fingerprint of its inputs with the record of its last attempt and runs only when they differ. An identical re-upload does no work. An edit reprocesses that file alone. After a restart, the next pass resumes from the files and the stage records.

How one file is ingestedA new file in a namespace is parsed into an outline and passages. Embed writes a vector for every passage while entity recognition finds entities, mentions and relations. Resolve sets types, merges duplicates and names relations. Index updates the graph. The file is searchable by keyword after Parse, by meaning after Embed, by entity after recognition, and by graph traversal after Index.SEARCHABLE AS EACH STAGE LANDSFILENew filein a namespace01Parseoutline and passages02Embeda vector for every passage03Entity recognitionentities, mentions, relations04Resolvetypes, merges, relations05Indexupdates the graphAFTER PARSEKeyword searchby word and by outlineAFTER EMBEDSearch by meaningpassages, names and filesAFTER RECOGNITIONTyped entitieswith the quoted evidenceAFTER RESOLVEResolved entitiesduplicates mergedAFTER INDEXGraph traversaltyped hops and OpenCypherLEGENDSearchable before any model runsRuns when you switch Resolve on for the namespace
Figure 2. One file through the five stages. Embed and Entity recognition run side by side once the file is parsed, and the file becomes more searchable as each stage lands.
StageWhat it doesIt runs again when
01ParseReads the file by structure into markdown, an outline and passages. A parsed file is searchable by keyword and by outline before any model runs.The file's bytes change, or you change how the namespace reads its files.
02EmbedWrites a vector for every passage, every entity name and every whole file. You choose an embedding service inside the cluster, an OpenAI-compatible endpoint or AWS Bedrock.The text changes, new entity names appear, or you change the embedding profile.
03Entity recognitionFinds the entities each passage names. A keyword matcher compiled from your ontology's labels and aliases works beside a zero-shot model inside the cluster, which recognises types it was not specifically trained on and reads prose against your recognition tree. Tables and code are mined from structure, with no language-model call.The text changes, or you change what you want recognised.
04ResolveA stage you switch on for a namespace. A decision service that answers closed questions and reports its confidence types ambiguous entities, confirms merge candidates and names relations. It writes only confident answers, and its spend counts against the budget you set for the namespace.Recognition produces something new for the file.
05IndexApplies each stage's results to the graph when that graph is loaded, and catches up at the next load when it is on disk. Keyword matching against the published ontology runs here.Any earlier stage lands a new result.
  • Parsing has priority across a namespace, so a large drop becomes searchable early and then grows richer. Work you start goes ahead of automatic work.
  • Each attempt is stored beside its results: input fingerprint, output fingerprint, outcome and time. A file that has nothing for a stage to produce is listed with the reason.
  • A transient failure retries after 1, 5 and 30 minutes, then waits with a Retry action in KG Studio. One file's failure leaves the rest of the namespace running.
  • Entity recognition scales with the document backlog, up to eight recogniser instances, within a cap you set for the deployment, and scales back when the backlog clears.

Docs:Processing lanes

Formats

Three modules read every file: document, tabular and code. Selection is by file signature. A namespace can hold policies, data dictionaries, spreadsheets, scans and source code side by side, and each file is routed on its own.

ReaderWhat it reads
DocumentsMarkdown, text, JSON, JSON Lines, Word, PowerPoint, OpenDocument, RTF, EPUB, PDF, HTML and Excel. Other UTF-8 files, including XML and YAML, are read as text.
Scans and imagesA PDF with a thin text layer, and PNG, JPEG, TIFF, BMP and WebP, are read by OCR with Docling inside the cluster, with table structure kept.
TablesCSV and TSV are read with quote awareness into passages of 40 rows. Column headers become ontology candidates, and a cell graph links each row's subject to its other cells. The same files stay queryable with SQL.
CodePython, JavaScript, TypeScript, Go, Java and Rust are parsed by syntax tree with Tree-sitter into packages, modules, classes, functions and types, with defines, imports, extends, implements and calls relations pinned to a file and line.
JSONAn array of records is a table. Any other value becomes a heading outline from its keys, so nested configuration and data dictionaries stay navigable.

Ingestion parses files of up to 20 MiB. Fontana Files accepts uploads of up to 200 MiB. A larger file is stored and versioned, listed with its reason, and remains readable through the file tools. Sources also arrive from workflow outputs, APIs and connectors, web, Git and Azure DevOps import, inbound email, and facts an agent writes.

Docs:Code and mixed corpora

The ontology

An ontology is your model of your domain: the types of thing you care about, how they relate, and the rules those relations follow. It turns search over documents into answers about your business. Entity recognition learns from it what to look for, relation extraction learns which links are meaningful, and an agent that asks for a type also receives its sub-types.

Three open W3C standards carry it. OWL 2 describes the types and the relations between them, SKOS carries their labels, aliases and definitions, and SHACL states the constraints. Turtle is the plain-text format all three are written in, and an IRI is a globally unique name written like a web address.

Each namespace keeps one Turtle file, ontology.ttl. Entity types are owl:Class terms, with rdfs:subClassOf for the hierarchy and SKOS labels, aliases and definitions. Relation types are owl:ObjectProperty terms with domain and range. Constraints are SHACL shapes. The writer emits the same ontology as the same bytes, so a change is a small diff in version history, and any standard RDF tool can open the file.

You bring a schema

Import OWL, RDFS or SKOS, in Turtle or RDF/XML, and pick the classes and branches you want. Each imported class keeps its original IRI. FIBO, the Financial Industry Business Ontology, and the ISO 20022 financial messaging standard are available as ready-made libraries. You can also author types in the Ontology tab of KG Studio or commit the Turtle file yourself.

Or you grow one from the corpus

Under the evolve policy, which is the default, new types join as provisional until a person confirms or deletes them. The strict policy keeps the graph to the published schema. Mining reads headers, repeated phrases and file names with no model. The Ontology Agent, which reviews a namespace's graph, proposes terms only with a cited passage and a verbatim quote.

Keyword matches use one pass over the passage, compiled from every label and alias. A keyword match takes precedence over a model span it overlaps, so your vocabulary wins. Publishing a new ontology refreshes keyword matching and recognition, and leaves passages, the full-text index and embeddings in place.

Docs:Ontology

How a question is answered

A question is answered in two movements. Before the agent writes a word, Fontana places the most relevant cited passages in the turn. The agent then picks the tool that fits each further step: hybrid search, a move along the outline or the graph, a read-only OpenCypher statement, or SQL and code over the files a hit names. Every step runs under your permissions, returns evidence with its citation, and is recorded.

From a question to a cited answerYou ask a question. Fontana resolves the namespaces you and the agent may both open, then a context search places up to eight cited passages in the turn. The agent starts with that evidence and picks a tool for each further step: hybrid search, navigation, a read-only graph query, or SQL and code over the files. Each tool returns evidence. The agent answers, and every claim opens its file, section and passage.THE ASSISTANT PICKS A TOOL FOR EACH STEPCALLSEVIDENCEANSWERSYOUYouask a questionCHECKReadable scopeagent's list and your grantsSEARCHContext searchup to eight cited passagesAIAgentstarts with evidence in placeKG_SEARCHSearchwords · meaning · graphKG_OPEN · KG_HOPNavigatesections and neighboursKG_CYPHERGraph queryread-only OpenCypherQUERYSQL and codeDuckDB · Python · grepANSWERCited answerevery claim opens its file, section and passageEVERY STEPruns as you, inside the agent's permissionsis filtered before ranking and recorded as an activity
Figure 3. From a question to a cited answer. The context search runs on every message. The tool loop runs as many times as the question needs.

Context before the first word

At the first model step of each message, Fontana resolves the namespaces the agent may read on your behalf and makes one search of the article index, which holds one row for every ingested file in your workspace, by vector and by full text. That scope applies before ranking, together with any collection or date a namespace sets as its default. The best passages of the top files are then read from their namespaces' tables and ranked against your question.

The search that starts a turnYour message, with any file you pin, starts one search of the article index, filtered to the namespaces you and the agent may both open. The best passages of the top files are read from those namespaces' tables. The turn starts with up to eight cited passages in place.YOUYour messageand any file you pinINDEXArticle indexone search, filtered firstTABLESBest passagesread from the top filesAITurn startsup to eight cited passages
Figure 4. The search that starts a turn. One index search finds the files, and the passages come from those files' tables on disk.
  • Up to eight passages above the agent's relevance threshold arrive with their text, citation, path, context header, score and dates. Further matches are listed for the agent to search.
  • The question is embedded once for each embedding profile in use, the provider and model your administrator sets, however many namespaces you can read. The search needs no graph in memory.
  • A file you reference by name is opened, pinned and always included.
  • The search starts while the turn is being prepared, and the model waits at most 2.5 seconds for it, so a turn starts on time. The search appears in the turn, so you see what was consulted.
  • Each agent has its own switch and relevance threshold, and you can set either for one conversation.

One search, four lanes

When the passages in context point to more, the agent calls kg_search, the hybrid search tool. It ranks passages in up to four ways, called lanes, and merges the rankings into one. One call runs in a fixed order: resolve the caller, compile one filter, rank in lanes, fuse, and build evidence.

How one search runsYou ask a question and the agent calls search. Fontana resolves the readable scope from the agent's namespace list and your grants, then compiles one filter from folders, collections and dates and applies it before ranking. Four lanes rank what passed the filter: full text for exact words, vector for similar meaning, graph expansion for one hop from the top passages, and co-annotation for passages naming two entities. Rank fusion merges the lanes for each namespace, namespaces are interleaved into one ranking, evidence packages are built, and cited evidence returns within one token budget.FOUR LANES RANK WHAT PASSED THE FILTERBEFORE RANKINGFUSEYOUYouask a questionAIAgentcalls searchCHECKReadable scopeagent's list and your grantsFILTEROne filterfolders · collections · datesBM25Full textexact words, from diskCOSINEVectorsimilar meaning, from diskGRAPHGraph expansionone hop from the top passagesPAIRSCo-annotationpassages naming two entitiesRRFRank fusionlanes merged per namespaceMERGEOne rankinginterleaved across namespacesBUILDEvidence packagespassage, outline, entitiesOUTCited evidencewithin one token budgetLEGENDJoins when the search asks for it
Figure 5. One hybrid search. Full text and vector read from disk at the same time, graph expansion starts from their top passages, and the result is one ranking with a citation on every passage.
LaneWhat it findsHow it works
Full textThe exact words: a defined term, an identifier, a figure.BM25 over passage text, from an inverted index on disk. A file is found by keyword as soon as it is parsed.
VectorThe same idea in different words.Cosine similarity over passage embeddings, which carry the passage together with its section trail. Exact search below 50,000 vectors. Above that, an IVF-PQ index with exact re-ranking of ten times the requested candidates.
Graph expansionWhat is connected to the passages already found.From the entities in the top passages, one typed relation hop, in either direction, to passages that mention related entities. Names that appear almost everywhere are passed over, so results stay specific.
Co-annotationWhere two named things meet.A lane the agent adds when a question names two entities. It grounds the entities in the question, chooses the best pair, and returns the passages that mention both or connect them through one relation. The result includes the grounding, so the agent sees why.
  • Filters come first. Disabled files, folders, collections and effective dates are compiled into one filter that is part of the index query itself. Every lane ranks only rows you may receive, and a narrow filter still returns a full ranked result in one read.
  • Every answer arrives on time. Each lane has 2.5 seconds. Full text and vector read tables on disk, so they answer whether or not the namespace's graph is in memory, and graph expansion joins as soon as the graph is loaded.
  • The agent knows what it covers. Every result carries a trace: the namespaces searched, the lanes that ran, and any namespace whose graph was still loading.

Rank fusion

A keyword score and a similarity score are in different units, so Fontana ranks by position. Within a namespace, reciprocal rank fusion sums each lane's contribution, weight × 1 / (k + rank + 1), with k = 60 by default and rank counted from zero. A passage near the top of several lanes outranks a passage at the top of one.

Each namespace can keep its own ranking profile, and a call can adjust it field by field: a namespace of identifiers and reference data can weight full text higher, and a namespace of narrative documents can weight vector higher. Across namespaces, results interleave by rank, so each corpus contributes its best passages whatever its size.

Evidence packages and citations

A result is an evidence package, closer to a research index card than to a fragment of text. With one package in hand, the agent can cite the passage, read around it, or follow any of its links, with no second search.

Citation, built by the platform

contracts/supplier-master-agreement.pdf › Section 9 › Termination (p. 14)

Passage, with its context header

Supplier Master Agreement › Section 9 › Termination

Either party may end this agreement by giving ninety days' written notice to the other party ...

Position
Passage index, character offsets, page or line span, and the passages before and after.
kg_hop reads on in either direction
Outline
The owning section with its ancestors, siblings and children.
kg_open returns the whole section in reading order
Mentions
Each entity, its type, how it was found, and the quoted span.
kg_hop finds every other passage that mentions it
Relations
Related entities, the relation type, and its direction.
kg_hop walks the typed relation
Dates and collections
The document date, the effective window and the collections of the file.
kg_search narrows the next search to a date or a collection
Similar files
The readable files closest to this one by whole-file vector.
kg_hop opens the nearest file
Figure 6. One evidence package, with invented values. Each part names the next step it opens.
  • A search returns 8 packages by default and up to 32, inside one budget of 12,000 tokens, the units of text a language model reads, spent in rank order. The best passages keep their full text, and the agent's context window is protected by construction.
  • Every list on a package is capped and reports its exact total, so the agent knows how much more exists and how to ask for it.
  • The platform builds the citation string from the namespace, the file's path and the section trail, with the page range where the source supplies pages. It reads the same wherever the answer is shown.
  • A citation resolves at four levels: file, section, passage and quote. In chat, a bookmark beside the claim opens the file at the cited place.

Answers as of a date

Knowledge has a date attached. You group files into named collections, such as one edition of a policy handbook, and give a file or a folder the period in which it is in force. A search as of a date ranks only the passages in force on that date, so the agent reads the rule that applied on the day in question and the current rule for today.

  • A window runs from its effective-from date, or the document date when none is set, up to its effective-to date. One edition can end as its successor begins, and exactly one is in force on any date.
  • Files with no dates count as always in force, and a search can leave them out.
  • A namespace can pin a collection or a date as its default, and a call's own filters take their place.
  • Entities are shared across collections, so the agent compares two editions of a rule through the one entity both discuss.

A complete investigation

Some questions need more than one search. Take this one: under the notice terms in force on 1 March, which supplier agreements does the revised clause affect, and how much spend is committed under them? The answer needs the right edition, the whole section, the exact defined term, the relationships, a count and a calculation. Each comes from the path best suited to it, with a source a reviewer can open.

  1. 01Context arrives first

    The turn opens with up to eight cited passages from the namespaces the agent may read for you.

    Context search

  2. 02Orient

    The agent lists the collections and reads the types and relations the ontology allows.

    kg_collections, kg_ontology

  3. 03Search as of a date

    Hybrid search runs inside one collection, as of the date in question, with co-annotation for the two things the question names.

    kg_search

  4. 04Read the whole section

    From the best passage it moves to the enclosing section and opens it in reading order, with its definitions and exceptions.

    kg_hop, kg_open

  5. 05Check the exact wording

    It confirms every place a defined term appears, by file and line, on a short-lived computer with no network.

    ripgrep in a terminal session

  6. 06Follow the relationships

    It resolves the named things as typed entities and walks the relations to what they affect.

    kg_entity_search, kg_hop

  7. 07Count

    One read-only OpenCypher statement returns an exact count over the facts you may read.

    kg_cypher

  8. 08Compute

    SQL reads the data file the graph pointed to, and Python does the arithmetic.

    query: sql, python

  9. 09Record and answer

    A relation found along the way is written with its quoted evidence. The answer cites every claim.

    kg_upsert_triples

Figure 7. One investigation in nine steps. The conversation record keeps every tool request and result.

Docs:RetrievalCollections and dates

The toolset

One governed toolset serves every path in the previous section. A tool is a function an agent calls by name, and each call is checked against your permissions and recorded. The same tools answer an agent in chat, a step in a workflow, a schedule and an external client, and each returns evidence packages with the same keys.

ToolWhat it does
kg_searchHybrid search: full text, vector, one-hop graph expansion and co-annotation, fused and cited. Any single lane can run on its own.
kg_outline, kg_open, kg_hopA document's sections, one passage, section or entity, and one typed step to neighbours, parents, mentions, relations or similar files.
kg_entity_searchEntities by name, by vector, or both, including sub-types of a type you name.
kg_cypherOne read-only OpenCypher statement, bounded in rows and time, with visibility applied before it runs.
querySQL, Python, JavaScript, JSONata, JSONPath, Jinja, a text window or grep over the files a hit names.
kg_collections, kg_ontology, kg_status, kg_filesThe collections and their dates, the schema, processing state, and the namespace's files.
Write toolsOn an agent turn, for a person with an editor grant: cited facts, merges, entity types, ontology proposals and the recognition tree. Each write lands in the files first.

Docs:Knowledge Graph MCP reference

OpenCypher

OpenCypher is the open query language for graphs: a statement describes a pattern of nodes and relationships, and the engine returns every match. kg_cypher runs one read-only OpenCypher statement over a namespace's graph: files, folders, outline sections, entities, entity types and typed relations. It is the path for an exact pattern or a count. Search remains the path for meaning.

  • A guard admits one read statement, with a label on every node, single relationship steps, and a literal limit from 1 to 50 rows.
  • The statement runs within 2 seconds. Calls queue one at a time, so a query leaves search responsive.
  • Visibility is added before execution: enabled files, the caller's readable scope, and the namespace's pinned filters. A count covers the facts that person may read.
  • Parameters are short scalars or short lists. Write clauses, procedure calls and unbounded paths are refused, and the error names the rule.
  • A query against a graph that is on disk loads that graph from its snapshot, inside the memory budget.
MATCH (a:Entity)-[r:REL]->(b:Entity)
WHERE a.typeId = $sourceType
  AND b.typeId = $targetType
  AND r.relationTypeId = $relation
RETURN b.name AS name, count(*) AS links
ORDER BY links DESC
LIMIT 50

Docs:Knowledge Graph MCP reference

SQL and file queries

A large part of institutional knowledge sits in tables and structured files. When the graph points at one, the Fontana Files query tool reads it in place. Every Knowledge Graph hit carries the namespace and path the query accepts unchanged.

TypeEngineReads
sqlDuckDBCSV, TSV, JSON, JSON Lines and workflow outputs. The file path is the table name.
pythonPython with pandasText, CSV, TSV and JSON, with no network.
javascriptQuickJSThe same files, with no file system and no network.
jsonata, jsonpath, jinjaBuilt inJSON documents.
text, grepBuilt inA line window, or a regular expression over files or a folder.

Each SQL statement runs in its own DuckDB instance, limited to the files you name, with 512 MB of memory, one thread and a guard that admits a single read-only statement. SQL can apply the edits a person has saved in a data grid in Flow, so the agent queries the rows that person sees. Queries run in a separate process, 5 seconds by default and 30 at most. For heavier work, an agent with a terminal session opens a short-lived, network-isolated computer with the namespace attached, including parsed documents, and DuckDB, pandas and ripgrep on that computer.

SELECT category, SUM(amount) AS total
FROM "reference/balances.csv"
GROUP BY category
ORDER BY total DESC
LIMIT 20

Docs:Fontana Files MCP reference

Model Context Protocol

The Model Context Protocol (MCP) is an open standard through which AI clients call tools. Fontana serves the same toolset to external clients over MCP, at your workspace's own web address. Claude, ChatGPT, Cursor and other MCP clients connect with OAuth sign-in or a personal access token bound to one agent. Every call runs as the signed-in person, inside that agent's permissions and namespace allow-list.

  • A focused endpoint serves the Knowledge Graph read tools. Another serves Fontana Files. The full connection also exposes the tool families the bound agent grants, including workflows, files and terminal sessions.
  • On connect, the client receives the agent's instructions. Granted skills arrive as prompts.
  • Tokens are stored as hashes, shown once, and rotate or revoke at once. Each connect, rotate and tool call is an activity.
  • A missing or expired identity receives an explicit error and no data.

Docs:Knowledge Graph MCP reference

KG Studio and export

KG Studio is the part of Flow, the Fontana web application, where you explore and administer a namespace. It shows what Fontana has understood: which files are in, how each was read, which entities were found, how they connect, and which edition applied on a given day. Search in KG Studio is the same hybrid search agents use, under your own grants.

  • Each file opens as a preview, as the parsed markdown that passages and citations refer to, as its source, and as its part of the graph. Select an entity, a file or a passage in one view and the others focus on it.
  • A namespace opens with its graph, its ontology, processing status, configuration and version history. An "As of" control shows the graph for any date.
  • A namespace's graph exports as Turtle, JSON-LD or N-Quads: entities with their types and names, typed relations with their source files and supporting quotes, and the ontology, so the file stands alone in any standard RDF tool.

Docs:KG Studio

Governance and security

The namespace is the unit of access. A grant gives the whole organisation, a team or a person a role on a namespace: viewer, editor or admin. Each agent also carries its own list of namespaces and its own permission list. On every agent call, Fontana intersects the agent's namespace allow-list with the person's grants, and the person's role with the agent's permission list. The same intersection applies in chat, in Slack and Teams, on a schedule, inside a workflow and from an external MCP client.

The permission check on every agent callThe agent's namespace list and your grants are intersected into the namespaces the call may read. Visibility rules then decide which passages, entities and relations are returned, so the evidence is only what you may read. A call with no verified identity is refused with an explicit error and no data. The same check applies in chat, Slack, Teams, schedules, workflows and MCP clients.NO IDENTITYAGENTAgent's namespace listset on each agentYOUYour grantsorganisation, team or personCHECKReadable namespacesonly where both agreeFILTERVisibility rulespassage, entity, relationOUTEvidencethat you may readNORefusedexplicit error, no dataONE CHECK ON EVERY PATHchat · Slack · Teams · schedules · workflows · MCP
Figure 8. The check on every agent call. An agent reads only what the person it works for may read.
  • A passage is visible when its file is enabled and readable. An entity is visible while a visible passage mentions it. A relation is visible when both ends are visible and its source is readable.
  • Those rules are applied before ranking, and they are added to every OpenCypher statement, so a count is computed over the facts that person may read.
  • Parsing, OCR, entity recognition and the embedding service inside the cluster all run within your deployment. Text leaves only for an embedding or language-model provider you select, with keys held in Vault, your workspace's own secrets store.
  • Agent writes need an agent turn, the write permission, the namespace on the agent's list and an editor grant. Each write carries its quoted evidence and lands as a versioned file first.
  • Agent writes, ontology changes and uploads are recorded in the activity log, and each workspace has an append-only audit ledger.
  • A backup of Fontana Files restores sources, authored files, tables and snapshots, so search and traversal answer with no reprocessing.

Docs:Permissions

Scale

The architecture is designed for one organisation with hundreds of namespaces of several gigabytes each. Memory stays bounded as the library grows, because namespaces at rest stay on disk and graphs load on demand within the budget you set. Search reads the tables directly, so a namespace answers by keyword and by vector whether or not its graph is in memory.

How a graph moves between disk and memoryA namespace at rest is on disk as tables, indexes and a graph snapshot. On first use its graph is restored from the snapshot and catches up on what changed. In memory it serves typed hops and OpenCypher. When the memory budget needs room, the least recently used graph is released back to disk. Full-text and vector search answer from the tables on disk in every state.ON USEREADYRELEASED, LEAST RECENTLY USED FIRSTDISKOn disktables · indexes · snapshotLOADRestore and catch upsnapshot, then what changedCACHEIn memorytyped hops and OpenCypherFull-text and vector search answer from the tables on disk in every state
Figure 9. A graph is a cache of its namespace. It loads on first use, and it returns to disk when another graph needs the room.
ResourceIt followsIt is independent of
Memory for searchA fixed-size cacheHow many namespaces you hold, and how large they are
Memory for graphsThe byte budget you configureThe total knowledge on disk
Chat-start searchOne search of one workspace-wide indexHow many namespaces a person may read
Ingestion computeWhat changedThe size of the corpus already ingested
DiskThe data you holdWhether a namespace is in use

Fontana Files, the Knowledge Graph and the workflow engine share one file system per workspace. Engines read source files in place and write into their own derived folders, so a multi-gigabyte namespace is processed where it is stored. Tables open on first search and close after a few idle minutes. When a graph needs room, the least recently used graph that is not in use is released, its snapshot is saved, and the next use restores that snapshot and replays what changed. You can pin a namespace so its graph stays loaded. The graph engine keeps no data of its own, so it restarts empty and ready, and an upgrade carries no data step.

Bounded by design

On a shared platform, one heavy request leaves everyone else's work at full speed. Every path has an explicit limit on what it returns, how long it runs and how much memory it uses. A request above a maximum receives an error that names the limit, and every capped list reports its exact total.

PathBounds
Search8 evidence packages by default and 32 at most, one budget of 12,000 tokens, 2.5 seconds for each lane.
Context searchUp to 8 cited passages. It reads tables on disk and needs no graph in memory.
OpenCypher50 rows, 2 seconds, one statement at a time.
File queriesOne process per query, 512 MB per SQL statement, 30 seconds at most, 100,000 rows.
Terminal sessions120 seconds per command, 4 hours per session, no network.
Vector searchExact below 50,000 vectors. An IVF-PQ index with exact re-ranking above.

Docs:Knowledge Graph architectureHardware requirements

Deployment

Fontana runs on Kubernetes in your cloud account, in a dedicated cluster, in Fontana's managed cloud, or self-hosted from a registry you control. Each workspace is its own environment: identity with single sign-on (SSO), multi-factor authentication (MFA) and SCIM user provisioning, its own Vault for secrets, its own data stores, and default-deny networking. You approve the model catalogue, including AWS Bedrock and private OpenAI-compatible endpoints, and the keys stay in your Vault.

Docs:Cloud deploymentSelf-hosted deployment

Conclusion

The Fontana Knowledge Graph gives agents knowledge they can work from and reviewers can check. Your files stay the record, in open formats, and the tables, indexes and graph derived from them can be rebuilt at any time. Five linked dimensions let an agent move from the exact wording to the meaning, the relationships, the edition in force and the proof within one investigation, and every step returns a citation a person can open.

One permission model applies in chat, in workflows, on schedules and from external AI clients, so an agent reads only what the person it works for may read. Memory follows the knowledge in use, so your library can grow to hundreds of namespaces while the footprint stays within the budget you set.

The product documentation covers each topic in this paper in full. The pages below are a good place to start an evaluation.

Further reading

Docs

Whitepapers