Skip to main content

Retrieval Confidence Ontology

Confidence and Uncertainty Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
RETRIEVAL CONFIDENCE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Confidence and Uncertainty Entities
Version: 1.0 | Date: 03 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/confidence-and-uncertainty-entities/retrieval-confidence-ontology.html
Source status: Public page identifies the ontology and authors, but does not expose its full technical specification. This document is an original extended formalisation, not a verbatim transcription.

01. PURPOSE
Represent, compute, calibrate and update confidence that retrieved evidence is relevant, authentic, current, adequately scoped and capable of supporting a specified claim. Retrieval confidence is distinct from answer confidence and factual truth.

02. ENTITY DEFINITION
RetrievalConfidence := (query_id, document_id, claim_id?, score, uncertainty, evidence, provenance, calibration_id, timestamp, status).
Each confidence assertion is scoped to a query, retrieval event and evaluation policy; scores cannot be transferred between tasks without validation.

03. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: query, user intent, retrieved candidates, passages and scores.
R_t: ranking, filtering, provenance, calibration and inference rules.
B_t: admissibility, access, temporal, safety and confidence boundaries.
K_t: known corpus properties, benchmark labels, source histories and prior validated observations.
Auxiliary state C_t = (c_t, u_t, p_t, v_t), where c is calibrated confidence, u uncertainty, p provenance quality and v validation status.

04. INPUTS AND OUTPUTS
Input: query q; candidate documents D; retrieval scores s; passage spans E; corpus snapshot; retrieval model version; provenance metadata; optional relevance labels.
Output: ranked candidates with calibrated relevance confidence, uncertainty intervals, reasons, supporting spans and abstention/verification flags.

05. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t : admissible(x, B_t) AND provenance_valid(x)}
x*_t = argmax_{x in V_t} P(relevant(x,q) | I_t,R_t,B_t,K_t)
I_{t+1} = update(I_t, observations_t, validation_t)
If V_t is empty, return ABSTAIN with reason; never fabricate evidence.

06. RETRIEVAL CONFIDENCE DECOMPOSITION
For candidate d and query q define evidence features:
r(d,q) = semantic relevance; a(d) = source authenticity;
f(d) = freshness relative to query; g(d,q) = granularity/coverage;
p(d) = provenance integrity; k(d,q) = consistency with independently checked evidence.
A task-specific calibrated estimator yields:
c(d,q) = Calibrate_theta(r,a,f,g,p,k,context).
This is a modelling specification, not a claim that these features are statistically independent.

07. SCORE CALIBRATION
Raw similarity scores, cosine distances and rank positions are NOT probabilities.
Learn c = Calibrate_theta(s, features) from held-out, task-matched relevance judgements.
Assess reliability with Brier score, log loss and reliability plots; revalidate after corpus or model drift.

08. UNCERTAINTY
U = (U_aleatoric, U_epistemic, U_shift, U_provenance).
Aleatoric: intrinsic ambiguity of query or passage.
Epistemic: insufficient labelled examples or model uncertainty.
Shift: query/corpus distribution mismatch.
Provenance: missing or unverified source chain.
Represent intervals with a declared method and coverage assumptions; never equate confidence score with interval coverage.

09. RECURSIVE RETRIEVAL LOOP
q_t -> retrieve(D_t) -> filter(B_t) -> score -> calibrate -> validate evidence -> decide.
If evidence insufficient and iteration budget remains:
q_{t+1} = refine(q_t, uncovered_claims, contradictions, uncertainty)
Stop on coverage, diminishing information gain, safety boundary or budget exhaustion.
Avoid feedback loops that count re-retrieved copies as independent corroboration.

10. DOCUMENT-LEVEL AND CLAIM-LEVEL CONFIDENCE
Document relevance does not establish claim support.
Support(c,d,e) requires an attributable passage e that entails or directly evidences claim c.
C_claim = Aggregate({support(c,d_i,e_i)}, dependence_graph, validation_policy).
Correlated sources must not be naively multiplied as independent evidence.

11. PROVENANCE
Track URI, publisher, publication/update dates when known, retrieval timestamp, document version/hash, passage location, licensing and transformation lineage.
Unverifiable provenance reduces confidence or triggers human review; absence of metadata is recorded, not guessed.

12. TEMPORAL VALIDITY
Freshness requirements depend on the query: historical facts and live availability require different windows.
Valid(d,q,t) := (t - source_time(d) <= freshness_limit(q)) where a reliable source_time exists.
If source_time is unknown, label temporal confidence UNKNOWN.

13. ENTITY RELATIONSHIPS
RetrievalConfidence --evaluates--> RetrievedDocument
RetrievalConfidence --scoped_to--> Query
RetrievalConfidence --supports_or_rejects--> Claim
RetrievalConfidence --derived_from--> EvidenceSpan
RetrievalConfidence --calibrated_by--> CalibrationModel
RetrievalConfidence --constrained_by--> BoundaryPolicy
RetrievalConfidence --updated_by--> ValidationEvent
RetrievalConfidence --reports--> UncertaintyEntity

14. TRI-MAPPING
Physical/data: stored document, index, retrieval log, timestamp, source record.
Mathematical: conditional relevance estimate, uncertainty, calibration mapping, decision threshold.
Semantic: meaning of query, evidential support, claim scope, trust and provenance relations.
Mapping requires stable identifiers and an auditable transformation chain.

15. INFERENCE RULES
R1: IF provenance invalid THEN mark candidate unverified.
R2: IF calibrated confidence < task threshold THEN flag low-confidence retrieval.
R3: IF evidence span does not support target claim THEN do not promote document relevance to claim confidence.
R4: IF independent verified evidence agrees THEN permit evidence aggregation under dependence-aware policy.
R5: IF contradiction exists THEN surface disagreement and increase verification requirement.
R6: IF distribution shift detected THEN flag calibration invalid pending reassessment.
R7: IF no admissible evidence remains THEN abstain.

