33 lines
1.2 KiB
Rust
33 lines
1.2 KiB
Rust
//! Query parsing, planning, and execution.
|
|
//!
|
|
//! The primary query type is `Retrieve` -- a typed AST representing
|
|
//! "given these constraints, rank content for me." Constructed via
|
|
//! `RetrieveBuilder` or (M3+) parsed from the query language.
|
|
//!
|
|
//! The `Search` query type combines BM25 text retrieval, ANN vector retrieval,
|
|
//! and RRF fusion with the same personalization, filtering, and diversity
|
|
//! pipeline as `Retrieve`. Constructed via `SearchBuilder`.
|
|
|
|
pub mod executor;
|
|
pub mod fusion;
|
|
pub mod rank;
|
|
pub mod retrieve;
|
|
pub mod search;
|
|
pub mod stats;
|
|
pub mod suggest;
|
|
|
|
pub use executor::RetrieveExecutor;
|
|
pub use fusion::{
|
|
HybridFusion, RetrievalMode, ann_to_ranked, normalize_fused_scores, route_results, rrf_term,
|
|
};
|
|
pub use rank::{
|
|
EXACT_RANK_PROFILE, EXACT_RANK_PROFILE_VERSION, ExactRankCandidate, ExactRankComponents,
|
|
ExactRankItem, ExactRankRequest, ExactRankResponse, ExactRankSignals,
|
|
MAX_EXACT_RANK_CANDIDATES,
|
|
};
|
|
pub use retrieve::{
|
|
Cursor, ProfileRef, QueryError, Results, Retrieve, RetrieveBuilder, RetrieveResult, Signal,
|
|
};
|
|
pub use search::{Search, SearchBuilder, SearchResultItem, SearchResults, WithinScope};
|
|
pub use stats::QueryStats;
|