Skip to main content

Glossary

A single reference for the terms used throughout this documentation. Each entry is the canonical definition; detail pages link here rather than re-defining terms in place. Terms are grouped by area and ordered to build on one another, and each term has a stable anchor (e.g. …/glossary#rrf) so any page can deep-link to it.

How to use this page

If a page uses a term you have not met yet, look it up here first. Entries cross-link to the page that covers the concept in depth.

Core retrieval​

RAG (Retrieval-Augmented Generation)​

An architecture (Lewis et al., 2020) in which a language model is conditioned at inference time on documents retrieved from an external corpus, rather than relying on parametric memory alone. The pilot's answers are generated against retrieved chunks and are designed to be citation-traceable. See What is RAG.

Chunk​

A bounded passage of source content (a slice of a brochure or web page) that is embedded and indexed as the unit of retrieval. The pilot's corpus is roughly ten thousand chunks.

Embedding​

A dense vector representation of text. The pilot's embedding model is OpenAI text-embedding-3-large at 1536 dimensions (reduced from the native 3072 to fit the pgvector index limit; ADR-0048). See Embedding Models.

Retrieval by embedding-similarity (cosine) over pgvector. Captures meaning, not exact words.

Keyword retrieval over a PostgreSQL full-text index. Captures exact terms a dense model may blur. In the pilot this is one of the three signals fused by RRF in Hybrid Search.

BM25 (Best Matching 25) is the ranking function behind lexical retrieval — the "Okapi BM25" probabilistic model (Robertson & Zaragoza, 2009) used by Lucene, Elasticsearch, and PostgreSQL full-text search alike. It is a bag-of-words method: it ignores word order and scores a document purely on which query terms it contains and how. Three intuitions drive the score:

  • Term frequency (TF) — a document that mentions a query term more often is more likely about it, but with diminishing returns: the 10th occurrence adds far less than the 2nd. This saturation is what separates BM25 from naive TF-IDF.
  • Inverse document frequency (IDF) — rare terms are more informative than common ones. A match on "glioblastoom" counts for far more than a match on "de".
  • Length normalization — long documents contain more words by chance, so BM25 discounts them; a short, focused chunk is not penalized for brevity.

The score of document D against query Q (terms q₁…qₙ) is the sum over query terms:

n f(qᵢ, D) · (k₁ + 1)
score(D, Q) = Σ IDF(qᵢ) · ───────────────────────────────────────────
i=1 f(qᵢ, D) + k₁ · (1 − b + b · |D| / avgdl)

where f(qᵢ, D) = frequency of term qᵢ in document D
|D| = length of D (in terms)
avgdl = average document length across the corpus
k₁ = TF-saturation parameter (typically 1.2–2.0)
b = length-normalization strength, 0…1 (typically 0.75)

The k₁ term controls how quickly term frequency saturates (higher k₁ = slower saturation, so repetition matters more); b controls how aggressively long documents are penalized (b=0 = no length normalization, b=1 = full). Lucene/Elasticsearch default to k₁=1.2, b=0.75.

Worked intuition. For the query "python web framework", the document "Django is a Python web framework." scores high — it contains all three query terms, the terms are reasonably rare (high IDF), and the document is short (no length penalty). A document like "Programming tutorials for many languages." scores near zero: none of the query terms appear, so every summand collapses.

Why the pilot keeps it alongside vectors. BM25 is fast, interpretable, and unbeatable at exact matches — drug names, dosages, doctor surnames, campus names — where a dense embedding can blur a near-synonym. Dense / vector search covers the complementary case: paraphrase and semantic similarity ("hartdokter" → "cardioloog"). Fusing both with RRF is a widely used way to combine their strengths, which is why the pilot's retrieval is a hybrid of dense + BM25 + typed-entity taxonomy lookup. See Hybrid Search.

RRF (Reciprocal Rank Fusion)​

A score-agnostic algorithm (1/(k+rank), k=60; ADR-0020) that fuses ranked lists from different retrievers into one ordering. See Hybrid Search.

The pilot's retrieval mix of three complementary signals — dense vector, sparse BM25, and typed-entity taxonomy lookup — fused with RRF. See Hybrid Search.

Reranking​

Re-ordering retrieved candidates by relevance after first-pass retrieval. The pilot applies a cross-encoder (Jina v2, BGE fallback), an optional ColBERT pass, and the Value Framework affinity rerank. See Reranking.

Cross-encoder​

A reranker that jointly encodes (query, candidate) for a precise relevance score — more accurate but costlier than the dual-encoder used for first-pass retrieval.

Contextual retrieval​

Anthropic's technique of prepending document context to a chunk before embedding/BM25, reducing retrieval-failure rates. In the pilot this is realized via page summaries, chunk context, and canonical questions baked in at ingestion. See Contextual Retrieval and Ingestion Enrichment.

Page summary / chunk context / canonical questions​

The three enrichment artifacts generated at ingestion time. See Ingestion Enrichment for exactly where each is stored and used.

Lost in the Middle​

The empirical finding (Liu et al., 2024) that LLMs attend most to the start and end of a long context and under-attend to the middle. The pilot mitigates this in Context Assembly.

Knowledge graph & taxonomy​

Taxonomy​

In the pilot, the structured store of hospital entities and their typed relationships (not a free-text index). It exists in two layers — see Layer A and Layer B. See Knowledge Graph.

Entity​

A node in the taxonomy: a Hospital, Campus, Department, Doctor, Condition, Treatment, Examination, Center, Facility, or Service.

Relationship​

A typed, directed edge between entities, e.g. "works in" (doctor to department), "handles" (department to condition), "located at" (department to campus), each carrying a confidence.

Layer A (config taxonomy)​

Hand-curated alias maps, routing rules, and plausibility guards held in memory per hospital; trusted directly. See Two layers of taxonomy.

Layer B (scraped taxonomy)​

Entities + relationships harvested from the hospital website, stored in PostgreSQL (a draft area and a published area); gated behind human review + versioned publish.

Department (Dutch: dienst)​

A hospital organizational unit (Cardiologie, Neurologie, …); the top-level department entity type. "Dienst" and "department" are used interchangeably.

Campus​

One of the hospital's four physical locations. A campus entity type.

Golden page​

An authoritative listing page the hospital publishes that enumerates its own entities (e.g. the full doctor directory). The trust anchor for top-down seeding. See Golden Pages.

Hub / detail​

Two page types. A hub is a golden listing page (trust anchor, allowed to seed the taxonomy); a detail is a single-entity page (stored and retrievable, but not allowed to create entities).

Curated seed vs. extracted provenance​

Each entity and relationship records where it came from. A curated seed comes from a golden listing page (strong provenance); an extracted mention is an incidental reference in a brochure or news page (weak provenance). By default, ordinary crawled content may not write entities to the taxonomy; only hub pages and the seeder can. See Golden Pages.

Three-Source Knowledge Architecture​

The provenance separation of taxonomy inputs into Source 1 (web scraper), Source 2 (SNOMED CT), Source 3 (curated config), merged with priority Curated > Scraped > SNOMED. See Medical Knowledge Architecture.

Draft / Publish​

The versioning pattern in which extracted taxonomy lives as a draft until an operator approves it and an atomic publish copies it to the published area under a new version. Queries only ever read the published snapshot. See Draft/Publish System.

SNOMED CT​

SNOMED CT​

The international clinical terminology standard. The pilot uses the Belgian Edition to bridge colloquial Dutch to clinical terms. See SNOMED CT Terminology.

Concept ID​

A language-neutral SNOMED identifier stamped onto a taxonomy entity at build time; the key that links an entity to its synonyms and hierarchy worldwide.

FSN (Fully Specified Name)​

A SNOMED concept's unique, unambiguous name including a semantic tag, e.g. Multiple sclerosis (disorder).

Preferred Term / Acceptable Synonyms​

The default display term per language, and the alternative terms that denote the same concept (e.g. MS, multipele sclerose).

FINDING_SITE / PROCEDURE_SITE​

SNOMED relationship types linking a condition/procedure concept to the body structure it concerns; the pilot uses them to route a clinical term to the responsible department.

Steering & safety​

Value Framework​

An intent × content-category affinity reranker that checks whether the kind of content fits the kind of question, on both chat and voice channels. See Value Framework.

Intent classifier​

The LLM step that labels a query's intent (e.g. "condition information" or "doctor schedule") and extracts entities, steering retrieval and routing. See Query Pipeline.

Grounding / citation​

The requirement that every answer be supported by retrieved corpus content, with a verifiable citation to the source page or brochure. Ungrounded generation is disallowed by design. Grounding reduces, but does not eliminate, the risk of errors.

Hallucination​

When a language model produces fluent text that is not supported by any source, or is simply wrong. Grounding and citations are the pilot's main mitigations; they are not a guarantee.

Refuse-and-link (medical-advice refusal)​

The pilot's safety policy (ADR-0065): the system is informational and navigational only. Questions asking for dosing, self-medication, diagnosis or treatment choice are designed to be refused, with a link to the relevant validated hospital brochure. See Safety & Compliance, including the June 2026 dose incident that led to this policy.

Safety floor​

An automated test suite of must-refuse and must-not-over-refuse cases, added to the project's test pipeline on 12 June 2026. These are the project's own tests (self-reported). The pipeline did not run from mid-June to 18 July 2026 and cannot by itself block a change from being merged; no independent audit has been carried out.

Post-deployment safety probe​

A set of safety questions sent to the live pilot after each deployment. Since 14 July 2026, if the probe fails, the deployment is rolled back automatically (before that date the rollback could not fire). Also the project's own check (self-reported).

Golden questions​

The project's own curated question set, used to score the system. For runs from mid-May 2026 onwards the score measures entity recall and must-refuse behaviour only (the March 2026 pass rate also used automated-judge scores); it is self-reported and is not evidence of answer correctness or grounding.

Pilot​

The limited, supervised deployment of the system built for Ziekenhuis Oost-Limburg (ZOL), as part of a PXL University College graduation project. It is not an official ZOL publication and is not endorsed by ZOL.

ADR (Architecture Decision Record) and the ADR register​

A short written record of one significant design decision: the context, the options considered, the decision and its consequences. The ADR register is the numbered index of all such records, acting as a decision log. Superseded decisions stay in the register, marked as such. See Decisions.

DPIA (Data Protection Impact Assessment)​

A GDPR assessment of the privacy risks of processing personal data, required before high-risk processing. See DPIA.

EU AI Act​

The European Union regulation on artificial intelligence, which classifies AI systems by risk level and sets obligations accordingly. Its application to this pilot is discussed in AI Act compliance; this documentation does not claim legal compliance.

Structured call​

The shared helper wrapping the LLM client at every LLM call site: it validates the model's JSON output against a schema, retries, and raises a typed error if retries are exhausted. It replaced a trialed agent framework (removed 2026-05-12 for per-call latency overhead).

Voice channel​

Cascade​

The voice pipeline pattern: speech-to-text → LLM orchestrator (with a RAG retrieval tool) → deterministic post-processing → text-to-speech. The system controls the exact text before it is spoken, which is what allows grounding, citation and refusal to be checked by automated tests. See Voice Architecture.

STT / TTS​

Speech-to-text (Deepgram Nova-3) and text-to-speech (ElevenLabs).

Barge-in​

A caller speaking over the agent's TTS, which interrupts playback (full-duplex turn-taking).

Utterance pre-filter​

A deterministic classifier that handles terminal utterances — those needing no retrieval: greeting, farewell, handoff, safety refusal, repeat, off-topic — with templated responses at zero LLM cost, before the agentic LLM is invoked.


Missing a term? It likely belongs here — the goal is one canonical definition per concept. See Core Concepts for the end-to-end narrative that ties these together.