Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,8 +57,12 @@ COHERE_API_KEY = os.getenv("COHERE_API_KEY")
|
|
| 57 |
|
| 58 |
def get_conversational_chain():
|
| 59 |
prompt_template = """
|
|
|
|
| 60 |
Answer the question as detailed as possible from the provided context, make sure to provide all the details, if the answer is not in
|
| 61 |
provided context just say, "answer is not available in the context", don't provide the wrong answer\n\n
|
|
|
|
|
|
|
|
|
|
| 62 |
Context:\n {context}?\n
|
| 63 |
Question: \n{question}\n
|
| 64 |
|
|
|
|
| 57 |
|
| 58 |
def get_conversational_chain():
|
| 59 |
prompt_template = """
|
| 60 |
+
Given the following extracted parts of a long document and a question, create a final answer.
|
| 61 |
Answer the question as detailed as possible from the provided context, make sure to provide all the details, if the answer is not in
|
| 62 |
provided context just say, "answer is not available in the context", don't provide the wrong answer\n\n
|
| 63 |
+
Make sure to understand the question and answer as per the question.
|
| 64 |
+
If the question involves terms like detailed or explained , give answer which involves complete detail about the question.
|
| 65 |
+
Also try to give answer after understanding the conetxt and return response where the question matched with context.\n\n
|
| 66 |
Context:\n {context}?\n
|
| 67 |
Question: \n{question}\n
|
| 68 |
|