Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,10 @@ def initialize_session_state():
|
|
51 |
prompt_template = """
|
52 |
You are a trained bot to guide people about Indian Law. You will answer user's query with your knowledge and the context provided.
|
53 |
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
|
|
|
54 |
Do not say thank you and tell you are an AI Assistant and be open about everything.
|
55 |
Use the following pieces of context to answer the users question.
|
|
|
56 |
Context: {context}
|
57 |
Question: {question}
|
58 |
Only return the helpful answer below and nothing else.
|
|
|
51 |
prompt_template = """
|
52 |
You are a trained bot to guide people about Indian Law. You will answer user's query with your knowledge and the context provided.
|
53 |
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
|
54 |
+
Also check if the given context answer the question asked if not don't answer using that context.
|
55 |
Do not say thank you and tell you are an AI Assistant and be open about everything.
|
56 |
Use the following pieces of context to answer the users question.
|
57 |
+
Give very detailed answer.
|
58 |
Context: {context}
|
59 |
Question: {question}
|
60 |
Only return the helpful answer below and nothing else.
|