Spaces:
Running
Running
Commit History
-
Phase 6.5 Day 1: Real Qdrant cosine scores (A1) + verification timestamp (A2)
siddhm11A1 — Feature 0 fix (qdrant_cosine_score): - recommendations.py: Switch search_by_vector() -> search_by_vector_with_scores() in both per-cluster and short-term supplement paths - Build qdrant_score_map from actual cosine scores in same pass as paper_cluster_map - Delete fake rank-decay approximation (1.0 - rank * 0.01) - Feature 0 now receives real cosines instead of synthetic linear sequence A2 — Live verification: - PHASE6-Reranker-Framing.md: Tick all 6.3 checklist items, add verification timestamp (2026-05-03: model_loaded=true, n_trees=141, fallback_active=false) Test fix: - test_integration.py: Update quota pipeline test mock from search_by_vector to search_by_vector_with_scores (returns list[dict] not list[str]) Tests: 203 passed, 0 failures3f58d41
-
Phase 6.1+6.2+6.3: Wire all 37 features into caller + health endpoint
siddhm11Phase 6.1+6.2 (feature wiring): - recommendations.py: Replace legacy 6-arg rerank_candidates() with full 37-feature call - Per-candidate cluster_importance (N,) and cluster_medoid (N,1024) from paper_cluster_map - Pre-compute is_suppressed_category and onboarding_category_match arrays - Pass qdrant_scores, user_total_saves, user_total_dismissals to reranker - Move suppression loading BEFORE rerank call (now a model feature + safety net filter) reranker.py: - compute_features() accepts per-candidate arrays (np.ndarray) for slots 23-26 - Slot 24 supports both broadcast (1D) and per-candidate (2D) medoid paths - Add is_model_loaded(), get_loaded_model_path(), get_num_trees() accessors - Add per-request feature activation logging Phase 6.3 (deployment verification): - New /healthz/reranker endpoint (app/routers/health.py) - Reports model_loaded, n_trees, feature_schema_hash, fallback_active - Wired into main.py router registration Infrastructure: - qdrant_svc.py: Add search_by_vector_wi…5856b85