Idea detail
contextual_search
reqlan rq/core_analysis/search.rq:93
Summary
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.
Navigation
Attributes
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | commands | reqlan rq/cli/cli_package.rq | contextual_search |
| references | click_input | reqlan rq/cli/click.rq | contextual_search |
| references | search_rust | reqlan rq/core_analysis/rust_port.rq | contextual_search |
| references | search | reqlan rq/core_analysis/search.rq | contextual_search |
| references | search_with_context | reqlan rq/modelling/advanced_analysis.rq | contextual_search |
| references | idea_graph_distance | reqlan rq/modelling/advanced_analysis.rq | contextual_search |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…