Spaces:
Sleeping
Sleeping
Commit
·
87f3e40
1
Parent(s):
2865031
Detailed explanation
Browse files- src/streamlit_app.py +11 -1
src/streamlit_app.py
CHANGED
|
@@ -53,7 +53,17 @@ if question:
|
|
| 53 |
context_text = "\n\n".join(c["text"] for c in contexts)
|
| 54 |
|
| 55 |
prompt = f"""
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
Context:
|
| 59 |
{context_text}
|
|
|
|
| 53 |
context_text = "\n\n".join(c["text"] for c in contexts)
|
| 54 |
|
| 55 |
prompt = f"""
|
| 56 |
+
You are an expert tutor.
|
| 57 |
+
|
| 58 |
+
Using ONLY the information in the context below,
|
| 59 |
+
provide a detailed and well-structured answer.
|
| 60 |
+
|
| 61 |
+
Guidelines:
|
| 62 |
+
- Explain step by step
|
| 63 |
+
- Use headings or bullet points where useful
|
| 64 |
+
- Give examples
|
| 65 |
+
- Do NOT keep the answer short
|
| 66 |
+
- If information is missing, say so clearly
|
| 67 |
|
| 68 |
Context:
|
| 69 |
{context_text}
|