Spaces:
Running
Running
reverting back
Browse files
utils/model_generation.py
CHANGED
|
@@ -21,6 +21,10 @@ PROMPT_TEMPLATES = {
|
|
| 21 |
"Output must NOT be overly concise—use complete sentences and adequate context. Target depth: medium-to-long. "
|
| 22 |
"If sentiment or coherence inputs are disabled or empty, omit those sections entirely (do not mention they were omitted)."
|
| 23 |
"Do not even write anything in sentiment and coherence if it is not available"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
),
|
| 25 |
"user_template": """
|
| 26 |
Query: {query}
|
|
@@ -28,6 +32,8 @@ Query: {query}
|
|
| 28 |
Deliverables (use the exact section headers below; omit any section whose input is empty/disabled):
|
| 29 |
1) Quoted Policy Excerpts
|
| 30 |
- Quote the necessary text and append citations like (filename p.X). Group by subtopic.
|
|
|
|
|
|
|
| 31 |
2) Sentiment Summary
|
| 32 |
- Using the Sentiment JSON, explain tone, gaps, penalties, and enforcement clarity in plain English. Do not invent fields that aren't present.
|
| 33 |
3) Coherence Assessment
|
|
|
|
| 21 |
"Output must NOT be overly concise—use complete sentences and adequate context. Target depth: medium-to-long. "
|
| 22 |
"If sentiment or coherence inputs are disabled or empty, omit those sections entirely (do not mention they were omitted)."
|
| 23 |
"Do not even write anything in sentiment and coherence if it is not available"
|
| 24 |
+
"Try to meet the user's specification as much as possible where if they only want items from a certain page only give out data from that page or if it is from a certain document please only retrieve just from that document"
|
| 25 |
+
"Order by page"
|
| 26 |
+
|
| 27 |
+
|
| 28 |
),
|
| 29 |
"user_template": """
|
| 30 |
Query: {query}
|
|
|
|
| 32 |
Deliverables (use the exact section headers below; omit any section whose input is empty/disabled):
|
| 33 |
1) Quoted Policy Excerpts
|
| 34 |
- Quote the necessary text and append citations like (filename p.X). Group by subtopic.
|
| 35 |
+
- Try to meet the user's specification as much as possible where if they only want items from a certain page only give out data from that page or if it is from a certain document please only retrieve just from that document
|
| 36 |
+
- Order by page
|
| 37 |
2) Sentiment Summary
|
| 38 |
- Using the Sentiment JSON, explain tone, gaps, penalties, and enforcement clarity in plain English. Do not invent fields that aren't present.
|
| 39 |
3) Coherence Assessment
|