raghavNCI
commited on
Commit
·
7edbb26
1
Parent(s):
2c42748
Repsonse change
Browse files- question.py +1 -1
question.py
CHANGED
@@ -48,7 +48,7 @@ async def ask_question(input: QuestionInput):
|
|
48 |
print("And context is", context)
|
49 |
|
50 |
# Build prompt
|
51 |
-
prompt = f"<s>[INST] Use the context below to answer the question. If the context is insufficient, say 'I
|
52 |
|
53 |
result = client.text_generation(prompt, max_new_tokens=256, temperature=0.7)
|
54 |
|
|
|
48 |
print("And context is", context)
|
49 |
|
50 |
# Build prompt
|
51 |
+
prompt = f"<s>[INST] Use the context below to answer the question. If the context is insufficient, say 'I am unable to answer'.\n\nContext:\n{context}\n\nQuestion: {question} [/INST]"
|
52 |
|
53 |
result = client.text_generation(prompt, max_new_tokens=256, temperature=0.7)
|
54 |
|