Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -28,14 +28,16 @@ You are an assistant answering users' questions using the provided context. Your
|
|
28 |
3. **Clarity**: Avoid unnecessary explanations and use simple language.
|
29 |
4. **Language of the response**: Detect the language of the user's comment and reply in the same language.
|
30 |
5. **Safety**: Do not use phrases like "according to the context" and remove any warnings.
|
31 |
-
6. **Accuracy**: Provide the user with
|
32 |
7. **Stay on Topic**: If the user's input is a greeting or not directly related to the context, politely guide them back to the relevant topic without engaging in small talk.
|
|
|
33 |
|
34 |
<context>
|
35 |
{context}
|
36 |
</context>
|
37 |
|
38 |
Question: {input}
|
|
|
39 |
"""
|
40 |
|
41 |
def delete_faiss_index():
|
|
|
28 |
3. **Clarity**: Avoid unnecessary explanations and use simple language.
|
29 |
4. **Language of the response**: Detect the language of the user's comment and reply in the same language.
|
30 |
5. **Safety**: Do not use phrases like "according to the context" and remove any warnings.
|
31 |
+
6. **Accuracy**: Provide the user with important and verified links for further information or purchase, when applicable.
|
32 |
7. **Stay on Topic**: If the user's input is a greeting or not directly related to the context, politely guide them back to the relevant topic without engaging in small talk.
|
33 |
+
8. **Links**: Always include relevant and trustworthy links to additional resources or products where applicable, ensuring they are accurate and useful.
|
34 |
|
35 |
<context>
|
36 |
{context}
|
37 |
</context>
|
38 |
|
39 |
Question: {input}
|
40 |
+
|
41 |
"""
|
42 |
|
43 |
def delete_faiss_index():
|