How rclalithkumar/ridewise-assistant works
RideWise is a Streamlit evidence-grounded support assistant. Customers and support agents start a session, ask a question, and receive an answer based on customer-scoped operational records, approved policy passages, or both; the interface displays the answer and retrieved evidence. The main runtime is concentrated in app.py: it handles session validation, retrieval, LLM prompting, and chat display. The README documents the main capabilities; the source excerpt shows key calls, but some implementation details are omitted.
Main entry points: app.py Chat interface · policies Approved policy PDFs · verified_scanned_annexures.txt Verified annexures
Components 14
Session and chat
- Chat interface
app.py - Role and session handling
app.py - Customer ID validation
app.py - Conversation controls
app.py
Evidence retrieval
- Operational retrieval
app.py - Policy retrieval
app.py - Approved policy PDFs
policies - Verified annexures
policies/verified_scanned_annexures.txt - RideWise SQLite records
Answer generation
- Evidence-grounded prompt
app.py - NeoStats LLM
- Answer and evidence display
app.py
Other components
- Customer
- Support agent
Connections 16
- Customer → Chat interface: asks questions
README.md - Support agent → Chat interface: asks questions
README.md - Chat interface → Role and session handling: selects role
README.md - Role and session handling → Customer ID validation: validates ID
app.py - Chat interface → Conversation controls: controls chat
app.py - Chat interface → Operational retrieval: requests records
app.py - Operational retrieval → RideWise SQLite records: queries records
app.py - Chat interface → Policy retrieval: requests passages
app.py - Policy retrieval → Approved policy PDFs: reads approved PDFs
app.py - Policy retrieval → Verified annexures: reads annexures
app.py - Chat interface → Evidence-grounded prompt: answers question
app.py - Operational retrieval → Evidence-grounded prompt: supplies records
app.py - Policy retrieval → Evidence-grounded prompt: supplies passages
app.py - Evidence-grounded prompt → NeoStats LLM: requests answer
app.py - NeoStats LLM → Answer and evidence display: returns answer
app.py - Chat interface → Answer and evidence display: shows evidence
README.md