mirror of
https://github.com/hoshikawa2/rfp_response_automation.git
synced 2026-03-06 02:10:41 +00:00
first commit
This commit is contained in:
@@ -617,16 +617,22 @@ def chat():
|
|||||||
Graph evidence:
|
Graph evidence:
|
||||||
{graph_context}
|
{graph_context}
|
||||||
|
|
||||||
Rules:
|
Decision rules:
|
||||||
- Answer ONLY with YES, NO or PARTIAL
|
- Answer ONLY with YES, NO or PARTIAL
|
||||||
- Do NOT assume anything not explicitly stated
|
- Do NOT assume anything not explicitly stated
|
||||||
- If value differs, answer PARTIAL
|
- If value differs, answer PARTIAL
|
||||||
- If not found, answer NO
|
- If not found, answer NO
|
||||||
|
|
||||||
Return ONLY valid JSON:
|
OUTPUT CONSTRAINTS (MANDATORY):
|
||||||
|
- Return ONLY a valid JSON object
|
||||||
|
- Do NOT include explanations, comments, markdown, lists, or code fences
|
||||||
|
- Do NOT write any text before or after the JSON
|
||||||
|
- The response must start with an opening curly brace and end with a closing curly brace
|
||||||
|
|
||||||
|
JSON schema (return exactly this structure):
|
||||||
{{
|
{{
|
||||||
"answer": "YES | NO | PARTIAL",
|
"answer": "YES | NO | PARTIAL",
|
||||||
"justification": "<short explanation>",
|
"justification": "<short factual explanation>",
|
||||||
"evidence": [
|
"evidence": [
|
||||||
{{
|
{{
|
||||||
"quote": "<exact text>",
|
"quote": "<exact text>",
|
||||||
@@ -763,16 +769,22 @@ Document evidence:
|
|||||||
Graph evidence:
|
Graph evidence:
|
||||||
{graph_context}
|
{graph_context}
|
||||||
|
|
||||||
Rules:
|
Decision rules:
|
||||||
- Answer ONLY with YES, NO or PARTIAL
|
- Answer ONLY with YES, NO or PARTIAL
|
||||||
- Do NOT assume anything not explicitly stated
|
- Do NOT assume anything not explicitly stated
|
||||||
- If value differs, answer PARTIAL
|
- If value differs, answer PARTIAL
|
||||||
- If not found, answer NO
|
- If not found, answer NO
|
||||||
|
|
||||||
Return ONLY valid JSON:
|
OUTPUT CONSTRAINTS (MANDATORY):
|
||||||
|
- Return ONLY a valid JSON object
|
||||||
|
- Do NOT include explanations, comments, markdown, lists, or code fences
|
||||||
|
- Do NOT write any text before or after the JSON
|
||||||
|
- The response must start with an opening curly brace and end with a closing curly brace
|
||||||
|
|
||||||
|
JSON schema (return exactly this structure):
|
||||||
{{
|
{{
|
||||||
"answer": "YES | NO | PARTIAL",
|
"answer": "YES | NO | PARTIAL",
|
||||||
"justification": "<short explanation>",
|
"justification": "<short factual explanation>",
|
||||||
"evidence": [
|
"evidence": [
|
||||||
{{
|
{{
|
||||||
"quote": "<exact text>",
|
"quote": "<exact text>",
|
||||||
|
|||||||
Reference in New Issue
Block a user