RAG-Powered Customer Support Platform

Choose Smart Chatbot

A production-grade Retrieval-Augmented Generation platform that grounds every response in approved knowledge, switches between cloud and local inference, and hands off to humans in real time.

Choose Smart Now chatbot on mobile
Deflection
68%
of common queries resolved automatically, with no agent involvement.
First Response
~2s
average time to a grounded answer, down from minutes in a queue.
Answer Quality
95%
source-grounded responses, sharply reducing hallucinations.
Capacity
3.5×
support throughput handled without a matching rise in headcount.

Project Overview

ChooseSmart Chatbot is an AI-powered customer support platform designed to automate customer interactions, provide instant responses, and seamlessly escalate complex issues to human agents.

The platform leverages Retrieval-Augmented Generation (RAG), dual LLM architecture, vector search, and real-time agent handoff to deliver accurate and context-aware support experiences.

The primary goal of the project was to reduce customer response time, improve support efficiency, and minimize hallucinated AI responses while maintaining a human-like conversational experience.

RAG  ·  Dual-LLM  ·  Qdrant  ·  WebSocket

Business Problem

Many businesses struggle to provide fast and accurate customer support, especially when handling a large number of customer queries daily. Traditional support systems often rely heavily on human agents, which increases response time, operational costs, and workload.

ChooseSmart order list app screen

Traditional customer support systems faced several challenges:

Slow response times Repetitive manual support tasks Inconsistent chatbot answers Poor AI-to-human escalation Hard to search knowledge bases High operational cost

The client required a scalable AI support solution capable of:

Understanding customer intent Retrieving accurate info in real time Supporting AI-to-human escalation Running cloud + local inference Keeping history & analytics

To solve these challenges, the ChooseSmart Chatbot platform was developed using RAG architecture, vector search, and real-time AI-to-human escalation to provide a smarter and more reliable customer support experience.

The KPIS AI Solution

KPIS Pvt. Ltd. engineered ChooseSmart as a production-grade Retrieval-Augmented Generation platform that grounds every answer in approved knowledge and connects users to human agents in real time.

RAG pipeline for grounded answers

Each question is expanded into multiple query variants, matched against the knowledge base using embedding-based similarity search, then deduplicated and ranked before a language model composes a source-cited answer using configurable relevance thresholds.

Dual-LLM provider architecture

A config-driven design supports OpenAI GPT-4o and Llama 3.1, plus OpenAI text-embedding-3-large and Ollama nomic-embed-text, so the platform can switch between cloud and local inference to balance cost, performance, and data privacy.

Qdrant vector database with hallucination guards

FAQ embeddings are stored in Qdrant with CRUD auto-sync, five-query-variant vector search, cosine-similarity filtering, and irrelevant-question pre-classification to keep responses on-topic and trustworthy.

Real-time AI-to-human escalation

Intent classification detects when a query needs a person, and WebSocket / Socket.IO instantly connects the customer to a live support agent without losing context.

Session management and analytics

Redis manages session lifecycles with time-to-live (TTL) controls, while MongoDB archives full transcripts for analytics, quality review, and transcript delivery.

ChooseSmart messages screen with AI assistant

Key Features Delivered

A short list, in plain language, of what the production platform actually does on day one.

RAG-based Q&A

Accurate, source-cited responses generated only from verified knowledge.

Multi-query expansion & ranking

Each question is broadened into several variants and the best-matching context is selected and ranked.

Dual LLM + dual embeddings

Cloud (OpenAI) and local (Ollama / Llama 3.1) inference, switchable by configuration.

Qdrant vector search

FAQ embeddings with auto-sync, cosine-similarity filtering, and irrelevant-question pre-classification.

Live agent escalation

Real-time WebSocket / Socket.IO handoff from AI to a human agent when intent classification flags it.

Session lifecycle (Redis)

Redis TTL-based session control for reliable, time-bound conversations.

Transcript archival

MongoDB storage of conversations for reporting, auditing, and continuous improvement.

Source citations

Answers display the knowledge sources used, increasing transparency and user trust.

