agentic-rag-policy-assistant/eval/results/eval_report.json
Daniel Plank d31af95609 Switch to qwen2.5:14b on GPU (RTX 5070 Ti), fix routing regression
Once a GPU became available, switched the default model from
llama3.2:3b (CPU) to qwen2.5:14b (GPU): added an NVIDIA GPU reservation
to the ollama service in docker-compose.yml and updated the default
OLLAMA_MODEL in config.py/.env.example.

Re-running the eval surfaced a new regression: the out-of-scope
"weather" question got classified as policy_question by the new model.
Fixed by adding an explicit negative example to _CLASSIFY_PROMPT.

Archived the llama3.2:3b eval/load-test reports under
eval/results/llama3.2-3b/ and re-ran both suites against qwen2.5:14b,
documenting the comparison in the README (accuracy 11/16 -> 12/16,
~4.3x latency improvement, see sections 5.1/6.1).

Refs #13
2026-11-09 16:33:36 +01:00

198 lines
No EOL
10 KiB
JSON

{
"accuracy": 0.75,
"num_questions": 16,
"num_passed": 12,
"node_latency_ms": {
"calculate_leave": {
"count": 4,
"avg_ms": 0.0,
"max_ms": 0.0
},
"classify_intent": {
"count": 16,
"avg_ms": 3568.5,
"max_ms": 45398.0
},
"create_ticket": {
"count": 4,
"avg_ms": 14.2,
"max_ms": 20.6
},
"direct_response": {
"count": 1,
"avg_ms": 933.5,
"max_ms": 933.5
},
"rag.generate_answer": {
"count": 9,
"avg_ms": 889.8,
"max_ms": 1658.4
},
"rag.grade_relevance": {
"count": 9,
"avg_ms": 413.4,
"max_ms": 499.6
},
"rag.retrieve": {
"count": 9,
"avg_ms": 118.1,
"max_ms": 989.3
},
"rag_answer": {
"count": 9,
"avg_ms": 1423.5,
"max_ms": 3073.6
},
"synthesize_response": {
"count": 15,
"avg_ms": 1111.0,
"max_ms": 1621.8
}
},
"rows": [
{
"id": "q1",
"type": "policy_question",
"query": "What are the password and MFA requirements for corporate accounts?",
"passed": true,
"detail": "keywords found=['12 characters', 'multi-factor', 'MFA'] (looked for ['12 characters', 'multi-factor', 'MFA'])",
"total_ms": 50073.5,
"final_answer": "According to the **it_security_policy.md**, the password requirements for corporate accounts are:\n\n- Passwords must be at least 12 characters long and include upper and lower case letters, a digit, and a symbol.\n- Passwords must be rotated every 180 days and may not be reused for the previous 5 rotations.\n- Multi-factor authentication (MFA) is mandatory for all systems that access customer data. (it_security_policy.md)"
},
{
"id": "q2",
"type": "policy_question",
"query": "How many PTO days can I carry over into next year?",
"passed": true,
"detail": "keywords found=['5'] (looked for ['5', 'carryover'])",
"total_ms": 2515.6,
"final_answer": "According to the PTO policy (pto_policy.md), the maximum number of unused PTO days that you can carry over into the following year is 5 days."
},
{
"id": "q3",
"type": "policy_question",
"query": "How many days per week am I allowed to work remotely?",
"passed": true,
"detail": "keywords found=['3 days'] (looked for ['3 days'])",
"total_ms": 2630.6,
"final_answer": "According to the \"remote_work_policy.md\" file, you are allowed to work remotely up to 3 days per week, subject to your manager's approval. (remote_work_policy.md)"
},
{
"id": "q4",
"type": "policy_question",
"query": "Above what amount do I need a receipt for an expense?",
"passed": true,
"detail": "keywords found=['25 EUR'] (looked for ['25 EUR'])",
"total_ms": 2610.7,
"final_answer": "According to the expense_reimbursement_policy.md, you need a receipt for any expenses over 25 EUR."
},
{
"id": "q5",
"type": "policy_question",
"query": "Under GDPR, how quickly must the company respond to a data subject access request?",
"passed": true,
"detail": "keywords found=['30 calendar days'] (looked for ['30 calendar days', '30 days'])",
"total_ms": 2578.6,
"final_answer": "Under the GDPR, the company must respond to a data subject access request within 30 calendar days (data_protection_policy.md)."
},
{
"id": "q6",
"type": "policy_question",
"query": "What is the maximum value of a business gift I can accept according to the Code of Conduct?",
"passed": true,
"detail": "keywords found=['75 EUR'] (looked for ['75 EUR'])",
"total_ms": 2776.5,
"final_answer": "According to the Code of Conduct (code_of_conduct.md), the maximum value of a business gift that an employee may accept is 75 EUR. Gifts above this threshold must be declined or reported to the Compliance team."
},
{
"id": "q7",
"type": "leave_balance",
"query": "I was hired on 2022-01-01 and have taken 5 PTO days this year. How many days do I have left as of 2024-01-01?",
"passed": true,
"detail": "expected=37.0, actual=37.0",
"total_ms": 2295.1,
"final_answer": "As of January 1, 2024, you have 37 PTO days remaining. You were hired on January 1, 2022, and have taken 5 PTO days this year (as of 2024-01-01). For more details, you can refer to the (pto_policy.md) document."
},
{
"id": "q8",
"type": "leave_balance",
"query": "My hire date is 2023-06-15 and I haven't taken any PTO yet. What's my balance as of 2023-12-15?",
"passed": true,
"detail": "expected=10.5, actual=10.5",
"total_ms": 2548.9,
"final_answer": "As of December 15, 2023, your Paid Time Off (PTO) balance is 10.5 days. Since your hire date is June 15, 2023, and you haven't taken any PTO yet, the full 10.5 days are available for you to use. For more details, you can refer to the PTO policy outlined in (pto_policy.md)."
},
{
"id": "q9",
"type": "leave_balance",
"query": "Hired 2020-02-01, took 20 PTO days already, what's my remaining balance as of 2020-08-01?",
"passed": true,
"detail": "expected=-9.5, actual=-9.5",
"total_ms": 2584.5,
"final_answer": "As of 2020-08-01, your remaining Paid Time Off (PTO) balance is -9.5 days. This means you have used more PTO days than you have accrued so far. According to the leave calculation, you had accrued 10.5 days and have already taken 20 days. Please refer to the (pto_policy.md) for more details on PTO accrual and usage."
},
{
"id": "q10",
"type": "create_ticket",
"query": "I lost my company laptop while traveling, please open a ticket for IT.",
"passed": false,
"detail": "expected_category=it_equipment_request, ticket={'ticket_id': 'TCK-52E1B5B4', 'category': 'it', 'summary': 'Lost company laptop while traveling', 'priority': 'high', 'status': 'open', 'created_at': '2026-11-09T14:51:03.275308+00:00'}",
"total_ms": 2210.3,
"final_answer": "I've opened a support ticket for IT regarding your lost laptop while traveling. The ticket ID is TCK-52E1B5B4 and it has been categorized as high priority. Please keep this ID handy for any updates or further communication. If you need assistance with remote access or other IT support in the meantime, feel free to reach out."
},
{
"id": "q11",
"type": "create_ticket",
"query": "I'd like to confidentially report a harassment concern about a coworker.",
"passed": false,
"detail": "expected_category=hr_conduct_concern, ticket={'ticket_id': 'TCK-F4293751', 'category': 'confidential_report', 'summary': 'Harassment concern about a coworker', 'priority': 'high', 'status': 'open', 'created_at': '2026-11-09T14:51:05.550233+00:00'}",
"total_ms": 2129.1,
"final_answer": "Thank you for reaching out confidentially. I've created a support ticket for you with the ID TCK-F4293751. Our team will handle your concern with the utmost confidentiality and seriousness. If you have any further questions or need to provide additional information, please feel free to contact us."
},
{
"id": "q12",
"type": "create_ticket",
"query": "I lost the receipt for a 150 EUR client dinner, please file an expense dispute ticket.",
"passed": false,
"detail": "expected_category=finance_expense_dispute, ticket={'ticket_id': 'TCK-A8E17929', 'category': 'expense-dispute', 'summary': 'Lost receipt for 150 EUR client dinner', 'priority': 'normal', 'status': 'open', 'created_at': '2026-11-09T14:51:07.665699+00:00'}",
"total_ms": 1855.1,
"final_answer": "I've created an expense dispute ticket for you with the ID TCK-A8E17929. Our team will review your case and assist you further. If you have any additional information or questions, feel free to reach out."
},
{
"id": "q13",
"type": "compound",
"query": "What's the PTO carryover limit, and separately, I was hired on 2023-01-01 with 2 days taken - how many do I have left as of 2023-07-01?",
"passed": true,
"detail": "keywords found=['5']; expected=8.5, actual=8.5",
"total_ms": 3258.5,
"final_answer": "The maximum number of unused PTO days that you can carry over into the following year is 5 days (pto_policy.md).\n\nAs of 2023-07-01, you have taken 2 days of your PTO, leaving you with 8.5 days remaining."
},
{
"id": "q14",
"type": "compound",
"query": "How do I report a security incident, and also please open a ticket requesting VPN access for a new contractor.",
"passed": false,
"detail": "keywords found=['1 hour']; expected_category=it_access_request, ticket={'ticket_id': 'TCK-51486D6D', 'category': 'vpn_access', 'summary': \"Request for new contractor's VPN access\", 'priority': 'normal', 'status': 'open', 'created_at': '2026-11-09T14:51:14.396727+00:00'}",
"total_ms": 3909.6,
"final_answer": "To report a security incident, you should contact the Security Operations team by creating a support ticket with the category `it_security_incident` and priority `high` within 1 hour of discovering the incident (it_security_policy.md).\n\nA support ticket (TCK-51486D6D) has also been created for you to request VPN access for a new contractor."
},
{
"id": "q15",
"type": "out_of_scope",
"query": "What's the weather like today?",
"passed": true,
"detail": "routed to direct_response with no sub-task results, as expected",
"total_ms": 1260.8,
"final_answer": "Hello! I'm here to assist with internal company policies, HR questions, IT support, finance inquiries, legal matters, and calculating PTO/vacation balances. Unfortunately, I can't provide weather updates. Is there something else I can assist you with today?"
},
{
"id": "q16",
"type": "policy_question",
"query": "What's the overnight cap for that trip thing in the big cities?",
"passed": true,
"detail": "keywords found=['200 EUR'] (looked for ['200 EUR'])",
"total_ms": 2398.4,
"final_answer": "The overnight cap for trips in big cities is 200 EUR per night, according to our expense reimbursement and travel policies (expense_reimbursement_policy.md, travel_policy.md)."
}
]
}