SmartDine is an advanced, agentic Retrieval-Augmented Generation (RAG) system designed to simulate a restaurant waiter. Built using LangChain, LangGraph, and OpenAI's GPT models, this project showcases how Generative AI can enhance user experience in daily-life scenarios such as dining and customer support.
To build an intelligent, conversational restaurant assistant that:
- Answers customer queries about the menu.
- Recommends dishes based on user input.
- Provides friendly and context-aware responses.
- Retrieves accurate menu-related content from a custom knowledge base.
Technology | Purpose |
---|---|
Python | Primary language |
---|---|
LangChain | LLM orchestration and tool integration |
LangGraph | Workflow and agent logic management |
OpenAI GPT | Language understanding and generation |
FAISS/ChromaDB | Vector store for retrieval |
Jupyter Notebook | Development & experimentation |
- Multi-step dialogue management
- Branching logic and tool usage decisions
- Semantic search of custom documents (e.g., menu, FAQs)
- Injects relevant context into GPT prompt for grounded answers
- Custom prompts to emulate a friendly, helpful restaurant waiter
- Ensures consistent tone and persona
- Maintains conversation history
- Personalized and continuous interactions
SmartDine can be used by:
- Restaurants wanting a virtual assistant on their kiosk/web platform
- Food delivery services adding GenAI chat support
- Digital menu providers aiming to add interactivity
- Smart devices (voice assistants) for dining experiences
User: What’s special in the vegan section today?
SmartDine: Today’s vegan special is the Grilled Tofu Bowl with quinoa, fresh veggies, and house-made tahini dressing. Would you like a recommendation for something spicy?
- User Input: Text or voice query from customer
- Intent Detection: GPT interprets user intent
- Knowledge Retrieval: Relevant docs retrieved using embeddings
- Response Generation: Context + intent combined and passed to GPT
- Output: Friendly, coherent waiter-style response
- Clone the repo
git clone https://github.com/yourusername/smartdine-agent.git
cd smartdine-agent
- Create virtual environment
python -m venv venv
source venv/bin/activate # For Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Add your API keys
- Modify
.env
file with:
OPENAI_API_KEY=your_key_here
- Run the notebook or script
jupyter notebook Agentic_RAG.ipynb
- Voice integration with Whisper or Google STT
- Multilingual support for global audiences
- Integration with live menu APIs
- Real-time user feedback loop
Saurabh Kumar Generative AI Engineer LinkedIn | GitHub
This project is open-source and available under the MIT License.