rohit
commited on
Commit
·
89b80a1
1
Parent(s):
8bf73b1
Add few-shot examples to prompt
Browse files- app/config.py +29 -8
app/config.py
CHANGED
|
@@ -127,18 +127,39 @@ DATASET_CONFIGS = {
|
|
| 127 |
"context": "context"
|
| 128 |
},
|
| 129 |
prompt_template="""
|
| 130 |
-
You are a helpful assistant
|
| 131 |
-
Present the answer in a clear and easy-to-read format. Use bullet points for lists of items like technologies or responsibilities.
|
| 132 |
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
{% for document in documents %}
|
| 135 |
-
Question
|
| 136 |
-
Answer
|
| 137 |
-
---
|
| 138 |
{% endfor %}
|
| 139 |
|
| 140 |
-
Question
|
| 141 |
-
|
|
|
|
| 142 |
"""
|
| 143 |
),
|
| 144 |
}
|
|
|
|
| 127 |
"context": "context"
|
| 128 |
},
|
| 129 |
prompt_template="""
|
| 130 |
+
You are a helpful assistant that provides direct answers based on the provided context. Format your answers using markdown, especially for lists.
|
|
|
|
| 131 |
|
| 132 |
+
---
|
| 133 |
+
**Example 1:**
|
| 134 |
+
|
| 135 |
+
**Question:** What is your current role?
|
| 136 |
+
|
| 137 |
+
**Answer:**
|
| 138 |
+
I am a **Tech Lead at FleetEnable**, where I lead the UI development for a logistics SaaS product focused on drayage and freight management.
|
| 139 |
+
|
| 140 |
+
---
|
| 141 |
+
**Example 2:**
|
| 142 |
+
|
| 143 |
+
**Question:** What are your primary responsibilities as a Tech Lead?
|
| 144 |
+
|
| 145 |
+
**Answer:**
|
| 146 |
+
My primary responsibilities include:
|
| 147 |
+
- Leading UI development.
|
| 148 |
+
- Collaborating with product and backend teams.
|
| 149 |
+
- Helping define technical strategies.
|
| 150 |
+
- Ensuring the delivery of high-quality features.
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
**Context:**
|
| 155 |
{% for document in documents %}
|
| 156 |
+
**Question:** {{ document.meta.question }}
|
| 157 |
+
**Answer:** {{ document.content }}
|
|
|
|
| 158 |
{% endfor %}
|
| 159 |
|
| 160 |
+
**Question:** {{question}}
|
| 161 |
+
|
| 162 |
+
**Answer:**
|
| 163 |
"""
|
| 164 |
),
|
| 165 |
}
|