Martechsol commited on
Commit ·
b8928f4
1
Parent(s): b02cb86
Deploy RAG Chatbot to Hugging Face Spaces
Browse files- app/services/llm.py +0 -1
- push_to_hf.bat +22 -0
app/services/llm.py
CHANGED
|
@@ -81,7 +81,6 @@ You think like an expert HR consultant, not a keyword matcher. When Expert Data
|
|
| 81 |
✦ REASON FROM POLICY: If Expert Data contains a rule or process that answers the user's question — even indirectly — explain it clearly. Do NOT say "I don't have that information" when the answer CAN be reasoned from the provided data.
|
| 82 |
|
| 83 |
✦ ELIGIBILITY BRIDGE: If a policy is for "female employees", explicitly inform male users they are not eligible but proactively suggest relevant alternatives (e.g., Paternity Leave).
|
| 84 |
-
✦ PROBATION & LEAVES: Employees in their probation/initial evaluation period are NOT entitled to any paid leaves. Any leave taken during probation is strictly UNPAID (Absent Without Pay). If a user on probation asks if their leave will be paid, explicitly tell them it will be UNPAID.
|
| 85 |
✦ MANAGEMENT RIGHTS: Unless a policy states otherwise, assume Management/HR has the final authority to reject, approve, or revoke any request based on business needs.
|
| 86 |
✦ POLICY APPLICATION: If a user asks for something exceeding a limit (e.g., "2 months salary advance" when limit is 1 month), explicitly state the limit and deny.
|
| 87 |
✦ SITUATIONAL "WHAT IF": If a user asks about consequences (e.g., "not informing HR"), explain the penalty or policy violation mentioned in the context.
|
|
|
|
| 81 |
✦ REASON FROM POLICY: If Expert Data contains a rule or process that answers the user's question — even indirectly — explain it clearly. Do NOT say "I don't have that information" when the answer CAN be reasoned from the provided data.
|
| 82 |
|
| 83 |
✦ ELIGIBILITY BRIDGE: If a policy is for "female employees", explicitly inform male users they are not eligible but proactively suggest relevant alternatives (e.g., Paternity Leave).
|
|
|
|
| 84 |
✦ MANAGEMENT RIGHTS: Unless a policy states otherwise, assume Management/HR has the final authority to reject, approve, or revoke any request based on business needs.
|
| 85 |
✦ POLICY APPLICATION: If a user asks for something exceeding a limit (e.g., "2 months salary advance" when limit is 1 month), explicitly state the limit and deny.
|
| 86 |
✦ SITUATIONAL "WHAT IF": If a user asks about consequences (e.g., "not informing HR"), explain the penalty or policy violation mentioned in the context.
|
push_to_hf.bat
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
echo ===================================================
|
| 3 |
+
echo Hugging Face Push Utility
|
| 4 |
+
echo ===================================================
|
| 5 |
+
cd /d "%~dp0"
|
| 6 |
+
echo.
|
| 7 |
+
echo Staging changes...
|
| 8 |
+
git add .
|
| 9 |
+
echo.
|
| 10 |
+
echo Committing changes...
|
| 11 |
+
git commit -m "Deploy RAG Chatbot to Hugging Face Spaces"
|
| 12 |
+
echo.
|
| 13 |
+
echo Setting Hugging Face remote...
|
| 14 |
+
git remote remove hf 2>nul
|
| 15 |
+
git remote add hf https://huggingface.co/spaces/joedown11/chatbot21
|
| 16 |
+
echo.
|
| 17 |
+
echo Pushing to Hugging Face repository (Overwriting previous)...
|
| 18 |
+
git push -u hf main --force || git push -u hf master --force
|
| 19 |
+
echo.
|
| 20 |
+
echo ===================================================
|
| 21 |
+
echo Done! Press any key to exit.
|
| 22 |
+
pause
|