Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ def get_conversational_chain():
|
|
62 |
prompt_template = """
|
63 |
Given the following extracted parts of a long document and a question, create a final answer.
|
64 |
Answer the question as detailed as possible from the provided context, make sure to provide all the details, if the answer is not in
|
65 |
-
provided context just say, "answer is not available in the context", and then ignore the context and add the answer from your knowledge
|
|
|
66 |
Make sure to understand the question and answer as per the question.
|
67 |
If the question involves terms like detailed or explained , give answer which involves complete detail about the question.\n\n
|
68 |
Context:\n {context}?\n
|
|
|
62 |
prompt_template = """
|
63 |
Given the following extracted parts of a long document and a question, create a final answer.
|
64 |
Answer the question as detailed as possible from the provided context, make sure to provide all the details, if the answer is not in
|
65 |
+
provided context just say, "answer is not available in the context", and then ignore the context and add the answer from your knowledge like a simple llm prompt.
|
66 |
+
Try to give atleast the basic information.Donot return blank answer.\n\n
|
67 |
Make sure to understand the question and answer as per the question.
|
68 |
If the question involves terms like detailed or explained , give answer which involves complete detail about the question.\n\n
|
69 |
Context:\n {context}?\n
|