1---2name: ref-vocabulary3description: Use when any participant in the system — lawyer, developer, or AI — needs a precise shared definition of a legal-AI term. This reference pack covers the intersection of AI engineering vocabulary (prompts, context windows, RAG, agents, evals) and legal-practice concepts (skills, routers, hallucination, rubrics), enabling unambiguous communication across the two disciplines. Route here when a term appears in a skill description, onboarding document, or internal discussion and its meaning is disputed or unclear.4license: MIT5---67# Reference — Legal + AI Vocabulary89A shared lexicon bridging AI-engineering terminology and legal-practice concepts. Use this pack to ensure consistent language across skills, documentation, onboarding materials, and inter-team communication.1011## Scope1213This reference covers two intersecting vocabularies:14151. **AI / LLM engineering terms** — the technical building blocks of any AI-assisted legal product.162. **Legal-AI product terms** — the architectural concepts specific to legal AI assistants like Louis.1718Terms are organized thematically. Where a term has a specific meaning in this product that differs from industry-wide usage, the product-specific meaning is noted.1920---2122## AI Engineering Terms2324### Core inference concepts2526| Term | Definition | Legal-AI relevance |27|------|------------|-------------------|28| **Prompt** | The text (and sometimes images or files) sent to the model as input at inference time. Includes the system prompt and the user's message. | Every skill is, at its core, a carefully structured prompt. Prompt quality determines output quality. |29| **System prompt** | Instructions prepended to a conversation, invisible to the end user but shaping the model's behavior, persona, and constraints for that session. In this product, a loaded *skill* is the system prompt. | Skills are system prompts. A bad system prompt produces bad legal output regardless of model capability. |30| **Context window** | The maximum number of tokens (roughly: sub-word units) that the model can "see" at once — spanning system prompt, conversation history, retrieved documents, and the pending response. Measured in tokens; current frontier models offer 128K–1M tokens. | Long contracts, multi-document due-diligence sets, and legislative bundles can exceed the window. Chunking + RAG strategies are required for very large document sets. |31| **Token** | The atomic unit the model processes. One token ≈ 0.75 English words or ≈ 0.5 Arabic words. Arabic is denser in characters per token due to script encoding. | Relevant for cost estimation and context-window planning in Arabic-language work. |32| **Temperature** | A sampling parameter (0–2) controlling output randomness. Low temperature (0–0.3) yields deterministic, consistent answers — preferred for legal work. High temperature increases creativity but also variance and hallucination risk. | Legal tasks should generally run at low temperature. |33| **Hallucination** | Output in which the model generates plausible-sounding but factually incorrect or entirely fabricated content — most dangerously: case citations, statute numbers, article text, regulatory thresholds, or party names that do not exist. | The single greatest risk in legal AI. Skills mitigate this via cite-or-bust rules, retrieval grounding, and confidence scoring. See [[report-hallucination-rate-tracker]]. |34| **Grounding** | Anchoring model output in retrieved, verified source material rather than relying solely on parametric (training-time) knowledge. | Grounding is why RAG is essential for legal work: the model's training-data cutoff makes statutes and case law stale within months. |3536### Retrieval and augmentation3738| Term | Definition | Legal-AI relevance |39|------|------------|-------------------|40| **RAG** (Retrieval-Augmented Generation) | An architecture in which the model's response is informed by documents retrieved from a vector database or search engine immediately before generation, rather than relying solely on training knowledge. | The standard architecture for legal AI. Enables citing current statutes, regulations, and cases. |41| **Embedding** | A dense numeric vector representing semantic content of text. Used to index and retrieve documents by meaning, not just keyword. | Legal document search uses embeddings so a query for "termination for cause" also retrieves "dismissal with valid reason" documents. |42| **Chunking** | Splitting long documents into smaller segments for indexing and retrieval. Chunk size (typically 256–1024 tokens) and overlap affect retrieval precision. | Long contracts and legislation must be chunked before indexing. Clause-level chunking often outperforms paragraph-level for contract work. |43| **Reranker** | A secondary model applied after initial retrieval to re-score and reorder retrieved chunks by relevance. Improves precision at the cost of additional latency. | Valuable for complex legal queries where initial BM25/embedding retrieval is noisy. |4445### Agentic patterns4647| Term | Definition | Legal-AI relevance |48|------|------------|-------------------|49| **Tool call** | A structured invocation of an external function — API, database query, calculator, or browser — by the model as part of its reasoning chain. The model emits a structured tool-call payload; the host executes it and returns results. | Legal AI tools include statute lookups, sanctions screeners, registry searchers, and document parsers. |50| **Agent** | A model-powered system that autonomously plans and executes multi-step tasks using tool calls and memory, rather than producing a single response. Can be single-agent or orchestrated multi-agent. | Deep research, due-diligence pipelines, and multi-jurisdiction comparisons are agent workflows. See [[research-deep-research-orchestrator]]. |51| **Orchestrator** | In a multi-agent system, the primary agent that decomposes the goal, delegates sub-tasks to specialist agents, and synthesizes their outputs. | The deep-research orchestrator is an example: it delegates to a statute-lookup agent, a case-law agent, a regulator-guidance agent, and synthesizes a memo. |52| **Memory** | Mechanisms for persisting information across turns or sessions — in-context (long context window), external (vector DB, key-value store), or summarized. | Legal matter context (parties, facts, prior research) should be persisted across a session to avoid re-elicitation. |53| **Function / Tool schema** | The JSON description of a tool's name, inputs, types, and behavior that the model reads to decide when and how to call it. | All connectors in this product expose a tool schema. |5455### Evaluation and quality5657| Term | Definition | Legal-AI relevance |58|------|------------|-------------------|59| **Eval** (evaluation) | A systematic assessment of model or skill output against a benchmark — typically a test set of prompts with known-good reference answers. Evals catch regressions when models or skills are updated. | Legal evals must test jurisdiction accuracy, citation correctness, and risk-flag completeness — not just fluency. |60| **Rubric** | A structured scoring guide defining what makes an output good, mediocre, or poor across specific dimensions. | Legal rubrics weight accuracy of legal principle > completeness > clarity > formatting. |61| **LLM-judge** | Using a more capable language model to automatically evaluate another model's outputs against a rubric, at scale. Supplements but does not replace human expert review. | Used in the hallucination-rate tracker to assess whether a cited article actually says what the model claimed. |62| **Benchmark** | A standardized test set or evaluation suite used for comparison across models or versions. | Internal legal benchmarks cover: statute-lookup accuracy, redline quality, jurisdiction-comparison depth. |63| **Latency** | The time from request submission to response completion. Measured P50/P95. | Critical for UX: redline on a 20-page contract must complete in a reasonable time even in deep-research mode. |64| **Cost** | Token cost of a model call (input + output tokens × per-token rate). Agents with many sub-calls can be expensive. | Deep-research workflows must budget credits and disclose cost to user before running. |6566---6768## Legal-AI Product Terms6970### Architecture7172| Term | Definition | Notes |73|------|------------|-------|74| **Skill** | A modular, self-contained system-prompt fragment that activates a specific behavior or capability in the AI assistant — e.g., drafting an NDA, reviewing a contract, looking up a statute. Skills are the primary unit of product quality. | This file describes the vocabulary used to build skills. |75| **Skill router** | An intent-classification layer that reads the user's message and activates the correct skill (or skill combination). The router must be fast and deterministic. | Routing errors are silent failures: a mis-routed query produces confidently wrong output in the wrong domain. See [[router-intent-classifier]]. |76| **Practice-area router** | A coarser router that first classifies the domain (corporate, employment, data-privacy, litigation, etc.) before fine-grained skill selection. | |77| **Knowledge base (KB)** | A reference-document pack embedded in or retrieved alongside a skill, providing jurisdiction-specific legal content that the model would otherwise hallucinate or get wrong. | KBs are indexed in the RAG layer; skills reference them via [[wikilinks]]. |78| **Pillar** | A major, cross-cutting KB or reference skill covering a foundational area (e.g., MENA corporate law, FATF AML framework). | |79| **Connector** | An integration skill that wraps an external data source or tool — a registry API, a legal database, a sanctions list — and exposes it to agent workflows via a standardized tool schema. | |80| **Eval suite** | The collection of test cases covering a skill's key behaviors, used to validate quality on every model or skill update. | |8182### Quality and safety8384| Term | Definition | Notes |85|------|------------|-------|86| **Cite-or-bust rule** | The rule that a skill must never fabricate a citation; if no verified source is found, it must say so explicitly rather than inventing one. | Applies to all research, case-law, and statute skills. |87| **Confidence score** | A machine-generated assessment of the model's certainty about a specific output, used to gate escalation to human review or to signal hedging. | Surfaced in outputs as "Confidence: high / medium / low" with basis stated. |88| **Escalation** | The behavior of routing a query or output to a human expert when confidence is low, stakes are high, or a domain falls outside the skill's scope. | Non-negotiable for jurisdiction-specific tax and regulatory opinions. |89| **Hallucination guard** | A runtime or post-processing check that detects likely fabrications — e.g., checking that a cited article number exists in the indexed statute text. | Part of the QA layer applied before output is shown to the user. |9091---9293## How to Use This Pack9495- Reference this vocabulary when writing or reviewing skill frontmatter and documentation.96- When onboarding a legal professional to the platform, share this as a primer on AI terminology.97- When onboarding a developer, share the "Legal-AI Product Terms" section as a primer on domain concepts.98- When a skill body uses a term defined here, link to this pack via `[[ref-vocabulary]]`.99100## Caveats & Currency101102AI engineering terminology evolves rapidly. Terms like "agentic loop," "tool use," and "function calling" have been defined differently by different vendors at different times. Definitions here reflect practice as of early 2026. Verify vendor-specific documentation when implementing.103104## Related skills105106- [[router-intent-classifier]]107- [[report-hallucination-rate-tracker]]108- [[research-deep-research-orchestrator]]109- [[eval-output-quality]]110- [[ref-jurisdiction-index]]