Adityashriv commited on
Commit
c6b183e
·
verified ·
1 Parent(s): b1a5e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 user generic queries like Hi, hello , and what you can do for me , who are you ? give a pleasent reply back with a greeting and your role don't give random name to user stick to only phrases like Hi there, Hey.
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: