ishmeet-yo commited on
Commit
91e1530
·
verified ·
1 Parent(s): 29b9c16

Update app/llm.py

Browse files
Files changed (1) hide show
  1. 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 in a polished, well-structured way.
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
  ],