daniel-simeone commited on
Commit ·
ef690b5
1
Parent(s): f103733
update prompt
Browse files
app.py
CHANGED
|
@@ -214,7 +214,23 @@ class RAGChatbot:
|
|
| 214 |
context = "\n\n".join(context_parts)
|
| 215 |
|
| 216 |
# Build instruction-tuned prompt
|
| 217 |
-
prompt = f"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
Context:
|
| 220 |
{context}
|
|
|
|
| 214 |
context = "\n\n".join(context_parts)
|
| 215 |
|
| 216 |
# Build instruction-tuned prompt
|
| 217 |
+
prompt = f"""
|
| 218 |
+
*You are an expert assistant specializing in organic farming, in particular in Canada and its legal context.
|
| 219 |
+
Answer the user's question using only the information provided in the context.
|
| 220 |
+
If the context does not include the information needed to answer the question, clearly say:
|
| 221 |
+
"The provided context does not contain enough information to answer this question."
|
| 222 |
+
When answering:
|
| 223 |
+
|
| 224 |
+
Respond in English only.
|
| 225 |
+
Do not use outside knowledge, assumptions, or guesswork.
|
| 226 |
+
Cite or reference the specific parts of the context your answer is based on.
|
| 227 |
+
Provide concise, accurate, and helpful explanations.
|
| 228 |
+
Do not reveal your internal reasoning. Provide only the final answer.
|
| 229 |
+
|
| 230 |
+
Structure your answer in the following format:
|
| 231 |
+
Summary — A brief, high‑level answer.
|
| 232 |
+
Supporting Details — Explain using information only from the provided context.
|
| 233 |
+
Context References — Quote or cite the exact context segments that support your answer (if applicable).
|
| 234 |
|
| 235 |
Context:
|
| 236 |
{context}
|