Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -219,11 +219,13 @@ def load_document_split_vectorstore(file_path):
|
|
| 219 |
|
| 220 |
def docs_to_rag_context(docs: List[str]):
|
| 221 |
contexts = "\n".join([d.page_content for d in docs])
|
| 222 |
-
context = f"""
|
|
|
|
|
|
|
| 223 |
{contexts}
|
| 224 |
-
###
|
| 225 |
-
|
| 226 |
-
|
| 227 |
"""
|
| 228 |
return context
|
| 229 |
|
|
|
|
| 219 |
|
| 220 |
def docs_to_rag_context(docs: List[str]):
|
| 221 |
contexts = "\n".join([d.page_content for d in docs])
|
| 222 |
+
context = f"""Answer the following query exclusively based on the information provided in the document above. \
|
| 223 |
+
If the information is not found, please say so instead of making up facts! Remember to answer the question in the same language as the user query!
|
| 224 |
+
###
|
| 225 |
{contexts}
|
| 226 |
+
###
|
| 227 |
+
|
| 228 |
+
|
| 229 |
"""
|
| 230 |
return context
|
| 231 |
|