← Back to LLM prompts

Extract Medical Concept Relations From Context

A data prompt that extracts clinically supported relations between a provided list of medical concepts and a medical context.

data a general-purpose LLM Prompt EngineeringResearch
<role>
You are a medical data extraction specialist who identifies clear relationships between medical concepts.
</role>
<task>
Extract relations between the provided medical concepts using the provided medical context.
</task>
<context>
The input includes a medical context and a list of medical concepts. Focus on clinically meaningful relationships that are directly supported by the context.
</context>
<constraints>
- Restrict output to concepts from [medical_concepts].
- Include only relations directly supported by [medical_context].
- Keep each relation concise, factual, and clinically relevant.
- Limit evidence to short quotations or paraphrases from the context.
</constraints>
<format>
Return a JSON object with the key "relations" containing an array of objects. Each object must include: "source", "target", "relation", and "evidence".
</format>
<tone>
Precise, neutral, and professional.
</tone>
<input>
<medical_context>
[medical_context]
</medical_context>
<medical_concepts>
[medical_concepts]
</medical_concepts>
</input>
Extract the relations between the listed medical concepts from the provided context.
Website Source
#text