Spaces:
Build error
Build error
Commit History
-
docs: comprehensive Phase 6-8 spec revisions (Senior Architect audit)
Phase 6 (Embeddings): - Add async/executor pattern for all embedding methods - Add HuggingFace Spaces deployment notes for model caching - Update tests to be async Phase 7 (Hypothesis): - Add text utilities: truncate_at_sentence(), select_diverse_evidence() - Replace arbitrary evidence[:10] with MMR (Maximal Marginal Relevance) - Sentence-boundary-aware truncation Phase 8 (Report) - CRITICAL: - Add citation validation to prevent LLM hallucination - Add validate_references() function spec - Update SYSTEM_PROMPT with strict citation requirements - Add comprehensive citation validation tests All changes address issues identified in the "Senior Architect" audit: - Event loop blocking from sync sentence-transformers - Arbitrary truncation losing important evidence - Hallucinated citations in medical research reportsec3d7dc -
feat(phase6): implement embeddings for semantic search and deduplication
- Introduced `EmbeddingService` for handling text embeddings using ChromaDB. - Updated `SearchAgent` to utilize embeddings for deduplication and semantic search. - Enhanced the MagenticOrchestrator to support embedding-driven queries. - Added comprehensive unit tests for the new embedding functionality. - Improved search capabilities by allowing retrieval of semantically related evidence.53bf395