16. CONFIDENCE THRESHOLDS
Let tau_accept, tau_review be validated task-specific thresholds with tau_review <= tau_accept.
If c >= tau_accept and all hard constraints pass: ACCEPT_RETRIEVAL.
If tau_review <= c < tau_accept: REVIEW.
If c < tau_review: REJECT_OR_RETRIEVE_AGAIN.
No threshold guarantees truth or safety without empirical validation.

17. EVIDENCE AGGREGATION
Evidence set E = {e_1,...,e_n}.
Group near-duplicates and shared-origin sources before aggregation.
Use a validated aggregation model A(E, dependencies, task) rather than a universal additive confidence formula.
Record how conflicts, missing sources and low coverage affect the result.

18. BOUNDARY MODEL
B = {source_permissions, privacy, freshness, relevance_scope, minimum_provenance, time_budget, token_budget, allowed_tools, safety_policy}.
A boundary violation blocks candidate promotion irrespective of similarity score.

19. EXECUTION CONDITIONS
Preconditions: identifiable query, accessible candidate corpus, defined scoring procedure, declared task thresholds.
Postconditions: every accepted result has a stable identifier, traceable evidence, calibration status and decision record.
Failure states: EMPTY_CORPUS, NO_MATCH, SOURCE_UNVERIFIED, CALIBRATION_MISSING, DRIFT_DETECTED, BUDGET_EXCEEDED.

20. MAPPING TABLE
Query -> QueryEntity -> I_t -> retrieval intent
Candidate -> RetrievedDocument -> E_t -> possible evidence
Passage -> EvidenceSpan -> K_t -> claim support check
Rank score -> RetrievalScore -> I_t -> uncalibrated signal
Calibrated probability -> RetrievalConfidence -> C_t -> conditional relevance estimate
Policy -> RetrievalBoundary -> B_t -> eligibility gate
Feedback -> ValidationEvent -> I_(t+1) -> recursive update

21. EXAMPLE (ILLUSTRATIVE, NOT MEASURED)
Query: 'What did the benchmark report conclude?'
Candidate A: high semantic match but no attributable conclusion passage -> document relevance may be high; claim-support confidence remains unverified.
Candidate B: identifiable report with directly cited conclusion -> eligible for calibrated claim-support assessment.
Decision: prefer supported, provenance-valid evidence over ungrounded similarity.

22. VALIDATION AND TESTING
Test positive/negative relevance labels, adversarial near matches, stale sources, conflicting documents, duplicates, missing provenance, ambiguous queries and out-of-domain requests.
Report calibration error, ranking quality, evidence precision, selective risk and abstention rate.
Compare against baselines with versioned data splits and reproducible seeds.

23. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.retrieval-confidence.v1
PURPOSE: Evaluate retrieved evidence confidence with explicit provenance and uncertainty.
ENTITIES: Query, RetrievedDocument, EvidenceSpan, Claim, RetrievalConfidence, CalibrationModel, BoundaryPolicy.
PATHWAYS: query -> retrieve -> validate -> score -> calibrate -> support-check -> decide -> update.
MINI_RECURSION_ENGINE: iterate only when evidence gaps remain and budget permits.
CONFIDENCE: calibrated and scoped; never self-certified.
SEMANTIC_EQUIVALENCE: aliases permitted only after task-context validation.
UPDATE_MODEL: new evidence, benchmark labels and drift checks produce a versioned confidence update.
FLOW_HASH: compute SHA-256 over the published canonical UTF-8 flow when deployed; not pre-asserted here.

24. TEXT DIAGRAM
[Query / Claim]
       |
       v
[Retrieve Candidates] --> [Provenance / Boundary Gate]
                                  |
                                  v
                         [Relevance Features]
                                  |
                                  v
                         [Calibrate + Uncertainty]
                                  |
                                  v
                         [Evidence Support Check]
                                  |
                         +--------+---------+
                         |        |         |
                       ACCEPT   REVIEW    ABSTAIN
                         |        |         |
                         +--------+---------+
                                  |
                           [Audit + Update]
                                  |
                           [Next Iteration]

25. EXECUTION GUARANTEE (CONDITIONAL)
Given valid inputs, implemented deterministic gates, declared calibration models and bounded execution, the flow produces a traceable decision or explicit failure state. It does NOT guarantee factual correctness, calibrated probabilities under drift, exhaustive retrieval, or real-world safety.

26. INTEROPERABILITY
Links to AI Confidence Entity, Confidence Score, Prediction Confidence, Reasoning Confidence, Search and Retrieval Entities, Evaluation Metric, Calibration Metric, Evidence and Knowledge Entities.
Use stable ontology IDs and explicit relation types for entity-graph integration.

27. REPRODUCIBILITY
Persist model and corpus versions, feature schema, calibration set identifier, thresholds, timestamps, decision trace and evaluation code revision. Keep protected or personal data out of public logs.

28. LIMITATIONS
Retrieval confidence is not a substitute for source verification, domain expertise or direct factual testing. Model-based confidence may be miscalibrated; semantic similarity can favour plausible but false material.

29. HOW TO READ
Read the state tuple as current inputs/rules/boundaries/knowledge. Expand candidate evidence, enforce boundaries, estimate and calibrate relevance, verify claim support, decide, then recursively update when necessary.

30. ATTRIBUTION AND LICENCE NOTE
Ontology source and research attribution: Mark Anthony Higgins; Sky — Recursive AI.
This extended flow is intended to accompany the Kireth Research Semantic Library. Follow the licence and citation terms published by the rights holder; this document does not independently redefine them.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