A beginner-friendly RAG tutorial that shows how embeddings, Qdrant vector search, retrieved context, and OpenAI work together in an e-commerce customer support chatbot.

This chatbot is designed as a beginner-friendly starter project for anyone who wants to understand how a basic RAG system works and how it can be used for customer support.

Simple RAG combines retrieval with an LLM to generate more grounded answers. A user question is converted into an embedding, matched against relevant information in a vector database, and the retrieved context is added to the prompt before the LLM generates the final response.
The current example, VoltAssist, focuses on an e-commerce electronics store and answers questions about topics such as:
Account & Profile
Billing & Tax
Warranty & Repairs
Product Information
Returns & Exchanges
Ordering & Payment
Shipping & Delivery
Customer Service
The goal of this project is not to provide a production-ready support system, but to give you a simple and practical foundation that you can understand, run, and extend.
The repository includes:
A Streamlit chatbot UI
A sample FAQ dataset
A script to create and populate a Qdrant vector database
OpenAI embeddings using text-embedding-3-small
A simple retriever with category filtering
Prompt construction with retrieved context
OpenAI-powered response generation
Example environment configuration
The project is intentionally kept small:
data/
├── faqs.json
└── update_database.py
src/
├── app.py
├── llm.py
└── rag.pyupdate_database.py prepares the knowledge base, rag.py retrieves relevant information, llm.py handles prompting and response generation, and app.py provides the Streamlit chat interface.
VoltAssist follows a simple RAG architecture:
User Question → Embedding → Qdrant Search → Retrieved Context → LLM → Answer
This makes it useful for understanding the main building blocks of Retrieval-Augmented Generation without adding too much complexity.
The repository includes a synthetic FAQ dataset for an electronics e-commerce store.
You can use it immediately to test the application, then replace it with your own data.
For example, you could add:
Product manuals
Support documentation
Return policies
Warranty information
Shipping policies
Help-center articles
This project can be useful if you already understand the basics of calling an LLM and now want to move to your first RAG application.
Instead of starting with a large framework or complex architecture, VoltAssist keeps the main concepts visible so you can see how retrieval, embeddings, vector search, prompting, and the LLM work together.
Once the basic version is working, you can gradually extend it.
Some useful next steps are:
Replace the sample FAQ with your own company knowledge
Add PDF or product-manual ingestion
Add source references to chatbot answers
Improve retrieval with metadata filters
Add a confidence threshold when relevant information is not found
Support conversation history
Connect the chatbot to real business APIs such as order tracking
Replace OpenAI or Qdrant with other providers
Add Azure OpenAI or Azure AI Search