chatbot21 / app /services /llm.py

Commit History

Latest updates: Sat 05/30/2026 4:07:41.02
38357e0

Martechsol commited on

Latest updates: Thu 05/28/2026 13:53:47.72
021b4b5

Martechsol commited on

Deploy RAG Chatbot to Hugging Face Spaces
b8928f4

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

Upgrade: Professional intelligent retrieval pipeline with robust tokenization and LLM query expansion
c6668ae

Martechsol commited on

Add br between list items for vertical spacing
a919128

Martechsol commited on

Fix list spacing: compact single-line prompt example + thorough br/whitespace cleanup inside ul/ol
5724db0

Martechsol commited on

Strip stray br tags after ul/ol opening tags to remove top space in lists
11bc94e

Martechsol commited on

Remove leading space in chat bubbles via CSS margin fix and lstrip post-processing
9b8d175

Martechsol commited on

Fix full stops, consistent Format B for leave queries, unpaid leave retrieval
aa8b3eb

Martechsol commited on

Cap Format C at 4 lines, restore leave-name = count only intent
fbe9de5

Martechsol commited on