Printable idea sheet
contextual_search
reqlan rq/core_analysis/search.rq:93
Katz 0.208
Search string plus an optional context list of relative `.rq` paths, `path#idea` refs, or bare idea names.
Runs semantic_search, then re-ranks with min undirected hop distance from any resolved context idea
and exponential decay ( idea_graph_distance ): `finalScore = textScore * 2^(-minHop)` ( unreachable floor = 8 hops ).
Surfaces: native-analysis-api.ts `searchRequirements(..., { context })` and CLI `reqlan search --context` ( search.ts ).
Implements search_with_context. PageRank ( pagerank ) and full context_scope_v2 ingestion remain future work.
Default ranking does not use Katz. Opt in with katz_search.
Complements fuzzy_search when neighbourhood / context should bias ranking.
click_input ranks ambiguous click matches the same way, with session ideas as context.
- status
- done
- tests
- contextual.rs:nearer_ideas_rank_above_farther_with_equal_text_scores, contextual.rs:reranks_using_graph_edges_from_context_seeds
Interactive page: contextual_search