What Is Retrieval-Augmented Generation (RAG)?
Complete technical guide to vector embeddings, pgvector cosine distance, and tabular chunking.
The engineering blueprint for secure enterprise conversational AI. Discover how PostgreSQL tenant isolation, AES-256 credential encryption, and Zero Data Retention inference safeguard company intellectual property.
Connecting internal company documents, customer support transcripts, and live e-commerce databases to external language models requires rigorous safeguards. At Knogents, our security architecture is built on three core pillars: strict multi-tenant database vector isolation, zero data retention by underlying inference engines, and end-to-end cryptographic protection of all external tokens and credentials.
PostgreSQL pgvector tenant-scoped filtering
In multi-tenant RAG architectures, preventing cross-tenant data leakage is the foundational requirement. Knogents enforces hard tenant boundaries in PostgreSQL. Every vector similarity query calculates cosine distance using parametrized SQL bound strictly to the verified tenant UUID:
-- Hard multi-tenant boundary constraint SELECT id, content, document_title FROM document_chunks WHERE bot_id = $1 -- Validated tenant UUID AND (embedding <=> $2) < 0.28 ORDER BY (embedding <=> $2) ASC LIMIT 5;
Chunks belonging to one business can never be matched or retrieved by queries initiated from another organization.
Commercial enterprise model confidentiality
Unlike consumer-facing chatbots where user prompts can be collected to train future model versions, Knogents interfaces exclusively with enterprise API endpoints governed by Zero Data Retention (ZDR) agreements. Incoming context and outgoing completions are processed statelessly in volatile RAM and deleted immediately upon request completion.
Protection for Shopify Storefront tokens and API keys
When merchants connect their Shopify Storefront Access Tokens or custom API keys, credentials are never stored in plaintext. They are encrypted at rest using industry-standard AES-256-GCM with unique cryptographic initialization vectors (IVs) and decrypted only in memory during authenticated tool execution.
Standalone client script under 20 KB
The standalone embed script (embed.js) sets zero third-party tracking cookies by default. It manages temporary UI state via ephemeral browser sessionStorage, ensuring visitors can interact with the chatbot without triggering cookie consent complications or third-party ad tracking.
Before deploying any conversational AI platform on a corporate website, evaluate its compliance against these essential standards:
| Security Requirement | Generic Consumer Chatbots | Knogents Architecture |
|---|---|---|
| Training on Company Data | Yes (default opt-in) | Never (Strict ZDR enforcement) |
| Database Vector Isolation | Shared pool without row constraints | Tenant-scoped SQL queries in pgvector |
| API Key Storage | Plaintext or base64 encoding | AES-256-GCM encryption at rest |
| Permanent Data Purging | Manual support tickets or uncertain | 1-click instant purge in dashboard |
No. Knogents utilizes commercial API inference endpoints protected under strict Zero Data Retention (ZDR) and enterprise confidentiality agreements. Your uploaded PDFs, spreadsheets, sitemaps, and user chat transcripts are never logged, reused, or ingested to train public foundation models or adjust neural weights.
Every vector search in PostgreSQL pgvector enforces strict tenant scoping via bot_id foreign key constraints and parametrized queries (WHERE bot_id = $1). Vectors belonging to Company A are partitioned at the database query layer and can never be retrieved or matched against queries initiated by Company B.
When merchants connect their Shopify Storefront Access Tokens or API credentials, the keys are encrypted at rest using AES-256-GCM encryption with unique initialization vectors (IVs). Credentials are decrypted only in memory during authenticated tool execution and are never exposed to client browsers.
Knogents employs a two-tier defense. First, vector retrieval uses strict cosine distance thresholds (under 0.28), ensuring that only chunks semantically related to the customer query enter the prompt context. Confidential documents unrelated to the inquiry are never retrieved. Second, hardened system prompt instructions explicitly instruct the model to reject attempts to override operational guardrails.
No. The Knogents embed script (under 20 KB) is completely cookie-free by default. It manages temporary session state through ephemeral browser sessionStorage, ensuring full compliance with international privacy frameworks without requiring complex cookie consent banners.
Document deletion in Knogents is immediate and permanent. When an administrator removes a PDF, sitemap, or spreadsheet, its vector embeddings and raw chunk text are immediately purged from PostgreSQL database clusters with zero residual caching.
Related Architectural Research
Deepen your understanding of retrieval-augmented generation and vector databases.
What Is Retrieval-Augmented Generation (RAG)?
Complete technical guide to vector embeddings, pgvector cosine distance, and tabular chunking.
What Is a Knowledge Base AI Chatbot?
Why general foundation models fail on enterprise documentation and how private RAG solves it.
Understanding LLM APIs: Token Costs, RPM Limits & Latency
Token calculation math, RPM rate throttling, context window management, and latency optimization.
Production Industry Solutions
See how these architectural principles are implemented in production AI agents.
SaaS & Software Support Chatbot
Resolve API and technical documentation questions with zero-hallucination accuracy from your docs and sitemaps.
Answer customer inquiries instantly at any hour with verified factual accuracy and zero waiting.
Turn storefront visitors into buyers with 24/7 product advice, stock checks, and checkout assistance.
24/7 STOREFRONT ASSISTANT
Build an AI Agent Grounded in Your Enterprise Knowledge
Index your sitemaps, PDFs, and spreadsheets with header preservation and strict cosine thresholding.