tidaldb/tidal/src/query/mod.rs
jx12n 3bcfb3c576 feat: Bazel build, crate docs/ai-lookup, docker images, and engine hardening
- Add BUILD.bazel across tidal, tidal-net, tidal-server, tidalctl for bzlmod build
- Add tidal/ crate docs (README, CHANGELOG, CONTRIBUTING, AGENTS, CLAUDE, API, ARCHITECTURE) and ai-lookup reference
- Add docker standalone/cluster/deploy images, compose, and prometheus config
- Harden WAL (batch format, writer, dedup, diagnostics), text syncer/collectors, and vector registry
- Expand tidalctl CLI and tests; restructure WAL/visibility integration test suites
- Refine tidal-net transport/client/server and tidal-server cluster/scatter-gather
2026-06-07 18:29:38 -06:00

27 lines
957 B
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 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 retrieve::{
Cursor, ProfileRef, QueryError, Results, Retrieve, RetrieveBuilder, RetrieveResult, Signal,
};
pub use search::{Search, SearchBuilder, SearchResultItem, SearchResults, WithinScope};
pub use stats::QueryStats;