Spaces:
Runtime error
Runtime error
Vincent Claes
commited on
Commit
·
373316d
1
Parent(s):
8feb1d4
format
Browse files
app.py
CHANGED
|
@@ -36,13 +36,12 @@ def process_question(question, svm_retriever=svm_retriever, vectorstore=vectorst
|
|
| 36 |
qa_chain = RetrievalQA.from_chain_type(llm, retriever=vectorstore.as_retriever(), return_source_documents=True)
|
| 37 |
result = qa_chain({"query": question})
|
| 38 |
|
| 39 |
-
output = f"""
|
| 40 |
-
============RESULT==============
|
| 41 |
\n
|
| 42 |
{result["result"]}
|
| 43 |
\n
|
| 44 |
============SOURCES=============
|
| 45 |
-
|
| 46 |
|
| 47 |
# Initialize an empty list to hold the lines
|
| 48 |
lines = []
|
|
|
|
| 36 |
qa_chain = RetrievalQA.from_chain_type(llm, retriever=vectorstore.as_retriever(), return_source_documents=True)
|
| 37 |
result = qa_chain({"query": question})
|
| 38 |
|
| 39 |
+
output = f"""============RESULT==============
|
|
|
|
| 40 |
\n
|
| 41 |
{result["result"]}
|
| 42 |
\n
|
| 43 |
============SOURCES=============
|
| 44 |
+
"""
|
| 45 |
|
| 46 |
# Initialize an empty list to hold the lines
|
| 47 |
lines = []
|