Skip to main content

Module search

Module search 

Source

Structs§

BM25Index
Simple BM25 scorer over symbol text (name + docstring).
GrepMatch
A single matching line from a grep search.
RawScores
Pre-computed BM25 and vector scores before alpha blending.
SearchResult
A search result with combined score.

Functions§

combine_scores
Blend pre-computed raw scores with a given alpha. Returns sorted results.
compute_raw_scores
Compute BM25 and vector scores separately. Call once, then blend with multiple alpha values via combine_scores.
grep_search
Walk root, optionally filtering by a glob file_pattern, and search every file for lines matching pattern (a regex). Returns up to limit matches.
hybrid_search
Hybrid search combining BM25 text relevance with vector similarity.
read_lines_from_file
Read a range of lines [start_line..=end_line] (1-based) from a file. Returns the source text of those lines concatenated.