Skip to main content

Crate search_semantically

Crate search_semantically 

Source
Expand description

§search-semantically

Embeddable semantic code search with multi-signal POEM ranking.

Provides local, incremental code search combining BM25 full-text search, vector similarity via ONNX embeddings, path matching, symbol matching, import graph propagation, and git recency — ranked using Pareto-optimal Election Method (POEM).

§Quick start

use search_semantically::SearchEngine;
use std::path::PathBuf;

let engine = SearchEngine::new(PathBuf::from("/path/to/project"));
let results = engine.search("database connection handler", 20, None).unwrap();
println!("{results}");

Structs§

MetricScores
SearchEngine
SearchResult
StoredChunk
TextChunk

Enums§

FileType
QueryType

Functions§

format_results

Type Aliases§

DownloadCallback