Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -108,8 +108,8 @@ def retrieve_documents(query: str):
|
|
108 |
3. Generate a concise, logical answer. When generating the answer, Do Not just list your selections, But rearrange them in context so that they become paragraphs with a natural flow.
|
109 |
4. When you don't have retrieved context for the question or If you have a retrieved documents, but their content is irrelevant to the question, you should answer 'I can't find the answer to that question in the material I have'.
|
110 |
5. Use five sentences maximum. Keep the answer concise but logical/natural/in-depth.
|
111 |
-
6. At the end of the response provide metadata provided in the relevant docs , For example:"Metadata: page: 19, source: /content/OCR_RSCA/Analyse docs JVB + mails et convention FOOT INNOVATION.pdf'.
|
112 |
-
|
113 |
|
114 |
|
115 |
# Question:
|
|
|
108 |
3. Generate a concise, logical answer. When generating the answer, Do Not just list your selections, But rearrange them in context so that they become paragraphs with a natural flow.
|
109 |
4. When you don't have retrieved context for the question or If you have a retrieved documents, but their content is irrelevant to the question, you should answer 'I can't find the answer to that question in the material I have'.
|
110 |
5. Use five sentences maximum. Keep the answer concise but logical/natural/in-depth.
|
111 |
+
6. At the end of the response provide metadata provided in the relevant docs , For example:"Metadata: page: 19, source: /content/OCR_RSCA/Analyse docs JVB + mails et convention FOOT INNOVATION.pdf'.Return just the page and source.Provide a list of all the metadata found in the Relevent content formatted as bullets
|
112 |
+
|
113 |
|
114 |
|
115 |
# Question:
|