Spaces:
Build error
Build error
Commit History
-
fix: address CodeRabbit Phase 5 review feedback
Critical fixes: - Fix invalid model names (gpt-5.1 → gpt-4o, claude-sonnet-4-5 → claude-sonnet-4-20250514) - Add OpenAI key validation in MagenticOrchestrator with clear error message - Document Magentic mode's OpenAI-only requirement Nitpicks: - Add streaming icon to AgentEvent.to_markdown() - Use exact equality for PubMed placeholder detection - Update app.py info text for API key requirements - Add language identifiers to markdown code blocks in docsd247864 -
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(phase8): implement Report Agent for structured scientific report generation
- Introduced `ReportAgent` to generate comprehensive research reports from evidence and hypotheses. - Added `ResearchReport` model with sections for executive summary, methodology, findings, limitations, and references. - Updated MagenticOrchestrator to include ReportAgent as the final synthesis step in the workflow. - Implemented report generation flow and markdown rendering for output. - Added unit tests to ensure functionality of ReportAgent and report generation process.2763672