Spaces:
Sleeping
Sleeping
fix: update contact link and enhance assistant response with additional contact options
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ urls = [
|
|
56 |
"https://status.law/about",
|
57 |
"https://status.law/careers",
|
58 |
"https://status.law/challenging-sanctions",
|
59 |
-
"https://status.law/contact"
|
60 |
"https://status.law/cross-border-banking-legal-issues",
|
61 |
"https://status.law/extradition-defense",
|
62 |
"https://status.law/international-prosecution-protection",
|
@@ -175,11 +175,19 @@ def main():
|
|
175 |
context_text = "\n".join([doc.page_content for doc in context])
|
176 |
|
177 |
prompt = PromptTemplate.from_template("""
|
178 |
-
You are a helpful and polite legal assistant
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
Context: {context}
|
184 |
Question: {question}
|
185 |
""")
|
|
|
56 |
"https://status.law/about",
|
57 |
"https://status.law/careers",
|
58 |
"https://status.law/challenging-sanctions",
|
59 |
+
"https://status.law/law-firm-contact-legal-protection"
|
60 |
"https://status.law/cross-border-banking-legal-issues",
|
61 |
"https://status.law/extradition-defense",
|
62 |
"https://status.law/international-prosecution-protection",
|
|
|
175 |
context_text = "\n".join([doc.page_content for doc in context])
|
176 |
|
177 |
prompt = PromptTemplate.from_template("""
|
178 |
+
You are a helpful and polite legal assistant at Status Law.
|
179 |
+
You answer in the language in which the question was asked.
|
180 |
+
Answer the question based on the context provided.
|
181 |
+
If you cannot answer based on the context, say so politely and offer to contact Status Law directly via the following channels:
|
182 |
+
- For all users: +32465594521 (landline phone).
|
183 |
+
- For English and Swedish speakers only: +46728495129 (available on WhatsApp, Telegram, Signal, IMO).
|
184 |
+
- Provide a link to the contact form: [Contact Form](https://status.law/law-firm-contact-legal-protection/).
|
185 |
+
Answer professionally but in a friendly manner.
|
186 |
+
|
187 |
+
Example:
|
188 |
+
Q: How can I challenge the sanctions?
|
189 |
+
A: To challenge the sanctions, you should consult with our legal team, who specialize in this area. Please contact us directly for detailed advice. You can fill out our contact form here: [Contact Form](https://status.law/law-firm-contact-legal-protection/).
|
190 |
+
|
191 |
Context: {context}
|
192 |
Question: {question}
|
193 |
""")
|