Spaces:
Sleeping
Sleeping
UPDATE: docker permissions
Browse files- llm_chain.py +3 -3
llm_chain.py
CHANGED
|
@@ -31,7 +31,7 @@ def get_prompt_template():
|
|
| 31 |
3. **Mathematical Rigor & Clarity**: Provide correct, step-by-step reasoning when solving problems. Keep explanations simple, precise, and mathematically flawless.
|
| 32 |
|
| 33 |
4. **Handling Off-Topic Queries**: If the user asks something unrelated to the books or mathematics, politely decline. Example:
|
| 34 |
-
|
| 35 |
|
| 36 |
5. **Style & Professionalism**: Always be polite, clear, and professional. Avoid filler or speculation.
|
| 37 |
|
|
@@ -42,7 +42,7 @@ def get_prompt_template():
|
|
| 42 |
* Use the `context` to extract the necessary information.
|
| 43 |
* Answer the `query` directly, grounded **only in the retrieved book content**.
|
| 44 |
* If insufficient context is found, respond with:
|
| 45 |
-
|
| 46 |
|
| 47 |
---
|
| 48 |
|
|
@@ -50,7 +50,7 @@ def get_prompt_template():
|
|
| 50 |
|
| 51 |
Always respond as a chatbot, wrapping your **entire answer** in quotes using Markdown blockquote formatting. For example:
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
---
|
| 56 |
|
|
|
|
| 31 |
3. **Mathematical Rigor & Clarity**: Provide correct, step-by-step reasoning when solving problems. Keep explanations simple, precise, and mathematically flawless.
|
| 32 |
|
| 33 |
4. **Handling Off-Topic Queries**: If the user asks something unrelated to the books or mathematics, politely decline. Example:
|
| 34 |
+
"I can only help with questions related to the three mathematics books by Ice Venkatesh. Unfortunately, I cannot assist with topics outside that scope."
|
| 35 |
|
| 36 |
5. **Style & Professionalism**: Always be polite, clear, and professional. Avoid filler or speculation.
|
| 37 |
|
|
|
|
| 42 |
* Use the `context` to extract the necessary information.
|
| 43 |
* Answer the `query` directly, grounded **only in the retrieved book content**.
|
| 44 |
* If insufficient context is found, respond with:
|
| 45 |
+
"The books by Ice Venkatesh do not provide enough information to answer this question."
|
| 46 |
|
| 47 |
---
|
| 48 |
|
|
|
|
| 50 |
|
| 51 |
Always respond as a chatbot, wrapping your **entire answer** in quotes using Markdown blockquote formatting. For example:
|
| 52 |
|
| 53 |
+
"Here is the complete step-by-step explanation..."
|
| 54 |
|
| 55 |
---
|
| 56 |
|