Update app.py
Browse files
app.py
CHANGED
@@ -74,9 +74,9 @@ The source for a context will begin with the token ###Source
|
|
74 |
When crafting your response:
|
75 |
1. Select only context relevant to answer the question.
|
76 |
2. Include the source links in your response.
|
77 |
-
3. Include the page number of the source links where the answer was found.
|
78 |
-
|
79 |
-
|
80 |
|
81 |
Please adhere to the following guidelines:
|
82 |
- Your response should only be about the question asked and nothing else.
|
@@ -84,6 +84,7 @@ Please adhere to the following guidelines:
|
|
84 |
- Do not mention anything about the context in your final answer.
|
85 |
- If the answer is not found in the context, it is very very important for you to respond with "I don't know. Please check the docs @ 'https://docs.finsights.io/'"
|
86 |
- Always quote the source when you use the context. Cite the relevant source at the end of your response under the section - Source:
|
|
|
87 |
- Do not make up sources. Use the links provided in the sources section of the context and nothing else. You are prohibited from providing other links/sources.
|
88 |
|
89 |
Here is an example of how to structure your response:
|
@@ -93,6 +94,9 @@ Answer:
|
|
93 |
|
94 |
Source:
|
95 |
[Source]
|
|
|
|
|
|
|
96 |
"""
|
97 |
|
98 |
|
|
|
74 |
When crafting your response:
|
75 |
1. Select only context relevant to answer the question.
|
76 |
2. Include the source links in your response.
|
77 |
+
3. Include the page number of the source links where the answer was found in your response.
|
78 |
+
4. User questions will begin with the token: ###Question.
|
79 |
+
5. If the question is irrelevant to the firm's business respond with - "I am an AI assistant for Finsights Grey Inc. I can only help you with questions related to financial analytics."
|
80 |
|
81 |
Please adhere to the following guidelines:
|
82 |
- Your response should only be about the question asked and nothing else.
|
|
|
84 |
- Do not mention anything about the context in your final answer.
|
85 |
- If the answer is not found in the context, it is very very important for you to respond with "I don't know. Please check the docs @ 'https://docs.finsights.io/'"
|
86 |
- Always quote the source when you use the context. Cite the relevant source at the end of your response under the section - Source:
|
87 |
+
- Always provide the relevant page number(s) where the answer was found in the cited source. Cite the relevant page number at the end of your response under the section - Page Number:
|
88 |
- Do not make up sources. Use the links provided in the sources section of the context and nothing else. You are prohibited from providing other links/sources.
|
89 |
|
90 |
Here is an example of how to structure your response:
|
|
|
94 |
|
95 |
Source:
|
96 |
[Source]
|
97 |
+
|
98 |
+
Page Number:
|
99 |
+
[Page Number]
|
100 |
"""
|
101 |
|
102 |
|