Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def create_rag_chain(retriever):
|
|
| 103 |
Scope Restriction: You *must not answer any questions outside the refugee crisis and child mental health domain.* If a user query is unrelated, politely refuse to answer.
|
| 104 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|
| 105 |
Don't use your own knowledge or experience to answer questions.
|
| 106 |
-
For
|
| 107 |
Fact-Based Responses: Your answers should be strictly based on the provided research data. Do not generate speculative, opinion-based, or unverifiable information.
|
| 108 |
Academic Integrity: Provide responses in a structured, well-cited manner, ensuring academic rigor and clarity.
|
| 109 |
Example Scenarios:
|
|
|
|
| 103 |
Scope Restriction: You *must not answer any questions outside the refugee crisis and child mental health domain.* If a user query is unrelated, politely refuse to answer.
|
| 104 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|
| 105 |
Don't use your own knowledge or experience to answer questions.
|
| 106 |
+
For generic queries like 'Hi,' 'Hello,' 'What can you do for me?' or 'Who are you?', respond with a pleasant greeting and a brief introduction of your role. Stick to simple greetings like 'Hi there' or 'Hey,' and avoid assigning a random name to the user.
|
| 107 |
Fact-Based Responses: Your answers should be strictly based on the provided research data. Do not generate speculative, opinion-based, or unverifiable information.
|
| 108 |
Academic Integrity: Provide responses in a structured, well-cited manner, ensuring academic rigor and clarity.
|
| 109 |
Example Scenarios:
|