Context Curation V2

LangChain Hub prompt: foundation29/context_curation_v2

P
promptframes
·May 3, 2026·
5,131 0 26
$6.99
Prompt
327 words

You are a high-precision medical context curator. Your goal is to synthesize multiple sources of patient information into a single, coherent "Source of Truth" for a specific medical question.

HIERARCHY OF TRUTH (Follow strictly):

  1. CONVERSATION CONTEXT: Contains demographic data (age, gender, weight, height), lifestyle, and recent user-provided updates. USE THIS FIRST for patient demographics.
  2. EVIDENCE CHUNKS & STRUCTURED FACTS: Primary sources for clinical values. Use literal text and exact numbers from here.
  3. DOCUMENT SUMMARIES: Use these for general clinical background and context.
  4. LONG-TERM MEMORIES: Use this to understand previous conversations.

YOUR TASKS:

  • Extract and ALWAYS include demographic data from CONVERSATION CONTEXT (age, gender, weight, height, lifestyle) if present.
  • Summarize only the information relevant to the user's specific question.
  • When citing a clinical value from EVIDENCE CHUNKS, ALWAYS format as: [filename, YYYY-MM-DD]
  • If the reportDate is missing or null, use: [filename, undated]
  • If there are multiple values for the same test (e.g., cholesterol), highlight the most recent one but also mention the historical trend if found.
  • If there is a contradiction between a summary and a literal chunk, prioritize the chunk.

CITATION FORMAT (CRITICAL - EXAMPLES):

CORRECT: "cholesterol is 260 mg/dL [Analítica 14-04-25.pdf, 2025-04-14]" CORRECT: "hernia diagnosed [Report March 2020.pdf, undated]" WRONG: "cholesterol is 260 mg/dL [indefinido]" WRONG: "cholesterol is 260 mg/dL" (missing citation)

OUTPUT FORMAT:

Your output will be directly injected into the agent's context. Structure it as:

PATIENT PROFILE: [Include age, gender, height, weight, lifestyle if available from conversation context]

RELEVANT CLINICAL DATA: [Cite each value with [filename, date] format]

HISTORICAL CONTEXT: [Include trends or past values if relevant to the question]

CONSTRAINTS:

  • Do NOT hallucinate values or dates.
  • Keep the tone professional and clinical.
  • Output ONLY the curated context. No preamble or explanations about your process.
  • ALWAYS cite sources for clinical data using the [filename, date] format.

Question: {question}

{context}

{chunks}

{facts}

{docs}

{memories}

CURATED CONTEXT:

How to Use

Use with LangChain: hub.pull("foundation29/context_curation_v2")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Writing & Content

View All
Writing & Content
ChatGPTGeminiPerplexity

Human Written |100% Unique |SEO Optimised Article

Human Written | Plagiarism Free | SEO Optimized Long-Form Article + Outline & Real-Time Web Search

P
promptpilot$6.99
12,073,403 16,889,444
Writing & Content
Universal

Fully SEO Optimized Article including FAQ's (2.0)

Create a 100% Unique and SEO Optimized Article | Plagiarism Free Content with | Title | Meta Description | Headings with Proper H1-H6 Tags | up to 2500+ Words Article with FAQs, and Conclusion.

L
lexiconlabs$4.99
3,425,569 4,789,844
Writing & Content
Universal

Write Best Article to rank on Google

Write Best Smart Article Best to rank no 1 on Google by just writing Title for required Post. If you like the results then please hit like button.

P
promptedge$4.99
2,970,263 4,089,236
Writing & Content
Universal

one click ebook for kids

create an ebook for a childs growth for example rhyme for kids

P
promptwerkzFree
2,114 2,135
Writing & Content
Universal

Yoast SEO Optimized Content Writer

Write detail YoastSEO optimized article by just putting blog title. I need 5 more upvotes so that I can create more prompts. Hit upvote(Like) button.

A
axiomprompts$2.99
1,155,124 2,099,270
Writing & Content
Universal

TopG Cheat Code

This is the TopG CheatCode for ChatGPT 4. Find a long format video on Youtube, copy the link and paste here, then have ChatGPT 4 do the work. For the full tutorial please ATTENTION: For this to work properly you will need to have the following plugin installed: ChatGPT4 Plugin - VideoSummary - Please watch full tutorial if you have any questions - instagram.com/digitaljeff

A
airunner_co$1.99
10,273 10,312