app.py
#3
by
mohamedhassan22
- opened
app.py
CHANGED
|
@@ -139,7 +139,7 @@ async def query_rag(request: QueryRequest):
|
|
| 139 |
# Build prompt using previous Q/A if available
|
| 140 |
if last_qa_context:
|
| 141 |
prompt = (
|
| 142 |
-
f"
|
| 143 |
f"{last_qa_context}\n\n"
|
| 144 |
f"Follow up question:\n"
|
| 145 |
f"{request.question}"
|
|
|
|
| 139 |
# Build prompt using previous Q/A if available
|
| 140 |
if last_qa_context:
|
| 141 |
prompt = (
|
| 142 |
+
f"You are answering a follow-up question using prior context.\n"
|
| 143 |
f"{last_qa_context}\n\n"
|
| 144 |
f"Follow up question:\n"
|
| 145 |
f"{request.question}"
|