Skip to main content

Retrieval Score Ontology

Search and Retrieval Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
RETRIEVAL SCORE ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Search and Retrieval Entities
Version: 1.0 | Date: 2026-11-02
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/search-and-retrieval-entities/retrieval-score-ontology.html
Status: Supplementary formalisation; not a verified transcription of the source ontology.

1. PURPOSE
Represent, calculate, normalise, compare and audit the relevance score assigned to a retrieval candidate for a query. Scores are conditional on a retrieval model, corpus, query, feature definitions and calibration method; they are not automatically probabilities or evidence of factual truth.

2. ENTITY DEFINITION
RetrievalScore := (score_id, query_id, candidate_id, model_id, raw_score, normalised_score, features, provenance, timestamp, validity)
Associated entities: SearchQuery, RetrievalCandidate, RetrievedDocument, RetrievedPassage, SearchRankingEntity, SearchResultSet.

3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: query, candidate set and observed retrieval features.
R_t: scoring, calibration, eligibility and ranking rules.
B_t: corpus scope, access controls, score range, budget and thresholds.
K_t: index state, model parameters, prior evaluation and provenance.

4. FORMAL FLOW
C_t = Retrieve(q_t, index_t, B_t)
F_t(c) = ExtractFeatures(q_t, c, K_t) for c in C_t
s_raw(c) = f_theta(F_t(c))
s_norm(c) = CalibrateOrNormalise(s_raw(c), method, reference_set)
V_t = {c in C_t | Eligible(c, B_t) AND ValidScore(c)}
Rank_t = sort(V_t, key = s_norm(c), descending = true, tie_break = stable_candidate_id)
O_t = TakeTopK(Rank_t, k)
I_(t+1) = Update(I_t, O_t, feedback_t)

A score may be a cosine similarity, dot product, BM25 score, cross-encoder logit or a composite metric. Scores from different models or queries must not be compared without an explicitly justified common scale.

5. TRI-MAPPING
Entity mapping: (query, candidate, score, scorer, evidence, provenance).
Relationship mapping: query --scores--> candidate; score --generated_by--> scorer; score --derived_from--> features; candidate --ranked_in--> result_set.
Process mapping: query -> candidate retrieval -> feature extraction -> scoring -> calibration -> filtering -> ranking -> audit.

6. RELATIONSHIP GRAPH
SearchQuery -> RetrievalCandidate -> RetrievalScore -> SearchRankingEntity -> SearchResultSet
RetrievalScore -> ScoringModel
RetrievalScore -> FeatureVector
RetrievalScore -> ProvenanceRecord
RetrievalScore -> EvaluationRecord

7. MINI RECURSION ENGINE
Given feedback or changed query context:
  1. Detect whether the query, candidate, index or scoring model changed.
  2. Invalidate affected cached scores.
  3. Recompute features and raw scores for affected candidates.
  4. Reapply the documented normalisation or calibration.
  5. Re-rank eligible candidates and log changes.
  6. Stop when the iteration budget is reached or the ranking stabilises.

Stop condition: t >= T_max OR RankingDistance(Rank_t, Rank_(t-1)) <= epsilon.
The process is bounded; convergence is not guaranteed without additional assumptions.

8. MAPPING TABLE
INPUT: query q | identifies information need.
INPUT: candidate c | retrievable document, passage or entity.
FEATURE: F(q,c) | signals used for scoring.
OPERATOR: f_theta | computes raw relevance score.
OPERATOR: N | normalises or calibrates score.
BOUNDARY: B | restricts admissible candidates and score validity.
OUTPUT: score record | value plus model, scope and provenance.
OUTPUT: ranking | ordered eligible candidates.
FEEDBACK: judgement | evaluation signal for later refinement.

9. INFERENCE RULES
R1: IF candidate violates access constraints THEN exclude it regardless of score.
R2: IF scoring features are missing THEN flag incomplete evidence; do not silently treat missing values as zero unless the model specifies that policy.
R3: IF score is NaN or infinite THEN mark invalid and exclude from numeric ranking.
R4: IF scores use incompatible models or scales THEN avoid direct numerical comparison.
R5: IF score exceeds a documented threshold THEN candidate may pass the relevance filter; this does not establish truth.
R6: IF a model or index version changes THEN invalidate scores dependent on that version.
R7: IF score ties occur THEN apply a stable, documented tie-breaking rule.

10. EXECUTION GUARANTEE (CONDITIONAL)
Given finite candidate input, terminating feature and scoring functions, a total ordering after tie-breaking, and a finite iteration budget, the flow terminates with a deterministic ranking for fixed inputs and model versions. It does not guarantee relevance, correctness, fairness or calibrated probability without independent evaluation.

11. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/search-and-retrieval-entities/retrieval-score-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/
PURPOSE: Define auditable relevance scoring for search and retrieval candidates.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: SearchQuery; RetrievalCandidate; RetrievalScore; ScoringModel; FeatureVector; SearchRankingEntity; SearchResultSet.
PATHWAYS: Query -> Retrieve -> Feature extraction -> Score -> Validate -> Normalise -> Rank -> Return.
MINI_RECURSION_ENGINE: Feedback -> Invalidate affected scores -> Re-score -> Re-rank -> Stop under budget.
INFERENCE_RULES: Eligibility first; valid numeric scores; version-aware comparisons; provenance required.
CONFIDENCE: A retrieval score is not itself a calibrated confidence measure.
SEMANTIC_EQUIVALENCE: Relevance score; retrieval score; ranking signal (context-dependent, not always identical).
UPDATE_MODEL: Recompute when query, corpus, model, features or constraints change.
FLOW_HASH: Not assigned; calculate from canonical published content if required.

12. HOW TO READ
The ontology separates candidate relevance estimation from truth verification. It preserves the query/candidate/model context of each score, applies boundary checks before ranking and permits bounded iterative refinement.

13. LICENSING AND ATTRIBUTION
Supplementary research flow intended for open reuse with citation to Kireth Research and the credited authors. Consult the published Open Research Licence for authoritative terms.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