Skip to content

refactor(retrieval): plan query-only then light from retrieval_query - #375

Merged
EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/planner-query-then-score
Sep 1, 2026
Merged

refactor(retrieval): plan query-only then light from retrieval_query#375
EricNGOntos merged 2 commits into
mainfrom
feat/wuchengke/planner-query-then-score

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

Summary

  • Map-nav planner is query-only: no pre-lit map; corpus scoring runs after the plan from executable retrieval_query strings (baseline + cache).
  • Harvest waves reuse the seeded cache (score only missing queries); replan clears per-id bookkeeping then re-seeds.
  • Also includes prior commit: remove expensive n_chunks path and tighten persisted frequency lookup.

Test plan

  • make check
  • Focused nav tests (test_nav_plan_query_only, plan/node-filter/trace/wire, mapnav session contract)
  • Spot-check a single-subgoal mapnav query: map_scoring only after planner; no second full-corpus score on first wave

Made with Cursor

EricNGOntos and others added 2 commits September 1, 2026 19:00
…y query logic

This commit removes the `n_chunks` attribute from various classes and functions related to navigation and retrieval, streamlining the codebase. Additionally, it updates the frequency query logic to drive lookups from `document_map_unit_tokens`, enhancing performance and clarity in the retrieval process. Tests have been adjusted to reflect these changes.
Defer corpus map scoring until after the planner emits subgoals, cache those
scores for harvest, and keep refine map-aware after lighting.

Co-authored-by: Cursor <cursoragent@cursor.com>
prepared_relights[query] = prepared
if scores:
state.relit_map_cache[query] = prepared
except Exception:
@EricNGOntos
EricNGOntos merged commit 0c5204d into main Sep 1, 2026
6 checks passed
@EricNGOntos
EricNGOntos deleted the feat/wuchengke/planner-query-then-score branch September 1, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants