Update app.py
Browse files
app.py
CHANGED
|
@@ -38,10 +38,12 @@ def respond(
|
|
| 38 |
else:
|
| 39 |
message = message + "\nUse the following jurisprudence case to answer " + documents[0].page_content + "\n Give the following url " + documents[0].metadata["case_url"]
|
| 40 |
"""
|
|
|
|
|
|
|
| 41 |
|
| 42 |
message = f"""
|
| 43 |
The user is asking for information about the following: {message}.
|
| 44 |
-
Answer him in his own language using the information from the following link and mention this link: {
|
| 45 |
|
| 46 |
"""
|
| 47 |
|
|
|
|
| 38 |
else:
|
| 39 |
message = message + "\nUse the following jurisprudence case to answer " + documents[0].page_content + "\n Give the following url " + documents[0].metadata["case_url"]
|
| 40 |
"""
|
| 41 |
+
|
| 42 |
+
spacer = " \n "
|
| 43 |
|
| 44 |
message = f"""
|
| 45 |
The user is asking for information about the following: {message}.
|
| 46 |
+
Answer him in his own language using the information from the following link and mention this link: {spacer.join(doc.metadata["case_url"] for doc in documents)}
|
| 47 |
|
| 48 |
"""
|
| 49 |
|