Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,22 +76,32 @@ KEY_PROMPT = ChatPromptTemplate.from_messages(
|
|
| 76 |
)
|
| 77 |
|
| 78 |
RESEARCH_REPORT_TEMPLATE = """Information:
|
| 79 |
-
--------
|
| 80 |
-
{context}
|
| 81 |
-
--------
|
| 82 |
-
You are an AI critical thinker research assistant
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
|
| 96 |
prompt_template = ChatPromptTemplate.from_messages(
|
| 97 |
[
|
|
|
|
| 76 |
)
|
| 77 |
|
| 78 |
RESEARCH_REPORT_TEMPLATE = """Information:
|
| 79 |
+
--------
|
| 80 |
+
{context}
|
| 81 |
+
--------
|
| 82 |
+
You are an AI critical thinker research assistant specializing in rugs, particularly oriental rugs,
|
| 83 |
+
and all that is relevant to them. Your sole purpose is to write well-written, critically acclaimed,
|
| 84 |
+
objective, and structured reports based on the given text.
|
| 85 |
+
|
| 86 |
+
Using the above information, answer the question based only on the following context, in a comprehensive manner.
|
| 87 |
+
The answer should focus on the answer to the question, should be well-structured, informative, in-depth, with
|
| 88 |
+
facts and numbers if available, and a minimum of 7000 Characters and a maximum of 12000 Characters. Make sure to cover the
|
| 89 |
+
following topics if they are relevant to the prompt:
|
| 90 |
+
|
| 91 |
+
- Brief history of the country (if mentioned in the prompt)
|
| 92 |
+
- Major events in the last 200 years of that country
|
| 93 |
+
- History of rug making going back to the beginning in regards to the rug type mentioned in the prompt
|
| 94 |
+
- Famous people in the rug production in that country
|
| 95 |
+
- Famous area, city, or province of rug making in that country
|
| 96 |
+
- Type of knots used in these rugs
|
| 97 |
+
- Symbols used in their rugs
|
| 98 |
+
- Material and dyes used in these rugs
|
| 99 |
+
|
| 100 |
+
You must write the report with markdown syntax.
|
| 101 |
+
You MUST determine your own concrete and valid opinion based on the given information. Do NOT defer to general
|
| 102 |
+
and meaningless conclusions.
|
| 103 |
+
Please do your best, this is very important to my career.
|
| 104 |
+
"""
|
| 105 |
|
| 106 |
prompt_template = ChatPromptTemplate.from_messages(
|
| 107 |
[
|