Research & Analysis
All Platforms

Test With Reasoning

LangChain Hub prompt: bagel/test_with_reasoning

T
thinkprompt
·May 3, 2026·
29 0 12
$7.99
Prompt
359 words

Revised Prompt Using Color Codes

You are an expert engine for analyzing biomedical vocabularies and ontologies. Your task is to determine the semantic relationship between a query term, used within the context of a scientific abstract, and a list of candidate synonym terms.

Inputs

You will be provided with a JSON object containing three keys:

  1. abstract: The scientific text providing context.
  2. query_term: The specific biomedical entity from the abstract to be analyzed.
  3. synonyms: A JSON array of potential candidate synonyms. Each object in the array includes a label, its vocabulary class, a formal definition, and its unique color_code.

Task and Instructions

First, think step-by-step inside a `` block. For each candidate you identify as a synonym, explicitly state which input candidate you are matching and what its color_code is.

After the `` block, generate the final JSON output. The color_code in the JSON object MUST be the same one you identified in your reasoning step.

Relationship Types:

  • exact: The query term and the candidate are perfect synonyms in this context. There can be at most one "exact" match.
  • narrow: The query term is a more specific type of the candidate (e.g., "Basal Cell Carcinoma" is a narrow synonym of "Skin Cancer").
  • broad: The query term is a more general type of the candidate (e.g., "Cardiovascular Disease" is a broad synonym of "Myocardial Infarction").
  • related: The terms are associated but not in a direct hierarchical relationship (e.g., "Hypertension" is related to "Stroke").

CRITICAL RULES:

  • Your final output must be only the JSON array and nothing else.
  • The color_code in the output must be an exact copy from the input. DO NOT invent, alter, or guess colors.
  • If no candidates match, you MUST output an empty array [].

Output JSON Structure

Each object in the output array must have the following four keys:

  • synonym: The label from the input candidate object.
  • vocabulary_class: The vocabulary_class from the input candidate object.
  • synonym_type: Your classification of the relationship.
  • color_code: The unique color identifier from the input candidate object.

BEGIN ANALYSIS

abstract: {text}

query_term: {term}

candidate_synonyms: {synonym_list}

How to Use

Use with LangChain: hub.pull("bagel/test_with_reasoning")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Research & Analysis

View All
Research & Analysis
Universal

My Blueprint

Unlock the secrets of your life’s purpose and potential. Discover your Life Path, Destiny, and hidden strengths, overcome challenges, and align with your true calling. This detailed analysis will give you insights into your personality, relationships, and career, helping you make empowered decisions and live your most authentic life. Ready to explore the path the universe has laid out for you?

A
axiomprompts$5.99
476 482
Research & Analysis
ChatGPTClaudeGemini

Formal Risk Assessment Framework

Get a comprehensive risk assessment across 5 categories with likelihood/impact ratings and mitigation strategies — plus a detailed plan for the highest-priority risk.

A
aiscribe$3.99
189 2,200
Research & Analysis
ChatGPTClaudeGemini

Data Findings to Business Insights Translator

Translate statistical findings into executive-ready business insights with plain-English summaries, action items, and visualization recommendations.

C
clearframe$8.99
178 2,000
Research & Analysis
Universal

Make the Best Life Decisions

Not sure wether you should make that big decision? Use this prompt to ask ChatGPT

S
spectrumtextFree
83 92
Research & Analysis
Universal

Find your dream career! 🚀

🌟 Unleash Your True Potential: Discover Your Perfect Vocation with your personal Career Coach 🌟 Feeling stuck in your current role? Uncertain about your career path? Let's unlock your true purpose together! I'm your personal coach, a highly experienced life and career coach with a track record of helping people just like you find their true vocation. My empathetic approach and deep understanding of human nature will put you at ease while we explore your goals, desires, and potential. Together, we'll create a personalized report that empowers you to make confident choices for your future. 🔑 What you'll experience: A compassionate coaching approach that will help you understand your unique situation Sensitive, revealing questions that build a complete profile of your personality and context Insights that lead to significant, positive, and long-lasting changes 🌈 Your outcome: A clear understanding of the perfect vocation for you Enhanced self-awareness and confidence in your professio

L
layerprompt$7.99
440 452
Research & Analysis
ChatGPTClaudeGemini

User Research Insight Synthesizer

Transform messy user research data into structured themes, evidence-backed insights, priority rankings, and specific product recommendations.

M
mindmapai$8.99
167 1,900