raghavNCI
commited on
Commit
·
1ebfe9c
1
Parent(s):
e26cf57
trigger rebuild
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 '
|
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 'Cannot answer'.\n\nContext:\n{context}\n\nQuestion: {question} [/INST]"
|
52 |
|
53 |
# result = client.text_generation(prompt, max_new_tokens=256, temperature=0.7)
|
54 |
|