Skip to content

search: top-1 ranking hardening for operator-style retrieval #304

Open

Description

@hurttlocker

Summary

Harden top-1 retrieval ranking for operator-style prompts so the right doc/section wins more often after query shaping.

Problem

Even after benchmark cleanup, Cortex still ranks the wrong content too high for several real operator-style prompts.

This is no longer just fixture noise. It is a real ranking problem.

Evidence

Final March 8 live rerun still showed retrieval red:

  • 5/12 passed
  • weak cases remain in workspace-digest, fact-audit, and some weekly/trading-style prompts
  • noisy top-3 hits are down to 0, so the remaining misses are more trustworthy

Goal

Improve ranking/re-ranking so section/file relevance for operator intent beats generic-but-similar content.

Proposed Scope

  • inspect current scoring/ranking factors for section/file/phrase relevance
  • add or tune section-aware / operator-intent-aware ranking boosts
  • improve how hybrid retrieval breaks ties for long operational prompts
  • add retrieval debug visibility where needed so false top-1 wins are explainable
  • validate changes against the harvested real-pattern pack

Non-Goals

  • Do not special-case only one corpus fixture forever
  • Do not turn this into a giant search rewrite
  • Do not accept improvements that only move noise around below top-3

Done When

  • targeted ranking tests exist
  • real-pattern top-1 quality measurably improves without reintroducing noisy top-3 behavior
  • benchmark note is updated with the real interpretation

Activity

  1. added
    enhancement
    search
    benchmark
    hardening
    on Mar 8, 2026
  2. hurttlocker commented on Mar 11, 2026

    @hurttlocker
    OwnerAuthor

    Release-board hygiene note:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    benchmarkenhancementhardeningsearch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions