vestige/crates/vestige-core/src/search/mod.rs
Sam Valladares c2d28f3433 feat: Vestige v2.0.0 "Cognitive Leap" — 3D dashboard, HyDE search, WebSocket events
The biggest release in Vestige history. Complete visual and cognitive overhaul.

Dashboard:
- SvelteKit 2 + Three.js 3D neural visualization at localhost:3927/dashboard
- 7 interactive pages: Graph, Memories, Timeline, Feed, Explore, Intentions, Stats
- WebSocket event bus with 16 event types, real-time 3D animations
- Bloom post-processing, GPU instanced rendering, force-directed layout
- Dream visualization mode, FSRS retention curves, command palette (Cmd+K)
- Keyboard shortcuts, responsive mobile layout, PWA installable
- Single binary deployment via include_dir! (22MB)

Engine:
- HyDE query expansion (intent classification + 3-5 semantic variants + centroid)
- fastembed 5.11 with optional Nomic v2 MoE + Qwen3 reranker + Metal GPU
- Emotional memory module (#29)
- Criterion benchmark suite

Backend:
- Axum WebSocket at /ws with heartbeat + event broadcast
- 7 new REST endpoints for cognitive operations
- Event emission from MCP tools via shared broadcast channel
- CORS for SvelteKit dev mode

Distribution:
- GitHub issue templates (bug report, feature request)
- CHANGELOG with comprehensive v2.0 release notes
- README updated with dashboard docs, architecture diagram, comparison table

734 tests passing, zero warnings, 22MB release binary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 03:07:25 -06:00

35 lines
1,011 B
Rust

//! Search Module
//!
//! Provides high-performance search capabilities:
//! - Vector search using HNSW (USearch)
//! - Keyword search using BM25/FTS5
//! - Hybrid search with RRF fusion
//! - Temporal-aware search
//! - Reranking for precision (GOD TIER 2026)
mod hybrid;
pub mod hyde;
mod keyword;
mod reranker;
mod temporal;
mod vector;
pub use vector::{
VectorIndex, VectorIndexConfig, VectorIndexStats, VectorSearchError, DEFAULT_CONNECTIVITY,
DEFAULT_DIMENSIONS,
};
pub use keyword::{sanitize_fts5_query, KeywordSearcher};
pub use hybrid::{linear_combination, reciprocal_rank_fusion, HybridSearchConfig, HybridSearcher};
pub use temporal::TemporalSearcher;
// GOD TIER 2026: Reranking for +15-20% precision
pub use reranker::{
Reranker, RerankerConfig, RerankerError, RerankedResult,
DEFAULT_RERANK_COUNT, DEFAULT_RETRIEVAL_COUNT,
};
// v2.0: HyDE-inspired query expansion for improved semantic search
pub use hyde::{classify_intent, expand_query, centroid_embedding, QueryIntent};