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