ramshashaikh commited on
Commit ·
32afc1c
1
Parent(s): b5a262d
Changed GPT prompt
Browse files- operations.py +1 -1
operations.py
CHANGED
|
@@ -170,7 +170,7 @@ def fetch_most_relevant(indexes_final, concat_list, list1, query):
|
|
| 170 |
# Useful diagnostic information
|
| 171 |
print(f"Selected {len(chosen_sections)} document sections:")
|
| 172 |
|
| 173 |
-
header = """Answer the question as
|
| 174 |
|
| 175 |
# print(query)
|
| 176 |
prompt = header + "".join(chosen_sections) + "\n\n Q: " + query + "\n A:"
|
|
|
|
| 170 |
# Useful diagnostic information
|
| 171 |
print(f"Selected {len(chosen_sections)} document sections:")
|
| 172 |
|
| 173 |
+
header = """Answer the question as a human in natural language conversation using the provided context, and if the answer is not contained within the text below, say "I don't have that information"\n\nContext:\n"""
|
| 174 |
|
| 175 |
# print(query)
|
| 176 |
prompt = header + "".join(chosen_sections) + "\n\n Q: " + query + "\n A:"
|