ArturG9 commited on
Commit
ffae458
·
verified ·
1 Parent(s): cded29b

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -568,7 +568,7 @@ def QA_chain(llm):
568
  )
569
 
570
  # Create and return the question-answering chain
571
- return LLMChain(prompt=prompt, llm=llm, output_parser=StrOutputParser())
572
 
573
 
574
 
 
568
  )
569
 
570
  # Create and return the question-answering chain
571
+ return rag_chain = prompt | llm | StrOutputParser()
572
 
573
 
574