How niti007/freshkart-build-week works
FreshKart is a customer-support bot with a Streamlit interface and a LangChain rules-and-reply pipeline. A customer message enters the app, the router extracts an order ID and gathers signals, Python policy rules select a route, and a route-specific LLM chain streams a reply. The app also displays order data and session-level operations and review queues. CSV files supply the bot’s records; chat history is in memory. The README documents the route capabilities; unsampled notebook details are not mapped.
Main entry points: bot.py Signal gathering · data Business CSV records · app.py Streamlit app
Components 18
Support interface
- Streamlit app
app.py - Chat and samples
app.py - Ops and review queue
app.py - Data and policy view
app.py
Support pipeline
- Request router
bot.py - Order ID extraction
bot.py - Signal gathering
bot.py - Intent classifier
bot.py - Policy routing
bot.py - Route-specific replies
bot.py - Chat history
bot.py
Business records
- Order lookup
bot.py - Customer lookup
bot.py - Inventory check
bot.py - Rider lookup
bot.py - Business CSV records
data
External services
- OpenRouter LLM
Other components
- Customer
Connections 24
- Customer → Streamlit app: sends message
app.py - Streamlit app → Chat and samples: renders
app.py - Chat and samples → Request router: invokes
app.py - Chat and samples → Route-specific replies: streams reply
app.py - Chat and samples → Chat history: loads and updates
app.py - Request router → Order ID extraction: extracts ID
bot.py - Request router → Signal gathering: gathers signals
bot.py - Signal gathering → Intent classifier: classifies intent
bot.py - Signal gathering → Order lookup: looks up order
bot.py - Signal gathering → Customer lookup: looks up customer
bot.py - Signal gathering → Inventory check: checks inventory
bot.py - Signal gathering → Rider lookup: looks up rider
bot.py - Order lookup → Business CSV records: reads
bot.py - Customer lookup → Business CSV records: reads
bot.py - Inventory check → Business CSV records: reads
bot.py - Rider lookup → Business CSV records: reads
bot.py - Request router → Policy routing: applies rules
bot.py - Policy routing → Route-specific replies: selects route
bot.py - Route-specific replies → OpenRouter LLM: generates reply
bot.py - Intent classifier → OpenRouter LLM: classifies with
bot.py - Streamlit app → Ops and review queue: renders session log
app.py - Streamlit app → Data and policy view: renders records
app.py - Data and policy view → Business CSV records: displays
app.py - Ops and review queue → Customer: shows review status
app.py