Spaces:
Running
Running
Update app/llm.py
Browse files- app/llm.py +3 -3
app/llm.py
CHANGED
|
@@ -19,12 +19,12 @@ def generate_answer(context: str, query: str) -> str:
|
|
| 19 |
{
|
| 20 |
"role": "system",
|
| 21 |
"content": (
|
| 22 |
-
"You are a Harry Potter knowledge assistant.
|
| 23 |
|
| 24 |
Answer the question concisely in 2–3 sentences.
|
| 25 |
Do not use bullet points.
|
| 26 |
Do not add extra background.
|
| 27 |
-
Be clear and direct."
|
| 28 |
),
|
| 29 |
},
|
| 30 |
{
|
|
@@ -35,7 +35,7 @@ def generate_answer(context: str, query: str) -> str:
|
|
| 35 |
Question:
|
| 36 |
{query}
|
| 37 |
|
| 38 |
-
Answer
|
| 39 |
""",
|
| 40 |
},
|
| 41 |
],
|
|
|
|
| 19 |
{
|
| 20 |
"role": "system",
|
| 21 |
"content": (
|
| 22 |
+
"""You are a Harry Potter knowledge assistant.
|
| 23 |
|
| 24 |
Answer the question concisely in 2–3 sentences.
|
| 25 |
Do not use bullet points.
|
| 26 |
Do not add extra background.
|
| 27 |
+
Be clear and direct."""
|
| 28 |
),
|
| 29 |
},
|
| 30 |
{
|
|
|
|
| 35 |
Question:
|
| 36 |
{query}
|
| 37 |
|
| 38 |
+
Answer:
|
| 39 |
""",
|
| 40 |
},
|
| 41 |
],
|