Skip to main content

coding_agent_search/search/
mod.rs

1//! Search layer facade.
2//!
3//! This module provides the search infrastructure for cass, including:
4//!
5//! - **[`query`]**: Query parsing, execution, and caching for Tantivy-based full-text search.
6//! - **[`tantivy`]**: Tantivy index creation, schema management, and document indexing.
7//! - **[`embedder`]**: Embedder trait for semantic search (hash and ML implementations).
8//! - **[`embedder_registry`]**: Embedder registry for model selection (bd-2mbe).
9//! - **[`hash_embedder`]**: FNV-1a feature hashing embedder (deterministic fallback).
10//! - **[`fastembed_embedder`]**: FastEmbed-backed ML embedder (MiniLM).
11//! - **[`reranker`]**: Reranker trait for cross-encoder reranking of search results.
12//! - **[`reranker_registry`]**: Reranker registry for model selection with bake-off support.
13//! - **[`fastembed_reranker`]**: FastEmbed-backed cross-encoder reranker (ms-marco-MiniLM-L-6-v2).
14//! - **[`daemon_client`]**: Daemon client wrappers for warm embedder/reranker (bd-1lps).
15//! - **[`model_manager`]**: Semantic model detection + context wiring (no downloads).
16//! - **[`model_download`]**: Model download system with consent, verification, and atomic install.
17//! - **[`policy`]**: Semantic policy contract: model defaults, tiers, budgets, invalidation.
18//! - **[`semantic_manifest`]**: Durable semantic asset manifests, backlog ledger, and checkpoints.
19//! - **[`canonicalize`]**: Text preprocessing for consistent embedding input.
20//! - **[`ann_index`]**: HNSW-based approximate nearest neighbor index (Opt 9).
21//! - **[`two_tier_search`]**: Two-tier progressive search with fast/quality embeddings (bd-3dcw).
22//! - **[`pack_planner`]**: Deterministic answer-pack evidence selection core.
23
24pub mod ann_index;
25pub mod asset_state;
26pub mod canonicalize;
27pub mod daemon_client;
28pub mod embedder;
29pub mod embedder_registry;
30pub mod fastembed_embedder;
31pub mod fastembed_reranker;
32pub mod hash_embedder;
33pub mod model_download;
34pub mod model_manager;
35pub mod pack_planner;
36pub mod policy;
37pub mod query;
38pub(crate) mod readiness;
39pub mod reranker;
40pub mod reranker_registry;
41pub mod runtime_optimizations;
42pub mod semantic_manifest;
43pub mod tantivy;
44pub mod two_tier_search;
45pub mod vector_index;