Spaces:
Build error
Build error
Commit History
-
fix interface
Joseph PollackUnverified signaturecb48bd4 -
ignores ci , hardens gradio select menus
Joseph PollackUnverified signature448c679 -
adds or improves : interface , tests, docs , ci , precommit , build , and demo
Joseph PollackUnverified signaturece644a9 -
demo starts , needs debugging on huggingface spaces
Joseph PollackUnverified signaturec37620b -
demo launches
Joseph PollackUnverified signature53c4c46
-
adds local embeddings and huggingface inference as defaults , adds tests , improves precommit and ci
Joseph PollackUnverified signaturecd46aca -
adds tests , integration tests , github readme , and more!
Joseph PollackUnverified signature96aa062 -
Merge branch 'dev' into feature/iterative-deep-research-workflows
TonicUnverified signaturee6c2142 -
adds the initial iterative and deep research workflows
Joseph PollackUnverified signature731a241
-
feat: implement dual-mode architecture (Simple + Advanced) (#45)
Unverified signature* docs: add dual-mode architecture specification Senior agent reviewed and approved. Key documents: - 00_SITUATION_AND_PLAN.md: Problem analysis, branch states, recommended path - 01_ARCHITECTURE_SPEC.md: Dual-mode architecture (Simple + Advanced) - 02_IMPLEMENTATION_PHASES.md: 6-phase implementation plan - 03_IMMEDIATE_ACTIONS.md: Quick reference checklist Architecture: pydantic-ai (structured outputs) + Microsoft Agent Framework (orchestration) are COMPLEMENTARY, not competing. Dual-mode allows graceful degradation to free tier when no API keys available. * docs: add follow-up review request for senior agent verification * feat: implement dual-mode architecture (Simple + Advanced) Phase 1 - Pydantic-AI Improvements (Simple Mode): - Add HuggingFace provider support in judges.py with get_model() - Add huggingface_model and hf_token config fields - Tests in test_judges_factory.py Phase 2 - Orchestrator Factory: - Implement create_orchestrator() with auto-detection logic - Simple m…b2929fc -
feat: add roadmap summary and detailed improvement plans for data sources
- Introduced new documentation files outlining the current state and future improvements for DeepCritical's data sources: PubMed, ClinicalTrials.gov, Europe PMC, and OpenAlex. - Each document includes sections on current implementation, strengths, limitations, recommended improvements, and integration opportunities. - Added a comprehensive roadmap summary to guide future maintainers and enhance project maintainability.9286db5 -
fix: repair Gradio accordion bug and cleanup env vars
- Unwrapped ChatInterface from gr.Blocks to fix settings accordion state (fixes P1_GRADIO_SETTINGS_CLEANUP). - Updated .env.example with missing variables and removed dead ones. - Updated documentation for the fix.fcc601a -
docs: update P1 bug report with actual Gradio accordion root cause
a46131e -
fix(magentic): defensive text extraction & cleanup biorxiv refs
Add _extract_text to fix ChatMessage object output bug. Update bioRxiv strings to Europe PMC. Add regression test.3bfd42c -
docs: add TDD fix plan for Magentic mode report generation
17d34a8 -
docs: replace completed bug docs with new Magentic bug report
Deleted (all implemented): - P0_ACTIONABLE_FIXES.md - P0_CRITICAL_BUGS.md - P0_MAGENTIC_AND_SEARCH_AUDIT.md - PHASE_00-03 implementation docs Added new bug report for actual issue found: - Magentic mode returns ChatMessage object instead of text - Root cause: event.message.text extraction fails - Max rounds reached before ReportAgent can synthesize OpenAI key works. Simple mode works. The bug is in how the final result event is processed.8a98024 -
refactor(tools): replace BioRxiv with Europe PMC (Phase 01)
Replaced broken BioRxivTool with EuropePMCTool which supports keyword search. Updated all agents, MCP tools, and examples to use the new tool. Deleted legacy BioRxiv implementation.2f8ae1f -
fix: exclude reference_repos from mypy and cleanup
- Add mypy exclude for reference_repos/ and examples/ to prevent scanning of local reference code that isn't part of the project - Fix string concatenation in orchestrator_magentic.py - Fix formatting in examples (spaces around operators) - Remove resolved bug documentation (001, 002, 003)0a480cb -
fix: simplify Gradio UI to fit single viewport
- Reduce header to 2 lines (title + one-line description) - Remove MCP Tools tabs UI (MCP server still active at /gradio_api/mcp/) - Simplify examples (just questions, no extra params shown) - Minimal footer with disclaimer and MCP endpoint - Remove unused mcp_tools imports from app.py This fixes the header cutoff issue in HuggingFace Spaces iframe by reducing total content to fit within standard viewport height.8dc3e50 -
chore: remove resolved bug documentation
- Delete 005_services_not_integrated.md - embeddings now wired to simple orchestrator (enable_embeddings=True is the default in orchestrator.py) - Delete 006_magentic_mode_broken.md - magentic mode is experimental/optional, documented as requiring OpenAI (not a bug)a941b78 -
fix: pin agent-framework-core and remove resolved bug doc
- Pin agent-framework-core>=1.0.0b251120,<2.0.0 to prevent breaking changes - Remove docs/bugs/007_magentic_p0_blockers.md - all issues resolved: - Issue 1 (hardcoded models): Already fixed in previous commit - Issue 2 (dependency unpinned): Fixed in this commit - Issue 3 (no free tier): Working as Designed474538c -
fix: address CodeRabbit feedback and P0 blockers
Code Fixes (HIGH priority): - Add API key/provider validation to prevent silent auth failures - Fix hardcoded manager model in orchestrator_magentic.py (now uses settings.openai_model) - Add bounds checking to JSON extraction in judges.py (prevents IndexError) - Fix fragile test assertion in test_judges_hf.py Code Quality (MEDIUM priority): - Add explicit type annotation for models_to_try: list[str] - Fix structured logging (f-string → structured params) - Align fallback query count (3 queries) between handlers Test Improvements: - Add @pytest.mark.unit decorator to TestHFInferenceJudgeHandler Documentation Sync: - Update Phase 3 docs to match actual implementation: - __init__ signature (simplified, no inline imports) - _extract_json (string split with bounds checking) - _call_with_retry (tenacity decorator, asyncio.get_running_loop()) - assess method (simplified model loop) - Update Phase 4 docs with ChatInterface additional_inputs for BYOK All 104 tests pass.f985224 -
docs: add P0 blockers documentation for Magentic mode implementation
- Introduced a new markdown document outlining critical blockers in the Magentic mode implementation. - Highlighted issues such as hardcoded OpenAI models, dependency source ambiguity, and the lack of a "Free Tier" for users. - Provided detailed impacts and required fixes for each identified issue to ensure a stable deployment. This documentation aims to facilitate resolution of critical issues and improve the overall user experience in Magentic mode.c2f7da2 -
feat: add documentation for Magentic mode bug and implementation spec
- Introduced a new bug report for Magentic mode, detailing its non-functionality and root causes. - Updated the implementation specification for Magentic integration, emphasizing the architecture, critical insights, and necessary changes for agent coordination. - Enhanced clarity on the roles of various agents and their interactions within the Magentic workflow. - Provided recommendations for fixing or abandoning the Magentic mode based on observed issues. This commit aims to improve understanding and troubleshooting of the Magentic mode within the project.fb7b8d7 -
feat: implement HFInferenceJudgeHandler for free-tier AI analysis
Replace MockJudgeHandler with real AI analysis using HuggingFace Inference API: - Add HFInferenceJudgeHandler with chat_completion API - Model fallback chain: Llama 3.1 → Mistral → Zephyr (ungated) - Robust JSON extraction (handles markdown blocks, nested braces) - Tenacity retry with exponential backoff for rate limits - Fix app.py to use HF Inference when no paid API keys present Priority: User API key → Env API key → HF Inference (free) Hackathon judges now get real AI analysis without needing API keys. Set HF_TOKEN as Space secret for best model (Llama 3.1).7fab6d4
-
fix: wire EmbeddingService to simple orchestrator + improve search quality
Major fixes: - Wire EmbeddingService to simple orchestrator for semantic deduplication (was built but not connected - see docs/bugs/005) - Expand BioRxiv stop words (~100) and require minimum 2 term matches to filter out irrelevant papers - Fix MockJudgeHandler to return honest message instead of garbage drug candidates extracted via broken heuristics The simple orchestrator now uses local sentence-transformers for semantic deduplication without requiring any API keys. Bug documentation added in docs/bugs/005_services_not_integrated.md2e4a760 -
docs: add bug report for intermittent gradio loading issues
b9919fb -
fix: resolve Gradio UI cutoff by removing fill_height=True and restructuring layout
87de5ef -
fix: move title/description into ChatInterface for proper HF Spaces layout
Root cause: gr.Markdown above gr.ChatInterface with fill_height=True causes layout competition where ChatInterface consumes all viewport space, pushing the Markdown behind the HuggingFace banner. Solution: Use ChatInterface's native title/description parameters instead of a separate gr.Markdown block. This is the Gradio-intended pattern for full-height chat layouts. Investigation documented in docs/bugs/002_gradio_ui_investigation.md998d05d -
fix: upgrade Gradio SDK to 6.0.1 and add fill_height for HF Spaces UI fix
Root cause: HuggingFace Spaces was deploying with sdk_version 5.33.0, but the UI cutoff bug (top content hidden beneath HF banner) was fixed in Gradio 5.36 via PR #11427. Changes: - README.md: sdk_version "5.33.0" → "6.0.1" (latest stable) - src/app.py: Added fill_height=True to gr.Blocks() for proper layout - docs/bugs/001_gradio_ui_cutoff.md: Full investigation documentation Fixes #31 References: - https://github.com/gradio-app/gradio/issues/11417 - https://github.com/gradio-app/gradio/pull/11427f236de1 -
chore: improve DevEx and clean up obsolete docs (#25)
Unverified signature- Add `make all` as default target (alias for check) - Add `make cov` as shorter alias for test-cov - Add `make cov-html` for HTML coverage reports - Update `make clean` to remove htmlcov/ - Remove obsolete docs/pending/ planning docs (all phases complete) - Update docs/index.md with current status (Phases 1-14 complete) - Fix broken doc links and update team sectionf632ba8 -
docs: address CodeRabbit feedback for Phase 12 PR
- Add `text` fence language to architecture diagrams (MD040) - Update roadmap directory structure (remove websearch, add clinicaltrials/biorxiv) - Mark Phase 12 as COMPLETE in roadmap - Rename test_mcp_server.py to test_mcp_tools_live.py for clarity - Update hackathon requirements with MCP implementation status - Fix async pattern in Modal integration docf9cb2b7 -
docs: update MCP server integration documentation and status
- Revised the documentation for the MCP server integration, confirming its implementation in Phase 12. - Updated the priority summary to reflect the MCP server as working and compliant with Track 2 requirements. - Enhanced testing instructions for the MCP server, including starting the server via the Gradio app and checking the MCP schema. - Documented files created during the integration, including `src/mcp_tools.py` and `src/app.py`, along with their respective functionalities. Files modified: - docs/pending/00_priority_summary.md - docs/pending/02_mcp_server_integration.mdcde8f48 -
chore: update Gradio dependency to include MCP extras and version bump
- Modified `pyproject.toml` to specify Gradio with MCP extras and updated the version to 6.0.1. - Updated `uv.lock` to reflect the new Gradio dependency structure and version. - Made minor formatting adjustments in the MCP server documentation for clarity. Files modified: - pyproject.toml - uv.lock - docs/implementation/12_phase_mcp_server.mdf5b2917 -
docs: enhance Phase 13 Modal integration documentation
- Updated the documentation to reflect the new `StatisticalAnalyzer` service, which decouples Modal execution from the `agent_framework`, ensuring no dependencies for the simple orchestrator. - Revised the flow diagrams to illustrate the integration of the `StatisticalAnalyzer` and its role in the analysis phase. - Added detailed sections on the implementation, configuration updates, and integration points for the new service. - Included unit and integration tests for the `StatisticalAnalyzer`, ensuring functionality without the `agent_framework`. - Updated demo scripts to showcase the new analysis capabilities and verification of Modal sandbox execution. Files modified: - docs/implementation/13_phase_modal_integration.md - src/services/statistical_analyzer.py - src/orchestrator.py - src/agents/analysis_agent.py - src/mcp_tools.py - examples/modal_demo/run_analysis.py - examples/modal_demo/verify_sandbox.py - tests/unit/services/test_statistical_analyzer.py - tests/integration/test_mo…0d84878 -
docs: add Phase 14 Demo Video & Hackathon Submission specification
- Created documentation for the demo video and hackathon submission process, outlining goals, requirements, and deadlines. - Included detailed specifications for the demo video format, content, and recommended tools. - Established a checklist for submission requirements, including social media posts and HuggingFace Space configuration. - Summarized prize eligibility and potential awards based on completed phases. Files added: - docs/implementation/14_phase_demo_submission.mde16b9e6 -
docs: add Phase 12 MCP Server Integration specification
- Introduced detailed documentation for the MCP server integration, outlining goals, implementation options, and technical specifications. - Created MCP tool wrappers for PubMed, ClinicalTrials, and bioRxiv, enabling compliance with Track 2 requirements. - Updated Gradio app to support MCP server functionality, including new tool interfaces. - Added unit and integration tests to ensure functionality and compliance with MCP standards. Files added: - docs/implementation/12_phase_mcp_server.md - src/mcp_tools.py - src/app.py - tests/unit/test_mcp_tools.py - tests/integration/test_mcp_server.py - Updated pyproject.toml for MCP dependenciesdd587c9 -
docs: add comprehensive hackathon documentation and integration plans
- Introduced detailed priority summaries for hackathon tasks, including deadlines and current stack status. - Documented requirements for Track 2 (MCP in Action) and outlined necessary actions for integration. - Added specific integration plans for MCP server and Modal, including implementation options and demo scripts. - Created submission checklists and prize opportunity analyses to guide project completion. Files added: - docs/pending/00_priority_summary.md - docs/pending/01_hackathon_requirements.md - docs/pending/02_mcp_server_integration.md - docs/pending/03_modal_integration.md7b20f5d -
refactor: address CodeRabbit review feedback for Mario integration
CRITICAL fix: - Centralize sandbox library versions (SANDBOX_LIBRARIES constant) - Use shared config for both Modal image and LLM prompts - Prevent version mismatch between generated code and execution MAJOR fixes: - Use run_in_executor() for blocking Modal calls in async context - Lazy initialize code executor to avoid failing on import - Remove redundant hypothesis check (unreachable code) - Simplify semantic search placeholder (dead code paths) Minor fixes: - Update docs: Docker → Modal Sandbox terminology - Fix docstring claiming ConfigurationError (only warns)cbd94a4 -
feat: Integrate Mario's Modal code execution + LlamaIndex RAG
Cherry-picked from mario-dev branch: - src/tools/code_execution.py: Modal sandbox for LLM-generated code - src/services/llamaindex_rag.py: LlamaIndex + ChromaDB RAG service - src/agents/analysis_agent.py: Statistical analysis agent - examples/modal_demo/: Demo scripts for code execution - docs/workflow-diagrams.md: Architecture documentation Dependencies added as optional [modal] group: - modal>=0.63.0, llama-index, chromadb Config additions: - MODAL_TOKEN_ID, MODAL_TOKEN_SECRET, CHROMA_DB_PATH Co-authored-by: Mario <mario@contributor>3aa91e9 -
feat: Implement Phase 10 (ClinicalTrials.gov) with requests
4e2ccbf
-
feat(docs): update implementation roadmap and add specs for Phases 9-11
- Updated the implementation roadmap to reflect the completion of Phases 1-8. - Added detailed specifications for Phase 9: Remove DuckDuckGo, Phase 10: ClinicalTrials.gov Integration, and Phase 11: bioRxiv Preprint Integration. - Enhanced the status section to indicate the completion of Phases 1-8 and readiness for Phases 9-11.3fcd8e7 -
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(architecture): update system design and roadmap for Phases 1-8
- Revised high-level design to include detailed phases and components of the Magentic system. - Introduced new agents: Magentic Manager, SearchAgent, HypothesisAgent, JudgeAgent, and ReportAgent, each with specific roles in the research process. - Updated success criteria to reflect completion of Phases 1-5 and outlined specifications for Phases 6-8. - Enhanced documentation for clarity on system architecture and agent interactions.2dc022a -
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 -
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 -
fix: add type ignore comment for Agent instantiation in JudgeHandler
Updated the Agent instantiation in JudgeHandler to include a type ignore comment, addressing type-checking issues while maintaining functionality.9760706 -
feat(phase3): implement judge slice (LLM Judge, Prompts, Models)
Implemented LLM-based Judge Agent with PydanticAI for structured output. Includes 100% test coverage and fallback mechanisms.d7e5abb -
feat(phase1): add Makefile for developer experience
- Add Makefile with standard devex commands (install, test, lint, format, typecheck, check, clean) - Update Phase 1 spec to include Makefile section - make check runs all quality gates in one command32fcf60