test2 / app /services /llm.py

Commit History

fix: response quality improvements and injection sanitization
0ce2ae3

joedown11 commited on

Switch org query handling from hardcoded dict to intent-based reasoning
ad822cb

joedown11 commited on

Add indirect org query reasoning to LLM prompt
96daccf

joedown11 commited on

Add new management personnel to LLM prompt
ea7792a

joedown11 commited on

Update system prompt with leadership names and update URLs for testing space
3183bbf

joedown11 commited on

fix: strengthen FORMAT C-SUMMARY (forbidden headings + wrong example) + add 'I want leave' → FORMAT D
bcc366e

joedown11 commited on

feat: LLM-based confirmation intent + rotating handover prompts
0ce46fa

joedown11 commited on

chore: update llm.py - expanded FORMAT table, C-SUMMARY/C-PROCEDURE split, PROCESS/PROCEDURE rule
945c829

joedown11 commited on

Integrate RAG v1.2 admin panel and handoff features
84160f5

joedown11 commited on

Update addon.html: replaced FAB close button with top bar minimize button
70cefa5

Martechsol commited on

Enforce strict rule: all leaves taken during probation are unpaid
b02cb86

Martechsol commited on

Fix intent map: compound keywords, follow-up starters, prorata robustness
a045fe5

Martechsol commited on

Fix prorata and single-word HR term retrieval robustness
f117eae

Martechsol commited on

Fix inconsistent leave and per-annum responses
c1ad2c8

Martechsol commited on

Update RAG application
ac72e99

Martechsol commited on

Update system prompt to handle 'ok' and 'okay' with a shorter acknowledgment
e1cb4cc

Martechsol commited on

Update LLM system prompt: Add FORMAT E for structured multi-level topics
afb4b4d

Martechsol commited on

Replace all em dashes with hyphens in llm.py
3995f24

Martechsol commited on

Fix acceptability retrieval; shorten redirect responses
17cf569

Martechsol commited on

Fix retrieval for prorata queries
cbad467

Martechsol commited on

Improve bot: self-identity, non-English redirect, privacy-tone for personal data, no hallucination on people/org, varied fallbacks
fdb603b

Martechsol commited on

fix(llm): stop AI from addressing the user by name
5963329

Martechsol commited on

Fix: Broad HR queries + Anti-hallucination hardening (no fake careers page)
75fca74

Martechsol commited on

Fix: Conversational Intelligence - Natural greetings, varied responses, no robot loop
17881df

Martechsol commited on

Production Intelligence: Graceful Guidance + Full Intent Coverage + Urdu Support
2578a3a

Martechsol commited on

Upgrade: Hybrid Intelligence (LLM Query Rewriter + Local Expansion)
2fd623e

Martechsol commited on

Upgrade: Intelligence & Reasoning (Added Format D + Expanded Intent Map)
87cb951

Martechsol commited on

Fix follow-up typo handling (then/them) + prevent specific leave type listing other types
4688215

Martechsol commited on

Hardening RAG Intelligence: Restoration of perfect format decision table, optimized thresholds, and query expansion logic for GPT-4o-mini
34fe777

Martechsol commited on

feat: institutional-grade intelligence upgrade with hybrid expansion, logical deduction, and core reference data
1080b20

Martechsol commited on

Restore: Revert codebase to stable May 14th 6 PM state
cdcad66

Martechsol commited on

feat: hardcode leave entitlements in system prompt for guaranteed completeness
227b99a

Martechsol commited on

feat: reach 100% intelligence with broader retrieval and mandatory deduction rules
43dba01

Martechsol commited on

feat: improve list completeness and add conclusion logic
3e4ec2d

Martechsol commited on

feat: further intelligence boost via multi-intent matching and relaxed rerank thresholds
5a21442

Martechsol commited on

feat: increase HR assistant intelligence via logical deduction and broader retrieval
5f34360

Martechsol commited on

Add OpenAI integration while preserving stable intelligence - 2026-05-15 18:05
9882b62

Martechsol commited on

Restore to latest backup from 13 May - 2026-05-15 17:56
608d6ed

Martechsol commited on

Polish: Add step numbers to structured list format
1ce24aa

Martechsol commited on

Intelligence: Remove all hardcoded format rules, let LLM choose format by intent
6a5a00d

Martechsol commited on

Fix: Disable stale cache, add ul/li CSS reset, unify post-processing with _clean_html
f2f1be6

Martechsol commited on

Conciseness: Enforce 3-point limit for leaves and ignore secondary clauses
6efd459

Martechsol commited on

Intelligence: Concise-first prompt, context filtering, smart format selection
e33f2d7

Martechsol commited on

Refactor: Remove hardcoded topic defaults - make LLM fully context-driven
fc1b848

Martechsol commited on

Intelligence: Add Format D for yes/no, consequence, and conversational questions
845b072

Martechsol commited on

Fix: Apply br cleanup to OpenAI caller (active provider)
5fc0474

Martechsol commited on

Fix: Remove stray <br> before </li> and collapse double <br> in output
71345d5

Martechsol commited on

Restore: Premium HTML list formatting for structured responses
04d85ae

Martechsol commited on

Fix: Prioritize original query and enhance compound word analyzer for prorata
b171a2a

Martechsol commited on

Fix: LLMService initialization TypeError and provider synchronization
b001a5f

Martechsol commited on