Fix prompt bugs found during live Ollama testing (llama3.2:3b) #12

Closed
opened 2026-11-04 20:40:37 +01:00 by plank · 0 comments
Owner

Two real bugs surfaced only once the system was tested against a real local model (llama3.2:3b) instead of the stub LLM used in unit tests:

  1. _CLASSIFY_PROMPT contained a literal "YYYY-MM-DD" placeholder in its JSON example, which the model echoed back verbatim, crashing the leave-balance calculator on a plain policy question. Fixed by using a concrete sample date and explicitly restricting leave_balance to messages that state a real hire date and days-taken number.
  2. _SYNTHESIZE_PROMPT didn't forbid inventing a source URL, so the model hallucinated a fake hyperlink for an internal filename citation. Fixed with an explicit instruction not to invent URLs.

Re-ran the full functional eval and load test against the live Docker Compose + Ollama stack and documented the real results in the README.

Two real bugs surfaced only once the system was tested against a real local model (`llama3.2:3b`) instead of the stub LLM used in unit tests: 1. `_CLASSIFY_PROMPT` contained a literal `"YYYY-MM-DD"` placeholder in its JSON example, which the model echoed back verbatim, crashing the leave-balance calculator on a plain policy question. Fixed by using a concrete sample date and explicitly restricting `leave_balance` to messages that state a real hire date and days-taken number. 2. `_SYNTHESIZE_PROMPT` didn't forbid inventing a source URL, so the model hallucinated a fake hyperlink for an internal filename citation. Fixed with an explicit instruction not to invent URLs. Re-ran the full functional eval and load test against the live Docker Compose + Ollama stack and documented the real results in the README.
plank closed this issue 2026-11-08 17:00:59 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PWC/agentic-rag-policy-assistant#12
No description provided.