Spaces:
Running
on
Zero
Running
on
Zero
Y Phung Nguyen
commited on
Commit
·
4f59c32
1
Parent(s):
590a3e5
Lower MAX_SUBTASKS
Browse files- README.md +2 -1
- supervisor.py +1 -1
README.md
CHANGED
|
@@ -17,7 +17,7 @@ tags:
|
|
| 17 |
---
|
| 18 |
|
| 19 |
[Demo](https://huggingface.co/spaces/MCP-1st-Birthday/MedLLM-Agent)
|
| 20 |
-
|
| 21 |
|
| 22 |
# 🩺 MedLLM Agent
|
| 23 |
|
|
@@ -79,6 +79,7 @@ Sample [conversation](sample.md) between MAC-system and patient are recorded.
|
|
| 79 |
- **MedSwin Specialist**: Executes tasks sequentially, providing concise clinical answers
|
| 80 |
- **Enhanced Synthesis**: Supervisor synthesizes all MedSwin responses with clear context into comprehensive final answers
|
| 81 |
- **Iterative Improvement**: Supervisor challenges and enhances answers until confirmed optimal (up to 2 iterations)
|
|
|
|
| 82 |
- **Search Mode**: Gemini creates 1-4 search strategies → executes ddgs searches (1-2 sources each) → summarizes briefly
|
| 83 |
- **Conditional Search Trigger**: When search mode enabled, supervisor can trigger additional searches if answer is unclear or has gaps
|
| 84 |
- **RAG Mode**: Gemini brainstorms retrieved documents into 1-4 short contexts for MedSwin decision-making
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
[Demo](https://huggingface.co/spaces/MCP-1st-Birthday/MedLLM-Agent)
|
| 20 |
+
[LinkedIn Post](https://www.linkedin.com/posts/dang-khoa-le-96a6332a8_medllm-agent-a-hugging-face-space-by-mcp-activity-7396162709618225152-WSt4?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAAEoh1KIB2Np4-PEynHrT7uchKFL5ByBIpio)
|
| 21 |
|
| 22 |
# 🩺 MedLLM Agent
|
| 23 |
|
|
|
|
| 79 |
- **MedSwin Specialist**: Executes tasks sequentially, providing concise clinical answers
|
| 80 |
- **Enhanced Synthesis**: Supervisor synthesizes all MedSwin responses with clear context into comprehensive final answers
|
| 81 |
- **Iterative Improvement**: Supervisor challenges and enhances answers until confirmed optimal (up to 2 iterations)
|
| 82 |
+
- **History-Aware Follow-Ups**: In agentic modes, Gemini uses the last assistant answer when breaking down follow-up queries (e.g., "clarify your answer") so subtasks stay grounded in prior responses
|
| 83 |
- **Search Mode**: Gemini creates 1-4 search strategies → executes ddgs searches (1-2 sources each) → summarizes briefly
|
| 84 |
- **Conditional Search Trigger**: When search mode enabled, supervisor can trigger additional searches if answer is unclear or has gaps
|
| 85 |
- **RAG Mode**: Gemini brainstorms retrieved documents into 1-4 short contexts for MedSwin decision-making
|
supervisor.py
CHANGED
|
@@ -9,7 +9,7 @@ from config import GEMINI_MODEL, GEMINI_MODEL_LITE
|
|
| 9 |
from utils import format_prompt_manually
|
| 10 |
|
| 11 |
# Maximum number of subtasks for query breakdown
|
| 12 |
-
MAX_SUBTASKS =
|
| 13 |
# Maximum number of search strategies
|
| 14 |
MAX_SEARCH_STRATEGIES = 3
|
| 15 |
|
|
|
|
| 9 |
from utils import format_prompt_manually
|
| 10 |
|
| 11 |
# Maximum number of subtasks for query breakdown
|
| 12 |
+
MAX_SUBTASKS = 3
|
| 13 |
# Maximum number of search strategies
|
| 14 |
MAX_SEARCH_STRATEGIES = 3
|
| 15 |
|