Cross-platform interface

A consistent assistant experience across web and mobile — same brain, same voice.

Technical Architecture

Modern, modular, and production-tested — chosen to balance accuracy, latency, and data sovereignty.

Frontend
  • React.js
  • Responsive chat UI
  • Real-time interface
Backend
  • Node.js
  • Express.js
  • Socket.IO
AI & NLP
  • OpenAI GPT-4o
  • Llama 3.1
  • Ollama
  • Embedding models
Data & Comms
  • MongoDB
  • Redis
  • Qdrant Vector DB
  • WebSockets · REST
Communication
  • WebSockets
  • REST APIs

Development Process

A six-stage delivery model that keeps engineering, AI, and the client moving as one team.

01
Requirement Analysis

KPIS mapped support goals, common query types, escalation rules, and data-privacy needs to define feasibility and scope.

02
Data & Knowledge

The team collected, cleaned, and structured FAQs and documentation into an AI-ready knowledge base for embedding.

03
AI Solution Architecture

Designed the RAG pipeline, dual-LLM provider strategy, Qdrant vector store, and the real-time escalation flow.

04
Development & Integration

Built the retrieval pipeline, intent classification, WebSocket agent handoff, and Redis/MongoDB session and transcript layers.

05
Testing & Optimisation

Tuned relevance thresholds, similarity filtering, and pre-classification to maximise accuracy and minimise hallucinations.

06
Deployment & Support

Deployed the platform across web and mobile, with monitoring, analytics, and ongoing optimisation.

Business Results & Impact

Faster answers. Fewer hallucinations. Support that scales without doubling headcount.

24/7
Instant responses

Improved response efficiency through round-the-clock answers to common questions.

Lower manual workload

Reduced repetitive queries on human agents, they now focus only on complex tickets.

Source-grounded answers

Faster information access for customers, with answers backed by verified sources.

Reliability

Higher answer accuracy and fewer hallucinations thanks to RAG and pre-classification.

Seamless handoff

Better engagement with in-context escalation to live agents — no repeated questions.

Scalable operations

AI-powered support that grows with volume without a matching rise in headcount.

Frequently Asked Questions

The same questions buyers and engineering teams ask us before signing — written plainly.

How did KPIS use AI to solve this customer support problem?

KPIS built ChooseSmart, a Retrieval-Augmented Generation (RAG) chatbot that retrieves answers from a verified knowledge base before a large language model generates a response. This grounds every answer in approved content, reduces hallucinations, and lets the system hand complex conversations to human agents in real time when needed.

What AI technologies were used in the ChooseSmart project?

The platform uses RAG orchestration, OpenAI GPT-4o and Llama 3.1, embedding models, a Qdrant vector store, Redis session management, and MongoDB transcript storage, with WebSocket / Socket.IO real-time agent handoff.

What is a RAG chatbot and why does it reduce hallucinations?

A RAG (Retrieval-Augmented Generation) chatbot retrieves relevant, approved content before generating an answer, so responses are grounded in real sources rather than invented — sharply reducing hallucinations and increasing trust.

Can KPIS build custom AI chatbot solutions for other industries?

Yes. The architecture is domain-agnostic — we adapt the knowledge base, intent flows, and escalation rules to fit healthcare, finance, e-commerce, education, logistics, and more.

How does an AI chatbot or LLM system help businesses?

It deflects common queries automatically, responds instantly around the clock, reduces support costs, and frees human agents to focus on high-value, complex cases.

Does KPIS support both cloud and on-premise (local) AI models?

Yes. The dual-LLM design switches between cloud models (OpenAI) and local inference (Ollama / Llama 3.1) to balance cost, performance, and data privacy.

Why choose KPIS as an AI development company?

KPIS brings real-world RAG architecture experience, a focus on grounded and reliable AI, and end-to-end delivery from design through deployment and ongoing support.

Build a smarter, more reliable support experience with AI.

KPIS Pvt. Ltd. designs and deploys custom AI chatbots, RAG systems, and LLM solutions trained on your own knowledge base — accurate, scalable, and ready for production.