Skip to content

Architecture

Your documents are files in a Fontana Files namespace. A dedicated Knowledge Graph engine does the heavy work of parsing, chunking, embedding, entity recognition and graph writes, so Flow and chat stay responsive while a large corpus loads. This page describes what the engine keeps where, how a graph is rebuilt from its namespace, when a graph loads, and what a backup restores.

How the Knowledge Graph is built and readYour documents live in a namespace in Fontana Files. Processing parses, indexes, embeds and recognises entities in each file, writes one graph for the namespace, and saves its results beside your documents so the graph can be rebuilt from them without a model call. Search and navigation read the graph and answer agents and chat, KG Studio, and external MCP clients.WRITESANSWERSSAVESREBUILDSFILESYour documentsa namespace in Fontana FilesWORKProcessingparse · index · embed · entitiesGRAPHOne graph per namespacetext, outline, entities, vectorsASKSearch and navigationhybrid search · outline · entitiesKEPTProcessing resultskept beside your documentsCHATAgents and chatcited answersUIKG Studiograph and readerMCPMCP clientspersonal access token

The engine processes each namespace into one graph and keeps the results beside the documents. Search over that graph answers agents, KG Studio and MCP clients.

Fontana Files is the source of truth for every byte, setting and decision. The graph is derived from these files.

What Where in the namespace
Source files Your original document bytes, with each processing step’s record beside them
Settings for the namespace, its folders and its collections, including retrieval defaults kg in .fontanaconfig.yaml
Ontology: types and relations in OWL, SKOS and SHACL, provisional marks, evolution and keyword policy .fontana/kg/ontology.ttl
Facts, entity types and entity merges the Ontology Agent wrote .fontana/kg/manual-triples.jsonl
Entity merge decisions .fontana/kg/finalize-decisions.jsonl
Entity descriptions .fontana/kg/entity-notes.jsonl
A file’s own settings: title, description, tags, disabled .fontana/kg/files/<path>.yaml
Each file’s processing results: parsed text, entities, embeddings .fontana/kg/derived/<path>/

Two things sit outside the namespace’s files:

  • Access: the namespace’s grant list, and the namespace allow-list on each agent. See Permissions.
  • The graph: one property graph per namespace in the engine’s own store, derived from the files above.

Every change is written to its file first and to the graph after it: a setting you save in KG Studio, a review decision, a fact or merge an agent writes. When you rename a document, its settings file moves with it. When you delete one, its settings file and processing results go too. Processing results are written into the namespace once per processing pass and stay out of the namespace’s version history.

The engine owns processing and retrieval for your workspace.

  • Processing: every step (Parse, Index, Embed, entity recognition, Resolve) keeps its own record per file and runs again only when its input changed. There is no queue to lose: a restart picks up from those records. With processing results kept in the namespace, an empty store loads them back instead of processing the files again. See Processing lanes.
  • Retrieval: hybrid search, outline navigation and entity navigation, for agents through MCP and for you in KG Studio. See Retrieval.
  • Status: each step keeps one status record per namespace. KG Studio reads status, parsed documents and extracted graphs from the engine under your read permissions.

Every namespace has one property graph that holds everything Fontana derives: chunks with their provenance and embeddings, the document outline, typed entities and relationships, the mentions that evidence them, and vector and full-text indexes on the same nodes. Chunks and entities share one store. See Graph overlays for how one graph supports four retrieval views.

The graph is a copy built from the namespace’s files. Rebuild graph on the namespace menu, a restarted graph store, or a graph that was unloaded loads again from them without a model call, in this order:

  1. The ontology.
  2. Each file’s processing results.
  3. The agent’s facts and merges, in the order they were written.
  4. The merge decisions, then the entity descriptions.

A file, folder or namespace you disabled stays out of search after the reload.

A namespace’s graph loads when something first needs it: a search, an agent’s Knowledge Graph tool, the Graph view in KG Studio, or new documents to process. The first search of a namespace that has not been used recently waits while its graph loads; later searches answer at once. A search over many namespaces answers from the graphs that are ready and reports the others as still loading, so an agent can search again a moment later. To keep a namespace’s graph loaded, turn on Keep graph loaded in Namespace settings (Config, Features), or set kg.resident in its namespace configuration.

Each workspace has its own graph store and Knowledge Graph engine. Backups and volume snapshots include the derived graph data with your other workspace volumes, so a restore brings back your graph, chunk text and vectors together with the rest of your workspace state.

When a namespace’s files hold its graph state and its processing results (see the note under What lives where), restoring the namespace’s Fontana Files also brings the graph back: settings, ontology, the agent’s facts, the merge decisions and the processing results return with the files, and the graph loads from them the first time it is needed. A restore does not bring back work in progress, such as merge proposals still waiting to be applied; processing proposes them again.

A namespace is the corpus boundary. Folders and documents are slash paths inside it. The Overview describes how you create and tag namespaces.

Each agent searches only the namespaces you assign it on its Knowledge tile, and only those you may read yourself. Retrieval and relationship expansion stay inside those boundaries, which keeps regulated corpora apart and agent answers on the domain you intend. See Permissions.