Spaces:
Sleeping
Sleeping
Update backend/main.py
Browse files- backend/main.py +62 -0
backend/main.py
CHANGED
|
@@ -64,6 +64,68 @@ Return ONLY valid JSON:
|
|
| 64 |
|
| 65 |
COMPARISON_SYSTEM = """You are an expert in bioengineering reproducibility and experimental methodology.
|
| 66 |
Compare protocols from multiple research papers and identify ALL methodological contradictions. Always preserve context.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
Return ONLY valid JSON (no markdown fences, no extra text) using this schema:
|
| 68 |
{
|
| 69 |
"protocol_type": "detected protocol type",
|
|
|
|
| 64 |
|
| 65 |
COMPARISON_SYSTEM = """You are an expert in bioengineering reproducibility and experimental methodology.
|
| 66 |
Compare protocols from multiple research papers and identify ALL methodological contradictions. Always preserve context.
|
| 67 |
+
SEVERITY ASSIGNMENT MUST FOLLOW THE RULES BELOW.
|
| 68 |
+
|
| 69 |
+
Do NOT decide severity based on subjective judgment.
|
| 70 |
+
|
| 71 |
+
Always determine severity using the predefined parameter hierarchy.
|
| 72 |
+
|
| 73 |
+
If a parameter appears in the hierarchy below, assign the corresponding severity level.
|
| 74 |
+
|
| 75 |
+
If multiple rules apply, assign the highest severity.
|
| 76 |
+
|
| 77 |
+
If a parameter is not listed, assign LOW severity by default.
|
| 78 |
+
|
| 79 |
+
PARAMETER SEVERITY HIERARCHY
|
| 80 |
+
|
| 81 |
+
HIGH SEVERITY — Directly affects experimental outcome or biological behavior
|
| 82 |
+
|
| 83 |
+
Assign HIGH severity if contradiction involves:
|
| 84 |
+
|
| 85 |
+
- cell line identity or organism
|
| 86 |
+
- incubation temperature
|
| 87 |
+
- antibiotic or drug concentration
|
| 88 |
+
- enzyme concentration
|
| 89 |
+
- transfection conditions
|
| 90 |
+
- MOI (multiplicity of infection)
|
| 91 |
+
- centrifugation speed
|
| 92 |
+
- incubation duration
|
| 93 |
+
- buffer composition
|
| 94 |
+
- pH
|
| 95 |
+
- reagent concentration
|
| 96 |
+
- sample storage conditions
|
| 97 |
+
- reaction volume
|
| 98 |
+
- PCR cycle conditions
|
| 99 |
+
|
| 100 |
+
These parameters directly impact reproducibility or experimental success.
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
MEDIUM SEVERITY — Affects efficiency, yield, or data quality
|
| 104 |
+
|
| 105 |
+
Assign MEDIUM severity if contradiction involves:
|
| 106 |
+
|
| 107 |
+
- incubation time variations within acceptable ranges
|
| 108 |
+
- reagent vendor differences
|
| 109 |
+
- equipment model differences
|
| 110 |
+
- washing conditions
|
| 111 |
+
- dilution ratios
|
| 112 |
+
- culture media composition
|
| 113 |
+
- cell density
|
| 114 |
+
- mixing speed
|
| 115 |
+
- incubation environment (shaking/static)
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
LOW SEVERITY — Minor procedural or documentation differences
|
| 119 |
+
|
| 120 |
+
Assign LOW severity if contradiction involves:
|
| 121 |
+
|
| 122 |
+
- equipment brand differences
|
| 123 |
+
- container type
|
| 124 |
+
- labeling differences
|
| 125 |
+
- formatting differences
|
| 126 |
+
- reporting style differences
|
| 127 |
+
- minor descriptive variations
|
| 128 |
+
|
| 129 |
Return ONLY valid JSON (no markdown fences, no extra text) using this schema:
|
| 130 |
{
|
| 131 |
"protocol_type": "detected protocol type",
|