On this page12 sections ⌄
Key decisions
- Multiple recall routes instead of one large model: lexical, vector and multimodal each do what they do best, with ranking as the single arbiter.
- Query understanding as its own layer: one result serves search, recommendation and QA; model upgrades do not touch recall.
- Relevance ranking separated from business intervention: LTR owns relevance; pinning, blocking, boosting, dedupe, diversity and freshness run in the re-ranking layer.
- The re-ranking layer also owns assembly, caching and degradation, making it both the policy execution point and the stable exit.
- Behavior signals flow back in real time: impressions, clicks, dwell and conversion become online features for ranking and re-ranking rules.
Design goals and constraints
Tengence Search must satisfy four constraints at once: multilingual query understanding, hybrid recall across text, images and video, millisecond-level online response, and operability with attribution. No single-model design covers all four well, so the architecture was built around layers and multiple recall routes from day one.
Design targets (acceptance criteria): P99 retrieval latency below 100 ms; at least one relevant result in the top 10 against a human-annotated relevance bar; and usable results even when any single recall channel fails. These are design targets, not measured production values.
Four-layer architecture
The pipeline has four layers: query understanding, hybrid recall, ranking, and re-ranking. Layers communicate through stable contracts, so a model or index upgrade in one layer does not require rewriting the whole pipeline.
1. Query understanding
Language detection, intent classification, entity extraction, query rewriting and correction. The layer turns raw input into a structured query object: language, intent, entities, required terms and recallable fields. Keeping it separate from recall lets search, recommendation and QA reuse the same understanding result.
2. Hybrid recall
Three parallel routes: BM25 lexical recall, vector semantic recall and multimodal recall. Results are not fused early; each route enters ranking with its own scores. Lexical recall protects exact matching and explainability, vector recall covers paraphrases and long-tail queries, and multimodal recall brings images, video and audio into the candidate set.
3. Ranking layer
The ranking layer answers one question: relevant or not. It merges the three candidate sets, normalizes scores, and applies an LTR model to produce a scored candidate list. Pinning, blocking and commercial boosting do not enter the ranking model; they belong to the re-ranking layer, so operating rules cannot distort relevance.
4. Re-ranking layer
The re-ranking layer takes the ranked candidates and owns three responsibilities: business intervention rules, common re-ranking tasks, and result assembly with degradation.
Business intervention rules handle pinning, blocking, boosting, allow and deny lists, and commercial constraints. Common re-ranking tasks handle deduplication, diversity, freshness, authority and content-format mix. Rules run as configurable policies and can follow the business calendar without retraining the model.
Result assembly and degradation handle field trimming, query caching and failure handling. If a recall route times out or is unavailable, the layer degrades to the remaining routes using preset weights and records the reason. Re-ranking is therefore both the execution point for business policy and the stable exit of the pipeline.
Behavior feedback loop
After results are served, the system collects impressions, clicks, dwell time and conversion, aggregated by slot, query and user session. This data feeds offline evaluation and human labeling, and also returns to the online pipeline as real-time features.
Feedback takes two paths. One writes real-time interest, popularity and conversion signals into ranking features for the next batch of requests. The other returns rule hits and intervention outcomes to the re-ranking layer to adjust pinning, blocking and weights. The target feedback latency is seconds. All behavior collection follows user consent and privacy requirements.
Key design decisions
Decision 1: multiple recall routes instead of one large model. A single model can handle long-tail semantics, but exact matching, explainability and cost become hard to control. Multiple routes let each method do what it does best, with ranking as the single arbiter.
Decision 2: query understanding as its own layer. Pulling language detection, intent and entity extraction out of recall gives three benefits: search, recommendation and QA share one understanding result; model upgrades do not touch recall; and understanding quality can be evaluated separately.
Decision 3: separate relevance ranking from business intervention. The LTR model decides relevance; the re-ranking layer decides whether and in what order to show an item. Operations can change rules on the business calendar without retraining, and model upgrades cannot silently change business policy.
Decision 4: degradation is a first-class concern. Degradation is part of the architecture, not exception handling. Every recall route has a timeout budget, a degradation weight and observable metrics, and the re-ranking layer executes predictable fallbacks instead of returning a broken page.
Failure and degradation paths
Failures fall into three groups: a recall route times out, an index version is inconsistent, or a downstream service is unavailable. The responses are: degrade to the remaining routes by weight; read the previous index version and mark the version gap; or return a cached result with a degradation flag. Every degradation is recorded for later attribution.
Verifiable metrics and measurement protocol
Acceptance is measured with reproducible criteria rather than marketing numbers:
- Latency: P50 and P99 in a fixed 8 vCPU, 20M-document environment with three recall routes per query.
- Relevance: top-10 relevant hit rate over 500 human-annotated queries.
- Degradation availability: request success and usable-result rate with each recall route disabled in turn.
- Behavior feedback: P95 latency from behavior event to feature availability, against a seconds-level target.
- Multilingual: query-understanding accuracy and recall coverage reported per language, never merged.
What this architecture does not do
It does not produce content, replace the operations back office, or promise that one model solves every retrieval problem. Clear boundaries make later iterations easier to control.
Further reading
For product capabilities see Tengence Search; for integration see the Search API reference; for scenario design see AI semantic search and QA.
