Skip to content

KG Studio

KG Studio is the Knowledge Graph page in Flow, at /kg. A sidebar lists your namespaces and source files. Selecting a namespace, folder or file opens its card, whose tabs are linked views with a shared selection: select an entity, a document or a chunk in one view and every other open view focuses on it. This page walks through the sidebar, the cards and their tabs, the Graph tab, and the Status and Config tabs where you run processing.

Before you open anything, the page shows the four ways of looking at a namespace (Provenance Metadata, Structural, Ontology & Taxonomy, Semantic) and Add namespace. Click the Knowledge Graph title at any time to return to this welcome.

The sidebar is the File System explorer. It lists namespaces tagged only as a Knowledge Graph; in Knowledge Graph config, turn on Show Workspaces, Show Skills, Show Agents or another kind to include namespaces that also carry that tag. From the sidebar you browse namespaces, folders and files, create a namespace, and upload, rename, move and delete sources. A chevron on each namespace row collapses or expands it. While you search, a collapsed namespace opens when the query matches something inside it and collapses again when you clear the search.

The namespace menu holds the settings that apply to the whole namespace.

  • Namespace settings opens Config on Features, where you choose where the namespace is listed (Knowledge Graph, Workspaces, Learning Materials, Community Templates, skills, agents) and whether to Keep graph loaded.
  • Knowledge Graph ingestion, in the Knowledge Graph section of Config, decides whether documents join the graph. Yes adds new documents; No removes the graph and keeps the parsed files, so turning ingestion back on does not parse and embed the documents again. Delete parsed data, shown while ingestion is off, removes those parsed files too; the next time you turn ingestion on, documents are parsed and embedded again. Documents, ontology and notes stay in every case. The switch writes kg.disabled in the namespace configuration, described under Fontana Files MCP.
  • Delete namespace removes the namespace from the sidebar at once, and Fontana deletes every file inside it. You cannot recreate that name until cleanup finishes.

A disabled folder or file stays disabled until you change it. The setting lives in the namespace’s files: disabled on the folder under kg.folders in .fontanaconfig.yaml, or in the file’s own .fontana/kg/files/<path>.yaml. No processing step runs for disabled files, and graph search, agent tools, MCP file lists and @-mentions skip them.

Each card header shows the current status and the processing graph. A file is Queued, Processing, Processed, Failed or Idle; folders and namespaces show roll-ups. Each step is a bar: green for done, blue for running, amber for pending, red for failed, light green for skipped, with a done/total pill. Hover a step for a plain explanation and its counts. Counts come from the engine’s status for the namespace, read every few seconds.

Opening a namespace, folder or file uses the same pane as File System. Cmd-click a file or folder (Ctrl-click on Windows and Linux) to add or remove it from the selection; Preview lists the items you selected.

Item Tabs
Namespace Preview, Graph, Ontology, Ontology Agent, Status, Config, History
Folder Preview, Graph, Status, Config, History
File Only the tabs that apply, in this order: Preview, Parsed, Source, Graph, History

Opening a namespace or a folder starts on Preview. Choosing Graph keeps that tab until you open another namespace or folder. History lists the versions of that path. When the row is too narrow for every tab, the rest open from the … menu.

On a file:

  • Preview is the friendly view: a spreadsheet as one grid per sheet, a csv or tsv in the table explorer, a PDF in the browser viewer, rendered HTML, an image or media file in place, a JSON file as a node diagram of its objects and arrays, and a markdown file rendered with its frontmatter as a table.
  • Parsed is the markdown Fontana made from a document such as a PDF or a Word file, one page at a time. A table that continues onto the next page keeps its header.
  • Source is the raw file in an editor. Binary files leave it out.
  • Graph is the file’s part of the namespace graph.

Two more views sit beside those: Graph data lists every triple from a file in a grid (subject, predicate, object) and its JSON-LD; Status on a namespace or folder opens the file queue, described under Status and Config.

The Graph tab shows one graph of the namespace. A glass bar at the bottom of the canvas picks a named layer and opens Nodes for which kinds to show. Each kind toggle is the kind’s icon with a count next to it.

Toggle Shows
Namespace The namespace itself, the root of the tree
Folders Your folders, each inside its parent
Files Your files, each inside its folder
Page index Each document’s section outline
Chunks The passages agents read and cite, each under the section that covers it
Entities Extracted entities
Entity types The published types of your ontology
Communities Groups of entities that link to each other more than to the rest, each named after its best-connected members. Available while Entities are shown

The count next to a toggle is how many nodes of that kind the namespace holds under your current selection, whether the toggle is on or off, so you know what switching it on would draw. A card at the top right describes the view, for example “Entities grouped by type: 1,817 types, 7,115 typed entities”; select a node and it shows the selection instead. Drag its inner edge to widen it.

A layer sets the kind toggles together to answer one question, so you do not set eight switches by hand. Provenance Metadata is selected when the tab opens and shows which file a fact came from. Structural shows the namespace, its folders and files, each file’s sections and the passages under them. Ontology & Taxonomy shows every entity type, the broader type it is a kind of, and the entities that belong to it. Semantic shows the entities each file mentions and how they relate to one another. Vector shows what is embedded and similar. Changing a kind by hand leaves no layer highlighted.

