Spaces:
Paused
Paused
Upload Index.py
Browse files
Index.py
CHANGED
@@ -219,7 +219,7 @@ def _search(query, extractor, question=None):
|
|
219 |
# llm_chain = LLMChain(prompt=prompt, llm=extractor)
|
220 |
|
221 |
# return {"question": question, "answer": llm_chain.run(question)}
|
222 |
-
print(extractor([(query, _prompt(question))]))
|
223 |
return extractor([("answer", query, _prompt(question), False)])[0][1]
|
224 |
|
225 |
|
|
|
219 |
# llm_chain = LLMChain(prompt=prompt, llm=extractor)
|
220 |
|
221 |
# return {"question": question, "answer": llm_chain.run(question)}
|
222 |
+
print(extractor([("answer", query, _prompt(question), True)]))
|
223 |
return extractor([("answer", query, _prompt(question), False)])[0][1]
|
224 |
|
225 |
|