test1 / src /llm.py

Commit History

feat: add LLM query correction step to fix phonetic STT mispronunciations
8059126

Aniket Sirsikar commited on

fix: improve handling of short conversational affirmations
243e878

Aniket Sirsikar commited on

fix: double max_output_tokens to support Devanagari string lengths
52d1ebd

Aniket Sirsikar commited on

fix: relax LLM length constraints to prevent mid-sentence EOS truncation
f3ebf4f

Aniket Sirsikar commited on

perf: implement benchmark-driven optimizations
c13b073

Aniket Sirsikar commited on

fix(llm): remove lightbulb emoji from prompt to stop TTS from dictating it
3a82cfe

Aniket Sirsikar commited on

feat(llm): add conversational memory for follow-up questions
8ea24f3

Aniket Sirsikar commited on

fix(llm): prevent prompt hallucination and internal thought leaking
290f461

Aniket Sirsikar commited on

fix(rag): remove english translation step & increase top-k chunks
40cec9a

Aniket Sirsikar commited on

feat(llm): add context-aware follow up question to prompt
ee26538

Aniket Sirsikar commited on

feat: session chat history with inline πŸ”Š audio + safety exception for fraud
aeda6f7

Aniket Sirsikar commited on

fix(llm): enforce strict RAG grounding
df9ee9f

Aniket Sirsikar commited on

ui & llm: rearrange layout and enforce concise chat
ea7eceb

Aniket Sirsikar commited on

fix: few-shot chat translation, max_output_tokens 1024, bigger textbox
ae29635

Aniket Sirsikar commited on

feat: conversational bot overhaul β€” warm persona, complete answers, no truncation
d3339a5

Aniket Sirsikar commited on

fix: robust translation (3-tier fallback), dual-query RAG, pipeline safeguards
e9be45f

Aniket Sirsikar commited on

revert: restore correct model name gemini-3-flash-preview
c48deb1

Aniket Sirsikar commited on

fix: use gemini-2.0-flash, robust Hinglish translation, RAG k=5
6b008eb

Aniket Sirsikar commited on

fix: handle NoneType response.text from gemini-3-flash-preview
b628075

Aniket Sirsikar commited on

fix: update Gemini 3 Flash model ID to gemini-3-flash-preview
a52a18a

Aniket Sirsikar commited on

feat: upgrade to gemini-3-flash for paid API account
fdc93e1

Aniket Sirsikar commited on

fix: switch to gemini-2.5-flash (2.0 series retired March 2026)
2bde7a3

Aniket Sirsikar commited on

fix: migrate from deprecated google-generativeai to new google-genai SDK
c410e1e

Aniket Sirsikar commited on

fix: update Gemini model from deprecated gemini-1.5-flash to gemini-2.0-flash
21be132

Aniket Sirsikar commited on

Financial literacy UX: follow-up suggestions, emerald theme, Hindi-first labels
bbe2a10

Aniket Sirsikar commited on

Switch LLM to Gemini Flash (free, better Hindi, no billing issues)
8c9b31f

Aniket Sirsikar commited on

Switch to Mistral-7B API: clean prompts, fix UI labels, restore HF_TOKEN warning
207e13d

Aniket Sirsikar commited on

Fix LLM prompts: strict few-shot examples, low temp, anti-hallucination post-processing
1dc646a

Aniket Sirsikar commited on

Fix: remove duplicate Mistral functions that were overriding Qwen code
3eb2b46

Aniket Sirsikar commited on

Switch LLM to Qwen2.5-1.5B-Instruct (local CPU, no token needed)
fc1d30e

Aniket Sirsikar commited on

Clean rewrite: whisper-small local, clean RAG+LLM with Hindi prompts
fc3f34d

Aniket Sirsikar commited on

Fix: switch to Mistral-7B, use chat completions API, use LlamaIndex + CSV
6b71e15

Aniket Sirsikar commited on

Clean commit without venv
9b73f19

Aniket Sirsikar commited on