Skip to main content
Improve relevance: search results generate user interaction signals, which feed fusion strategies and evaluations in a feedback loop

Interaction Signals

Capture implicit user behavior — clicks, views, dwell time, purchases — to feed into retrieval optimization.
interaction_type is always a JSON array (co-occurring signals of one action, e.g. ["click", "long_view"]), and the document is feature_id. Track position for every signal — it is recorded for analytics and evaluation (NDCG and other rank-aware metrics).

Signal Strength

See Interaction Signals for the full signal matrix and per-use-case patterns. Interaction API →

Auto-Tune (Learned Fusion)

Auto-Tune automatically adapts fusion weights per user based on their interaction history. Instead of manually choosing weights, the system uses Thompson Sampling to learn the optimal blend of features for each user.

How It Works

Concept page — Thompson Sampling, context levels, reward signals

Reward Signals

Configure which interactions drive learning and how much

Rollout Guide

Traffic splitting, shadow mode, kill switch, per-user opt-out
Quick setup:
For a step-by-step walkthrough, see the Build a Feedback Loop tutorial.

Fusion Strategies

When a retriever has multiple search stages, fusion strategies determine how scores combine into the final ranking. Set fusion inside the feature_search stage parameters (alongside searches and final_top_k):
For "fusion": "learned", add a learning_config (see the Auto-Tune example above). Learned fusion uses Thompson Sampling to shift weight toward stages whose results users engage with; with zero interactions it behaves like rrf and transitions as signals accumulate.

Evaluations

Measure retriever quality against ground truth datasets with standard IR metrics.
Returns Precision, Recall, F1, NDCG, MAP, and MRR at configurable cutoffs. Use evaluations to compare retriever configurations before deploying changes. Evaluation API →

Analytics

Monitor retriever performance in production:
  • Stage latency breakdown — identify which stages are slow
  • Cache hit rates — verify caching is effective
  • Score distributions — detect relevance drift
  • Query patterns — understand what users search for
See Analytics & Performance for the analytics endpoints to build dashboards or trigger alerts on degradation.

The Feedback Loop

  1. Users search via retrievers
  2. Interaction signals capture what they engage with
  3. Learned fusion adjusts stage weights automatically
  4. Annotations provide explicit ground truth for edge cases
  5. Evaluations measure improvement quantitatively
  6. The cycle repeats — retrieval improves with usage