Spaces:
Running
Running
Charles Grandjean commited on
Commit ·
5b90cf4
1
Parent(s): e130c6f
correct prompts
Browse files- prompts.py +7 -10
prompts.py
CHANGED
|
@@ -32,16 +32,13 @@ ERROR_HANDLING_PROMPT = """I apologize, but I encountered an issue while retriev
|
|
| 32 |
|
| 33 |
Would you like to try asking your question in a different way?"""
|
| 34 |
|
| 35 |
-
RESPONSE_FORMATTING_PROMPT = """
|
| 36 |
-
|
| 37 |
-
1. **Clear Heading**: Start with a clear, direct answer
|
| 38 |
-
2. **Legal Basis**: Reference specific articles or sections when available
|
| 39 |
-
3. **Key Points**: Use bullet points for important information
|
| 40 |
-
4. **Practical Impact**: Explain what this means for organizations
|
| 41 |
-
5. **References**: List source documents
|
| 42 |
-
6. **Disclaimer**: Include the standard legal disclaimer
|
| 43 |
|
|
|
|
| 44 |
**Content to Format:**
|
| 45 |
-
{
|
|
|
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
| 32 |
|
| 33 |
Would you like to try asking your question in a different way?"""
|
| 34 |
|
| 35 |
+
RESPONSE_FORMATTING_PROMPT = """### Task
|
| 36 |
+
We aim at answering the user's question based on your common knowledge as well as the knowledge graph context.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
### Inputs
|
| 39 |
**Content to Format:**
|
| 40 |
+
{context}
|
| 41 |
+
**User Query:** {user_query}
|
| 42 |
|
| 43 |
+
### Response format
|
| 44 |
+
Answer in clear language and provide a direct answer to the user's question."""
|