First Commit
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ def setup_rag_system(file_path, llm, embedding_function):
|
||||
question_answer_chain = create_stuff_documents_chain(llm, prompt)
|
||||
return create_retrieval_chain(retriever, question_answer_chain)
|
||||
|
||||
def get_answer(rag_chain, user_input):
|
||||
def get_calculations(rag_chain, user_input):
|
||||
answer = rag_chain.invoke({"input": user_input})
|
||||
return answer['answer']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user