K

K-OS Platform — Technical Architecture

euGPT API Gateway · Mistral · OVHcloud Hosting · GDPR-compliant · v2.0

🇪🇺 EU-Hosted v2.0 · Sep 2026
AIsurvey.me DiT learning.me Voice Stack LLM (euGPT/Mistral) Shared layer Infrastructure
K-OS Platform

knowledge-os.net — Standalone Architecture

Three modules, shared data layer, EU-compliant · euGPT (OpenAI-compat. gateway → Mistral) · Hosting: OVHcloud

Layer 1 — Client (Browser / Phone / LMS)
📋
aisurvey.me
The Intelligent Feedback Module
Next.js 14 React RSC TypeScript strict shadcn/ui Tailwind CSS Framer Motion
Static survey (v1.0) — Form-based
Conversational AI (v1.1) — 10 questions + follow-ups
Voice Agent (v1.3) — Phone via VAPI
Admin Dashboard — 9 tabs, analyses, exports
i18n: NL/DE/EN/FR/ES/PT/IT
Excel + PDF export (jsPDF)
🧠
DiT — Documentation Intelligence Tool
The Knowledge Backbone Module
Next.js 14 TypeScript shadcn/ui shared Tailwind
Document upload: PDF, DOCX, PPTX, TXT
Horizontal + vertical search (NL query)
Addenda & version verification
RFP Agent Workbench
Org-unit permissions (Ltree)
Conflict register & audit trail
🎓
learning.me
The Human Growth Module
Next.js 14 TypeScript shadcn/ui shared Tailwind
AI-generated learning modules (from survey insights)
Video instructions via D-ID Avatar API
Interactive quizzes + progress tracking
SCORM-export (LMS-compatibel)
Certificates & learning path visualisation
Google SSO + optional 2FA (TOTP)
↓
↓
↓
Layer 2 — API Gateway & Business Logic
⚙️
AIsurvey API Routes
Next.js App Router · /api/*
/api/conversation — AI dialogue engine
/api/admin/analyze — Streaming LLM analysis
/api/vapi/webhook — VAPI call sync
/api/admin/translate-dynamic — MD5 cache
NextAuth.js JWT — Credentials + Google SSO
Entity Extraction (LLM) Streaming SSE Rate Limiting (prod)
⚙️
DiT Python FastAPI
Python 3.11+ · REST + async
POST /ingest — Document pipeline trigger
POST /search — Hybrid vector + keyword
POST /rfp/generate — RFP Agent
POST /addendum — Expert corrections
Row Level Security (Ltree org-paths)
Redis BullMQ Async Workers Audit Logging
⚙️
Learning.me API Routes
Next.js App Router · /api/learning/*
/api/learning/generate — Module generatie
/api/video — D-ID proxy
/api/integration — aisurvey bridge
/api/scorm/export — SCORM package
NextAuth.js — Google SSO + 2FA TOTP
Progress Tracking Certificate Gen
↓
↓
↓
Layer 3 — AI Engine & Voice Stack
🤖
LLM Stack — euGPT Gateway
euGPT = OpenAI-compatible gateway → Mistral · EU-hosted · GDPR-compliant
🇪🇺 GDPR
Primary LLM
Mistral Large / Medium
via euGPT · Conversational AI, RFP, analysis, content gen
Mistral Embed
Semantic embeddings for Weaviate vector store
SLM — Bulk / Tagging
Phi-3 Mini (Azure EU)
DiT chunk-tagging & section summaries — cost-effective bulk
Mistral NeMo
Entity extraction + translation (fallback)
Per Module
AIsurvey: follow-ups, entity extraction, analysis report
DiT: RAG-reasoning, RFP answers, addenda assessment
Learning.me: learning module generation, quiz creation, translation
🎙️
Voice Stack (VAPI)
AIsurvey.me v1.3 · Real-time phone surveys
📞
VAPI
Voice Orchestration
Phone Agent
👂
Deepgram
Nova-2 STT
Real-time ASR
🔊
ElevenLabs
Rachel TTS
Multilingual
Caller → VAPI Phone → Deepgram (STT) → Mistral (LLM) → ElevenLabs (TTS) → Caller
Webhook sync → /api/vapi/webhook → PostgreSQL
⛓️
DiT Ingestion Pipeline
Async · Redis BullMQ · Python
📄 Upload → 🔍 Extract
PyMuPDF/docx/pptx
→ ✂️ Chunk
600 tok / 50 overlap
→ 🏷️ SLM Tag
Phi-3 Mini
→ 🔢 Embed
Mistral Embed
→ 💾 Weaviate
Vector Store
Authority Score
AS = R×0.4 + O×0.3 + W×0.2 + V×0.1
Hybrid Search
Weaviate BM25 + vector cosine similarity
🎬
D-ID Avatar Video API — learning.me
AI-instructor videos for e-learning modules · 50+ languages · Voice cloning
REST API Launch €35/mo 45 min video Streaming API Voice Cloning SCORM Export (custom)
↓ ↓ ↓
Layer 4 — Data & Storage
🗄️  Shared Database — PostgreSQL + Prisma ORM · OVHcloud
🐘
PostgreSQL
Prisma ORM
Ltree extensie
Row Level Security
OVHcloud
pgvector (optioneel)
AIsurvey.me Models
User / Survey / Question
Response / Answer
Conversation / Message
ExtractedEntity / Metadata
Analysis (streaming opgeslagen)
AgentCall / VoiceAgentAnswer
Translation / DynamicCache
DiT Models
org_units (Ltree paths)
dit_documents + permissions
dit_chunks (Weaviate ref)
dit_addenda / verification
dit_rfp_sessions / questions
dit_audit_log
dit_survey_enrichments
learning.me Models
LearningModule
LearningContent
Quiz / QuizQuestion
UserProgress
Certificate
VideoAsset
ContentTranslation
🔍
Weaviate — Vector Database
Semantic search · Managed cloud EU
Managed Cloud Multi-tenancy DocumentChunk class BM25 + vector hybrid GraphQL API GIST index
Properties: chunkId, documentId, tenantId, orgUnitIds, rawText, sectionSummary, tags, authorityScore
Production: Weaviate Enterprise with multi-tenancy RLS
⚡
Queue & Cache
Redis + BullMQ · Async processing
Redis BullMQ Job priority queues MD5 translation cache Retry + backoff OVHcloud / Azure Service Bus (prod)
Ingestion jobs: priority medium (bulk) / high (on-demand)
Translation cache: DynamicTranslationCache (PostgreSQL)
Low 5 — Infrastructure & Hosting (EU)
🇪🇺
euGPT Platform
OpenAI-compat. gateway
→ Mistral Large/Medium
No code changes required
☁️
Azure EU
Phi-3 Mini SLM
West Europe region
(SLM-only)
🇫🇷
OVHcloud
App + DB hosting
Object Storage
EU datacenter
🔐
Auth & Security
NextAuth.js JWT
Google SSO + 2FA
RBAC (ADMIN/EDITOR/VIEWER)
🛡️
GDPR & Compliance
Data in EU only
Audit logging
Right to erasure
📊
Observability
OpenTelemetry
Structured logging
Alert pipeline (prod)
Module Integration Flows
🔵→🟢 AIsurvey.me ➝ DiT
→Survey insights as dit_survey_enrichments
→Extracted entities enrich the knowledge model
→Conflict signals from survey to DiT conflict register
🟢→🟣 DiT ➝ learning.me
→dit_learning_modules trigger on NEW_DOC / ADDENDUM
→Validated chunks as source for learning content
→Document updates → automatic module refresh
🔵→🟣 AIsurvey.me ➝ learning.me
→Analysis output → personalised learning paths
→Skill gaps from survey → module suggestions
→Shared User table + progress
🟣→🔵 learning.me ➝ AIsurvey.me
→Learning results → new survey triggers
→Knowledge feedback loop: learn → measure → learn
→Certificates as validation of DiT competencies