Expand description
§terraphim_grep
Hybrid search combining knowledge-graph concept expansion with ripgrep-backed
full-text search. Runs both pipelines concurrently via tokio::spawn and
merges results ranked by KG relevance boost and BM25 score.
§Quick start
ⓘ
use terraphim_grep::{TerraphimGrep, GrepOptions};
use std::sync::Arc;
let grep = TerraphimGrep::new(searcher, judge);
let options = GrepOptions::default();
let results = grep.search("query", options).await?;Re-exports§
pub use error::Result;pub use error::TerraphimGrepError;pub use hybrid_searcher::DEFAULT_KG_BOOST_WEIGHT;pub use hybrid_searcher::GrepOptions;pub use hybrid_searcher::Haystack;pub use hybrid_searcher::HybridResults;pub use hybrid_searcher::HybridSearcher;pub use hybrid_searcher::KgConcept;pub use hybrid_searcher::RetrievedChunk;pub use hybrid_searcher::boost_chunks_with_kg;pub use hybrid_searcher::score_kg_boost;pub use kg_curation::KgCurationRlm;pub use rlm_context::RlmContext;pub use signatures::AnswerWithCitations;pub use signatures::Citation;pub use signatures::Match;pub use signatures::NewConcept;pub use signatures::RlmSignature;pub use sufficiency_judge::HeuristicThresholds;pub use sufficiency_judge::Sufficiency;pub use sufficiency_judge::SufficiencyJudge;
Modules§
- error
- hybrid_
searcher - kg_
curation - openrouter_
client - Thin OpenRouter client for
terraphim-grepwith a long request timeout. - rlm_
context - signatures
- sufficiency_
judge