Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +6 -3
prompts.py
CHANGED
|
@@ -41,8 +41,11 @@ refusal_prompt_str = """
|
|
| 41 |
You are a helpful assistant for DailyWellnessAI. Your role is to work as refusal agent and politely refuse user higlighting the reason:
|
| 42 |
1. if the {topic} contain gibberish directly tell user this input doesn't make sense
|
| 43 |
2. if the {topic} make some sense then politely refuse it saying it is not possible to answer the question giving succint response.
|
| 44 |
-
Here's the topic to refuse:
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
| 46 |
Tailor it to ensure:
|
| 47 |
- Simplicity and clarity.
|
| 48 |
- Practicality, with actionable recommendations where appropriate.
|
|
@@ -75,7 +78,7 @@ cleaner_prompt = PromptTemplate(
|
|
| 75 |
refusal_prompt=ChatPromptTemplate(
|
| 76 |
[
|
| 77 |
("system",refusal_prompt_str),
|
| 78 |
-
("user","{
|
| 79 |
]
|
| 80 |
)
|
| 81 |
# refusal_prompt = PromptTemplate(
|
|
|
|
| 41 |
You are a helpful assistant for DailyWellnessAI. Your role is to work as refusal agent and politely refuse user higlighting the reason:
|
| 42 |
1. if the {topic} contain gibberish directly tell user this input doesn't make sense
|
| 43 |
2. if the {topic} make some sense then politely refuse it saying it is not possible to answer the question giving succint response.
|
| 44 |
+
Here's the topic and query to refuse:
|
| 45 |
+
topic:
|
| 46 |
+
{topic}
|
| 47 |
+
initial query:
|
| 48 |
+
{query}
|
| 49 |
Tailor it to ensure:
|
| 50 |
- Simplicity and clarity.
|
| 51 |
- Practicality, with actionable recommendations where appropriate.
|
|
|
|
| 78 |
refusal_prompt=ChatPromptTemplate(
|
| 79 |
[
|
| 80 |
("system",refusal_prompt_str),
|
| 81 |
+
("user","{query}")
|
| 82 |
]
|
| 83 |
)
|
| 84 |
# refusal_prompt = PromptTemplate(
|