Skip to content

Retrieval

Every query starts with a prune step (namespace, folder, collection and as-of date), then runs one or more retrieval lanes over what is left, and returns path citations you can hand straight to a reader. From any hit, an agent can read outward into the surrounding document or the entities it mentions.

Prune first, then search or navigate, then cite.

Hybrid search fuses three lanes over the same graph: full-text keyword search on the lexical overlay, vector similarity on the vector overlay, and a one-hop relationship expansion on the domain overlay. Full text and vector run together; relationship expansion then walks from those seed chunks. Reciprocal rank fusion turns the three lists into one. This is the entry point for direct questions and keyword-shaped queries, and it works as soon as a namespace’s files are indexed; search by meaning joins once they are embedded (Processing lanes).

Hybrid search returns only enabled chunks. Disabled namespaces, folders and files stay in KG Studio, greyed out, and do not appear in retrieval.

You ask in chat. The assistant calls Knowledge Graph search and answers from the ranked passages, with citations.

How the assistant answers from the Knowledge GraphYou ask a question. The assistant calls Knowledge Graph search. Full text, embeddings, and a Cypher graph hop run every time and fuse into one ranked list. Co-annotation finds chunks that name two entities in the question. The span linker attaches a phrase the ontology did not name. The response labels entities bridge, filter, or ignore from how often each appears.ASKSALWAYSFUSELISTOPTROLESEVERY SEARCHYOUYouask in chatAIAssistantcalls search over MCPTXTFull textkeywords in the chunksVECEmbeddingsvectors of the chunksCYPCypherone graph hopRRFRank fusionone ranked listOUTSearch responsebridge · filter · ignorefrom how often each appearsOPTCo-annotationtwo entities in the questionchunks naming two entitiesspan linker if a phrase is unnamedLEGENDEvery searchWhen the question names two entitiesExtra lane

You ask; the assistant searches with full text, embeddings and a graph hop, fuses the lists by rank, and co-annotation joins when the question names two entities.

Co-annotation is an extra search lane: it looks for chunks that mention two entities named in the question. It stays off unless the search asks for the co_annotation lane; the assistant sets it on the search call, and KG Studio search has no switch for it. The span linker runs only with that lane and attaches a phrase in the question to a nearby entity when the published ontology did not already name it. Grounding roles label those entities from how often they are mentioned: bridge, filter or ignore. They come back on the search response. See MCP for the response shape.

The structural overlay is a navigable table of contents. kg_outline returns a file’s sections in document order, each with its section key, title, depth, parent and page range, paged for long files and limitable by depth.

The outline of one document: sections cover chunks, and a citation names the section trail.

An agent opens a section’s chunks with kg_open on that section key, and moves around the tree with kg_hop: outline_parent, outline_siblings and outline_child. prev_chunk and next_chunk step through the document in reading order. Every chunk that comes back carries its own section context (ancestors, siblings and children) and a full path citation (namespace/path.md › Section › Subsection, pages 4-5), so an agent that lands mid-document through search can read outward without a new query. See MCP for the tool arguments and caps.

Entity navigation starts from a named entity, found by name match, vector similarity or both, optionally filtered to published entity types. From there an agent hops along typed relationships one step at a time (mentions, rel, same_type), and every hit is a chunk package carrying the evidence quote behind the edge. An entity stays visible only while at least one enabled, readable chunk still mentions it. KG Studio’s graph view uses the same navigation for “show me what connects to ESMA”, and agents reach it as a direct tool call.

Every retrieval call returns citations shaped as namespace/path › Section › Subsection, pages, not a bare chunk id. An agent’s answer, or a KG Studio result, always has a readable trail back to the exact document section a claim came from, and clicking a citation opens the file at that location.

Retrieval accepts a collection filter and an as-of date. Versioned corpora stay apart unless you ask for both: a query scoped to mifid-3 never blends in mifid-2 chunks, and an as-of query sees only the files and relationships in force on that date. See Collections and temporal.

Each search lane fails independently. If the vector lane has a transient problem, hybrid search still returns full-text and relationship-expansion results rather than an empty response, and the failure is logged for your platform’s observability.

You set how much Knowledge Graph context an agent gets without asking for it, per agent, under AI → Agents.

Three starting points for a turn: no namespaces, tools only, or auto-search on.

  • Namespaces and tools: assign corpora on the Knowledge Graph namespaces tile and enable the Knowledge capability so the agent can call retrieval tools at all. An agent with neither gets no Knowledge Graph context.
  • Auto-search: when you turn on auto-search for the agent, hybrid search runs over the assigned namespaces on each new prompt and places the matching chunk packages in context before the turn starts. It is off until you turn it on, so a narrow task agent pays no latency or cost for context it will not use.
  • Threshold: the agent’s KB injection score threshold decides which of those matches are placed in context, with per-thread overrides in chat. A chat control turns Knowledge Graph search off for a single conversation. See Agents.