Skip to main content

Hybrid Search Entity 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
HYBRID SEARCH ENTITY ONTOLOGY — FLOW ALGEBRA
Semantic Library | Supplementary formalisation | 2026-11-02
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/search-and-retrieval-entities/hybrid-search-entity-ontology.html
STATUS: Independent supplementary model; not a verified transcription of source-page specifications.
CITATION: Cite the source URL and authors when reusing this formalisation.

1. PURPOSE
Represent a hybrid search entity that combines lexical and semantic retrieval, reconciles candidate sets, applies constraints and produces ranked, traceable results.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: query, context, lexical terms, embedding and candidate pool.
R_t: retrieval, fusion, ranking and validation rules.
B_t: corpus, access controls, filters, latency budget and confidence bounds.
K_t: index metadata, semantic graph, retrieval history and provenance.

3. FORMAL FLOW
Q_t = normalise(query_t, context_t)
L_t = lexical_retrieve(Q_t, index, B_t)
V_t = vector_retrieve(embed(Q_t), vector_index, B_t)
C_t = deduplicate(L_t union V_t)
F_t = {c in C_t : satisfies(c, B_t)}
score_t(c) = alpha * norm(lexical_score(c)) + (1-alpha) * norm(vector_score(c))
rank_t = sort_desc(F_t, score_t)
O_t = top_k(rank_t, k)
I_(t+1) = update(I_t, feedback_t, O_t)
where 0 <= alpha <= 1; missing branch scores use a documented policy.
Alternative fusion: RRF(c) = sum_{b in {L,V}} 1/(k0 + rank_b(c)) for branches containing c.
Do not compare uncalibrated raw branch scores directly.

4. IMPLEMENTS
Query parsing; lexical matching; semantic vector similarity; union and deduplication; constraint filtering; calibrated score fusion or reciprocal-rank fusion; optional reranking; source attribution; feedback-based refinement.

5. HOW TO READ
Query -> lexical and vector branches -> candidate union -> constraints -> fusion -> ranking -> results -> feedback. Each result retains document ID, source, branch membership and score provenance.

6. TRI-MAPPING
ENTITY: HybridSearchEntity, Query, Candidate, Document, ResultSet.
RELATION: retrieves, matches, embeds, merges, filters, ranks, cites.
PROCESS: normalise -> retrieve -> merge -> validate -> fuse -> output.

7. RELATIONSHIP GRAPH
Query -> LexicalRetriever -> LexicalCandidates
Query -> EmbeddingModel -> VectorRetriever -> SemanticCandidates
LexicalCandidates + SemanticCandidates -> CandidateMerger -> Filter -> FusionRanker -> ResultSet
ResultSet -> ProvenanceTrace -> SourceDocument
Feedback -> QueryRefinement -> Query

8. RECURSION ENGINE
At iteration t, assess coverage, relevance, diversity and budget.
If quality < target and budget remains: reformulate query, adjust alpha or retrieval depth within permitted bounds, then repeat.
Stop on quality threshold, no meaningful improvement, iteration cap or budget exhaustion.
Prevent cycles by tracking query signatures and visited candidate sets.

9. MAPPING TABLE
Input query | Query entity | normalise | canonical query
Lexical hits | Candidate entities | keyword retrieval | L_t
Vector hits | Candidate entities | semantic retrieval | V_t
Merged hits | Result-set precursor | deduplicate | C_t
Constraints | Boundary state | validate | F_t
Fusion weights | Ranking rule | score | ranked candidates
Sources | Provenance entities | trace | auditable result set

10. INFERENCE RULES
IF candidate violates a hard constraint THEN exclude candidate.
IF candidate occurs in both branches THEN retain one canonical identity and both provenance paths.
IF score scales differ THEN calibrate before weighted fusion or use rank-based fusion.
IF source cannot be attributed THEN mark provenance incomplete.
IF feedback indicates poor relevance THEN revise query or fusion settings subject to B_t.

11. EXECUTION GUARANTEE (CONDITIONAL)
Given finite candidate sets, deterministic normalisation, valid index access and bounded recursion, the procedure terminates and returns a finite ordered result set. It does not guarantee that retrieved documents are complete, relevant, true or free from bias.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/search-and-retrieval-entities/hybrid-search-entity-ontology.html
PURPOSE: Explain hybrid lexical-semantic search in a traceable semantic graph.
STATE_MODEL: S_t=(I_t,R_t,B_t,K_t)
ENTITIES: Query, SearchTerm, Embedding, RetrievalCandidate, SearchResult, ResultSet, Ranking, Provenance.
PATHWAYS: Query -> LexicalSearch/VectorSearch -> Merge -> Filter -> Fuse -> Rank -> Output.
MINI_RECURSION_ENGINE: Evaluate -> Refine -> Retrieve again, subject to stopping bounds.
INFERENCE_RULES: Hard filters precede ranking; retain provenance; calibrate scores.
CONFIDENCE: Scores indicate retrieval relevance estimates, not factual certainty.
SEMANTIC_EQUIVALENCE: lexical and vector matches are complementary evidence, not identical meanings.
FLOW_HASH: Generate a content hash on publication; no hash is claimed here.
UPDATE_MODEL: Version rules, index metadata and fusion parameters when changed; preserve provenance.

OPEN RESEARCH NOTE
Provided as an open supplementary formalisation with citation requested. Check the published ontology before claiming exact correspondence.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