AI & Engineering
AI systems, designed end to end
The pipelines I build and the architecture decisions behind them — from retrieval to deployment.
AI & Engineering
Beyond calling an AI API
AI features only work as products when the engineering around them does: retrieval quality, fallback chains, data models and security. This is the pipeline behind Kilele Archade's tutor.
kilele-archade / ai-tutor-request
- Student questionfrom a subject, level and competence
- Frontend (React + TypeScript)
- API layerSupabase
- Authentication & row-level security
- Application logicresolve curriculum scope for the query
- Document retrievalmetadata filter + pgvector similarity search
- Relevant contextre-ranked passages within token budget
- LLM / AI providerprimary provider with transparent fallback chain
- Grounded response + citationsCloudinary assets attached where relevant
What I work with
Retrieval-Augmented GenerationEmbeddingsVector databases / pgvectorDocument processingLLM integrationAI provider fallback architecturePrompt engineeringCloud AIMachine learningComputer visionAI system architecture
How I think about AI systems
- Retrieval quality, not model size, decides whether answers are trustworthy.
- Every provider is replaceable — build the fallback before you need it.
- Ground answers in your own data and cite it, so users can verify.
- An AI feature is a full pipeline: ingestion → indexing → retrieval → prompting → evaluation.
System Architecture
How the products are put together
Selected architectures from shipped work — authentication, business logic, data, external services and the AI layer, each in its proper place.
kilele-archade / system-overview
- Student / Teacher / Parent
- React + TypeScript frontend
- Supabase API & Auth (row-level security)
- Application logic & role checks
- Document retrieval — pgvector similarity search
- Relevant curriculum context assembled
- LLM provider with fallback chain
- Grounded response + citations
apex / system-overview
- Owner / Manager / Tenant
- React frontend
- API layer with authentication
- Role-based authorisation
- Business logic — leases, ledger, maintenance
- PostgreSQL (properties, tenants, payments)
- External services — M-PESA, SMS gateway
- Reports & notifications
mediflow / system-overview
- Reception / Clinician
- React frontend
- Express API with auth
- Clinic logic — scheduling, queue
- PostgreSQL