Spaces:
Runtime error
Runtime error
Commit
•
6709c39
1
Parent(s):
d03c553
Update utils.py
Browse files
utils.py
CHANGED
@@ -209,7 +209,7 @@ def generate_answer(question) -> str:
|
|
209 |
global chat_history, gpt_3_5_index
|
210 |
gpt_3_5_chain = get_qa_chain(gpt_3_5_index)
|
211 |
result = gpt_3_5_chain(
|
212 |
-
{"question": question, "chat_history": chat_history,"vectordbkwargs": {"search_distance": 0.
|
213 |
print("REsult: " + str(result))
|
214 |
chat_history = [(question, result["answer"])]
|
215 |
sources = []
|
|
|
209 |
global chat_history, gpt_3_5_index
|
210 |
gpt_3_5_chain = get_qa_chain(gpt_3_5_index)
|
211 |
result = gpt_3_5_chain(
|
212 |
+
{"question": question, "chat_history": chat_history,"vectordbkwargs": {"search_distance": 0.4}})
|
213 |
print("REsult: " + str(result))
|
214 |
chat_history = [(question, result["answer"])]
|
215 |
sources = []
|