Links follow from the kinds you show; there is nothing to switch on for them:

  • Containment: every node links to the nearest shown level above it. Hide a level and the next one down links straight to the one above, so with Files and Chunks on and Page index off, chunks hang under their files.
  • Mentions: chunks link to the entities they name; with Chunks off, files link to the entities their chunks name.
  • Types and communities: each entity links to its type and to its community. With Entities off, entity types hang under the namespace.
  • Relations: the extracted relationships between entities are always drawn between the entities you show, named on the link.
  • Similarity: files whose whole-file embeddings are close link with their score, while Files are on and Folders are off, so the files show how they relate instead of where they sit.

Entities that share a sentence are not drawn as links; that co-occurrence weighs the communities instead. Communities are computed in your browser from the entities of the namespace you opened, so the same graph always gives the same communities.

The whole graph of the namespace loads once, under your grant on it, and stays in your browser, so a toggle never fetches anything and never moves your view. While a big namespace arrives, the graph and its counts fill in every second or so, and you can keep working with what is already there. When you come back, only what changed is fetched. While it opens you see Connecting, then Fetching nodes, then Building the graph; when something goes wrong you get a message with Retry rather than a blank canvas.

The graph is a force graph: every pair of nodes repels, every link pulls, and gravity keeps it together. It lays out in your browser and settles in front of you. A graph of a million nodes lays out gradually: the picture appears within seconds and keeps settling while the rest is placed. The view opens fully zoomed out and follows the graph as it fills in, until you pan or zoom. Pause and play on the graph bar stop and resume the layout. Controls on the same bar tune it live: orbit (how far the graph turns about its vertical axis as the pointer crosses the canvas; zero switches it off), repulsion, link pull per link class, gravity and flatness.

Nodes use the same kind glyphs as the rest of Flow: a closed book for a namespace, a folder, a file-type badge, a triangle for a page-index section, a small square for a chunk, plus entity, type and community stamps. Disabled namespaces, folders and files stay on the canvas at reduced opacity; entity stamps grey when no enabled chunk still mentions them. Hover shows the kind and name. Click a node to select it; the details card shows its type, name and Connected to, with the connected nodes and their kind icons. Click a neighbour to select it; double-click a namespace, folder, file or section to open its page. Zoom in until labels appear; relationship names and similarity scores label their links. An info control in the top right opens the details card; pin it to keep it open.

  • Namespace and folder focus: the Namespace switch under Nodes shows everything in the namespace, with a coloured region drawn behind it. Select a folder or a file in the sidebar and the same switch greys everything outside the selection instead; switch it off to leave only the selection, the folders above it, its files and what they mention. Each selected folder and file keeps its own region.
  • Outside selection: Dim | Hide appears while a folder or a file is selected and decides what happens to everything outside it.
  • As of is a day slider under the toggles. It runs from the earliest date your documents carry to today; at the right end nothing dims. Drag it back to see the graph as it stood on that day: documents not yet in force, or already superseded by their effective window, dim together with their sections, chunks and the entities only they mention; undated documents stay. Hover a file or select it to see its date or its effective window.

Open a namespace and choose Ontology to set its entity types and relation types. Add or edit a type, then Save draft. Publish makes that draft the ontology extraction uses. Ontology Agent is the tab where you start a review of the graph. See Ontology.

Search in KG Studio is the same hybrid search agents use, under your grants, and every result carries a readable trail back to the document section it came from. The co-annotation lane and its grounding roles belong to the assistant’s own search calls; KG Studio search has no switch for them. See Retrieval.

Open Status on a namespace or folder for progress and failures. The queue lists each file’s path, its state and the step it is at. A failed file shows its error and a Retry action. A skipped file shows a light green badge and the reason, with no Retry. You can pause and resume processing, re-ingest every file, retry every failed step, show only failed files, and search by path. An Edges card shows how the graph was built: the share of edges that came from parsing, next to the traversable total.

  • Skipped files: a file Parse has no parser for is skipped, not failed: images, fonts and other binary files, and operating-system metadata such as .DS_Store. The later steps leave the file out of their counts, and nothing needs fixing. Replacing the file with a parseable one processes it again. HTML pages are parsed: headings and text are kept, scripts and styles are dropped.
  • Failures: a failed file shows the step that failed and its error in the queue and on the file card. Retry failed runs those steps again; Re-ingest runs every step again for a file, folder or namespace. Pause processing holds every step for the namespace without losing anything; Resume processing continues where it stopped. Rebuild graph on the namespace menu replays the graph from the processed files without re-parsing or re-embedding them.

Open Config to set processing:

  • Namespace Config: ontology agent, parse and index, embeddings, entity recognition, entity resolution, ontology mining, evolution policy and budget cap. Info icons explain each control. The ontology agent is chosen once per namespace, where a review is scoped; folders and files inherit that choice. The same processing graph is drawn here, with each step’s switch on its node.
  • Folder Config: open the folder card and set parse and index and embeddings for that folder. Clear the override to inherit the namespace again.

The processing graph sits in every card header. Parse reads the file. Embed and entity recognition then run in parallel; Resolve follows entity recognition. Index writes everything into the graph as soon as Parse is done and again as each later step finishes, so a file is searchable before it is embedded. Ontology Agent follows Index as an optional step you start yourself. A step you have turned off keeps a grey chip with a green border and a fast-forward mark, and its tooltip says the step is skipped. See Processing lanes.