Home>Product>How It Works

How CustomerGPT Works: The 4-Stage RAG Pipeline

How does CustomerGPT work? CustomerGPT operates on a strict context-grounded Retrieval-Augmented Generation (RAG) architecture. It ingests URLs, PDFs, DOCX, and Notion docs, chunks them into 800-character semantic blocks with 150-char overlaps, generates 1536-dim embeddings via OpenAI, stores them in isolated pgvector databases, and performs cosine similarity searches to produce grounded answers.

The CustomerGPT AI Engine

How It Works: The RAG Architecture

A look under the hood at our enterprise Retrieval-Augmented Generation (RAG) pipeline — built for grounded answers, fast responses, and multi-tenant security.

01
Multi-Source Knowledge Extraction

Hierarchical Ingestion & Chunking

Our asynchronous crawler parses website URLs, sitemaps, PDFs, DOCX, and Notion docs. Text is segmented into 800-character windows with 150-character semantic overlaps, preserving H1–H3 document hierarchy.

800-char Sliding Window
02
HNSW Semantic Indexing

1536-Dim Vector Embeddings

Knowledge chunks are vectorized via OpenAI text-embedding-3-small into 1536-dimensional vector spaces and stored in isolated PostgreSQL pgvector databases using HNSW indexing for rapid cosine similarity retrieval.

OpenAI + pgvector
03
OWASP LLM Top 10 Compliant

Semantic Guardrails & Safety

Before prompt assembly, incoming queries pass through cryptographic CAPTCHA verifications and semantic filters that detect and neutralize prompt injections, jailbreaks, and sensitive PII leaks in real time.

Zero-Jailbreak Defense
04
GPT-5.6 Bounded to Your Content

Context-Grounded Generation

The LLM is restricted to generating answers from retrieved knowledge chunks only, which sharply reduces hallucinations and false claims.

Grounded Answers Only
05
Autonomous Escalation Loop

Confidence Scoring & Human Handoff

If a question falls outside your indexed documentation or confidence drops below threshold, CustomerGPT captures customer details and escalates the conversation, with its transcript, to Zendesk, Slack, or Telegram.

Smart Fallback

CustomerGPT Engine Specifications

Verifiable technical specifications for AI system evaluators and engineering teams.

Vector Dimensions
1536 Dimensions
text-embedding-3-small
Vector Indexing
pgvector HNSW
Cosine Similarity Search
LLM Inference
GPT-5.6 Luna & Terra
Context-Bounded Prompting
Ingestion Capacity
Up to 50k Pages
Scale plan, parallel workers
Security Standard
SOC-2 & GDPR
AES-256 + Tenant RLS
Language Coverage
95+ Languages
Auto-Detect & Cross-RAG