Problem
No vector search capability existed; PostgreSQL ran plain with only pg_trgm/unaccent enabled.
Solution
Enabled the pgvector extension and built hybrid semantic + keyword retrieval with score boosting.
TKMG Academy
A full-stack, bilingual Learning Management System with SCORM support and an AI knowledge-retrieval layer.

TKMG Academy LMS is a full-stack, bilingual (English/Spanish) learning platform for a professional training provider. Learners move through versioned courses, video lessons, exams, and SCORM content, earning Credly badges and generated certificates, while purchases and enrollments sync automatically from WooCommerce.
Its standout layer is an AI 'Knowledge Teacher' I designed — a retrieval-augmented system that ingests lesson transcripts and documents, embeds them with pgvector, and answers questions with citation-grounded, persona-driven responses. I built it directly on the existing PostgreSQL stack, adding hybrid semantic/keyword search, guardrails, an evaluation harness, and a token-cost ledger without provisioning any extra infrastructure.
Full-stack engineer (primary contributor)
Problem
No vector search capability existed; PostgreSQL ran plain with only pg_trgm/unaccent enabled.
Solution
Enabled the pgvector extension and built hybrid semantic + keyword retrieval with score boosting.
Problem
No queue/Redis infrastructure existed for asynchronous ingestion and embedding work.
Solution
Adopted pg-boss, reusing the existing Postgres connection instead of provisioning new infrastructure.
Problem
Videos are Vimeo-hosted with no stored transcripts to index.
Solution
Built an admin SRT/VTT upload (single and batch) ingestion path as the primary flow, with Vimeo fetch and Whisper ASR as optional feature-flagged fallbacks.
Problem
Citations and retrieval must respect bilingual content (en/es language variants).
Solution
Tagged every knowledge chunk with a language code and applied language-aware filtering with a defined fallback.
Vimeo
Hosting and playback of lesson videos (and optional transcript fetch)
Credly
Issuing digital badges and credentials
SendGrid
Transactional email
SCORM Cloud
SCORM content hosting and self-hosted dispatch (incl. legacy Litmos migration reporting)
WooCommerce
Course purchase / enrollment synchronization
AWS S3 / MinIO
File and media storage
OpenAI
LLM generation and embeddings for the AI knowledge layer
Sentry
Error monitoring (frontend and backend)
PostHog
Product analytics
Gotenberg / Chromiumly
Server-side PDF/document generation (certificates)
An 'AI Teacher / Knowledge Layer' that performs retrieval-augmented generation over course transcripts and knowledge documents. A provider-agnostic LLM gateway (OpenAI) powers hybrid semantic + keyword search (pgvector + pg_trgm) with citation-first, persona-driven answers, plus an ingestion pipeline, guardrails, versioned prompts, an eval harness, and a token-cost ledger with a daily spend cap.
Providers
OpenAI
Models
gpt-5.4-nano, gpt-4.1-mini, text-embedding-3-small
Let’s talk about what you’re building and how Montgomery Labs can help ship it.
Start a project