File size: 5,054 Bytes
c39d6e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b80a984
c39d6e0
b80a984
c39d6e0
 
b80a984
c39d6e0
b80a984
c39d6e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b80a984
c39d6e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
def generate_swanson_style_prompt(abstract_1: str, abstract_2: str) -> list:
    """
    Generates a prompt for detecting Swanson-style bridges between two papers.
    """

    messages = [
        {
            "role": "user",
            "content": f"""
You are trained to detect **Swanson-style bridges** — **intermediate concepts** that connect two papers *without direct citation links*. These bridges are:
- **Non-obvious** (not explicitly stated in either paper),
- **Interdisciplinary** (linking distinct domains),
- **Logically inferable** (i.e., can be *reasoned from context* in both papers),
- **Specific and inferential** (not vague or tautological).

---

### 🔍 What Makes a Valid Bridge Concept?

In 1986, Don Swanson discovered a bridge between **fish oil** and **Raynaud’s phenomenon** using only literature analysis. Neither paper mentioned "blood viscosity" directly, but both *implied* it:
- **Paper A**: Fish oil reduces blood thickness.
- **Paper B**: Raynaud’s involves poor blood flow.
- **Bridge Concept**: Blood viscosity (inferred from both papers).

Swanson's success was due to:
1. **Inference**: He inferred a shared mechanism not directly mentioned.
2. **Interdisciplinarity**: He linked nutrition and vascular medicine.
3. **Actionable Logic**: He created a testable hypothesis.

---

### 🧠 Critical Instructions

- **Allow inference**: If the papers *together imply* a concept — even if **neither explicitly states it** — it can serve as a bridge.
- **Reject tautological bridges**: If the only shared concept is the general domain (e.g., "Time Series Classification", "Language Models", "Signal Processing"), and no specific, inferred mechanism connects the papers, respond with [NO BRIDGE].
- **Prioritize inferential logic**: A bridge can be derived from the implications of each paper, not just what’s stated.
- **Mechanistic**: A bridge concept must connect the papers through a specific, inferred mechanism, not just a shared problem domain or methodology class.

---

### 🧪 Your Task

Consider these two papers:

**Paper 1 Abstract**:
\"\"\"
{abstract_1}
\"\"\"

**Paper 2 Abstract**:
\"\"\"
{abstract_2}
\"\"\"

**Step-by-Step Instructions**
1. **Bridge Detection**:
   - Look for a **plausible, inferable concept** that connects the papers.
   - The bridge should:
     - Be **logically implied** by both papers.
     - Be **specific** and **actionable** (e.g., a biological mechanism, a process, or a regulatory system).
     - Be **inferable from context**, not just present as a keyword.
     - Be **more specific than the domain** and **logically chainable between the papers**.

2. **Bridge Concept**:
   - Name the inferred concept (e.g., "circadian rhythm regulation").
   - Must be **specific** (not a domain like "immunology" or "neurology").

3. **Bridge Explanation**:
   - Use Swanson-style reasoning:
     - How does **Paper 1** → **Bridge Concept** logically follow?
     - How does **Bridge Concept** → **Paper 2** logically follow?

4. **Hypothesis**:
   - Propose a **testable hypothesis** based on the bridge (e.g., "Melatonin may modulate autoimmune response via circadian rhythm regulation.").

---

### ✅ Example Output (Bridge Exists)

```json
{{
    "bridge_exists": true,
    "bridge_concept": "Circadian Rhythm Regulation",
    "bridge_explanation": "Paper 1 discusses melatonin's role in regulating sleep through circadian rhythm pathways, such as BMAL1/CLOCK signaling. Paper 2 explores how immune cell differentiation (e.g., Th17 and Treg cells) is influenced by circadian rhythm disruptions. Circadian rhythm regulation serves as the inferred bridge, linking melatonin's effects on sleep to immune modulation in autoimmune disease.",
    "hypothesis": "Melatonin supplementation may reduce autoimmune activity in multiple sclerosis by modulating circadian rhythm regulation, which influences T-cell differentiation."
}}
```

---

### ❌ Example Output (No Bridge Exists)

```json
{{
    "bridge_exists": false,
    "bridge_concept": "[NO BRIDGE]",
    "bridge_explanation": "The only shared concept between the papers is a general term ('regulation'), which is not specific or inferable as a causal mechanism. No intermediate concept connects the melatonin-based sleep regulation in Paper 1 to the immune modulation in Paper 2 in a logically chainable way.",
    "hypothesis": "[NO BRIDGE]"
}}
```""",
        },
    ]

    return messages


def get_json_schema() -> str:
    """
    Returns the JSON schema for the response.
    """
    response_schema = r"""{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Generated schema for Root",
  "type": "object",
  "properties": {
    "bridge_exists": {
      "type": "boolean"
    },
    "bridge_concept": {
      "type": "string"
    },
    "bridge_explanation": {
      "type": "string"
    },
    "hypothesis": {
      "type": "string"
    }
  },
  "required": [
    "bridge_exists",
    "bridge_concept",
    "bridge_explanation",
    "hypothesis"
  ]
}"""

    return response_schema