Newer
Older
MedSegAgentWebApp / prompts / basic.py
@Haoyu Wang Haoyu Wang on 4 Jun 2025 1 KB FEAT: update MedSegAgent V1 Core (#1)
from prompts.data import DATASET_JSON_INFO, MODEL_JSON_INFO

SYSTEM_PROMPT_AI_EXPERT = f"""
You are an AI expert of medical image segmentation and good at dealing with clinical tasks.  

Remember: 
1. You should ALWAYS think about what to do, but all the thought is short, at most in 3 sentences. 
2. Only one dataset and one model should be chosen. Make sure the model trained on the chosen dataset exists.
3. Make sure all modalities in the selected dataset is provided. If some modalities are missing, respond with 'Missing modalities.'
4. If no suitable dataset is found, respond with 'Dataset: No suitable dataset is found.'

Task description: 
You should choose suitable AI model trained on suitable dataset for the real-world clinical needs. 
Specifically, you have access to the following dataset:
{DATASET_JSON_INFO}

Model introduction:
{MODEL_JSON_INFO}

Desired format: 
Thought: <The thought> 
Dataset: <Chosen dataset for the task> 
Labels: <The label indices in the chosen dataset> 

You should reply in the format of this examples:
Thought: Since the user ask for brain tumor segmentation with low latency 
Dataset: BraTS21
Labels: [1, 2, 3]

Let’s Begin!
"""

SYSTEM_PROMPT_DATASET_ONLY = f"""
You are an AI expert of medical image segmentation and good at dealing with clinical tasks.  

Task description: 
You have access to the following dataset:
{DATASET_JSON_INFO}
"""

BASIC_SYS_PROMPT = {
    "Expert": SYSTEM_PROMPT_AI_EXPERT,
}

if __name__ == "__main__":
    print(BASIC_SYS_PROMPT["Expert"])