Spaces:
Build error
Build error
Upload utils.py
Browse files
utils.py
CHANGED
@@ -116,9 +116,7 @@ def text_lookup(data, sentence_ids):
|
|
116 |
|
117 |
def generate_prompt(query_text, context_list):
|
118 |
context = " \n\n".join(context_list)
|
119 |
-
prompt = f"""
|
120 |
-
Answer the question as truthfully as possible using the provided text.
|
121 |
-
Try to include as many key details as possible and format the answer in points.
|
122 |
|
123 |
Context:
|
124 |
{context}
|
|
|
116 |
|
117 |
def generate_prompt(query_text, context_list):
|
118 |
context = " \n\n".join(context_list)
|
119 |
+
prompt = f"""Answer the question as truthfully as possible using the provided text. Try to include as many key details as possible and format the answer in points.
|
|
|
|
|
120 |
|
121 |
Context:
|
122 |
{context}
|