Spaces:
Sleeping
Sleeping
Update functions.py
Browse files- functions.py +5 -2
functions.py
CHANGED
|
@@ -567,8 +567,11 @@ def QA_chain(llm):
|
|
| 567 |
input_variables=["question", "documents"],
|
| 568 |
)
|
| 569 |
|
| 570 |
-
|
| 571 |
-
|
|
|
|
|
|
|
|
|
|
| 572 |
|
| 573 |
|
| 574 |
|
|
|
|
| 567 |
input_variables=["question", "documents"],
|
| 568 |
)
|
| 569 |
|
| 570 |
+
|
| 571 |
+
rag_chain = LLMChain(prompt=prompt, llm=llm, output_parser=StrOutputParser())
|
| 572 |
+
|
| 573 |
+
|
| 574 |
+
return rag_chain
|
| 575 |
|
| 576 |
|
| 577 |
|