RAG Pipeline
Curriculum ingestion into pgvector, grounding the AI tutor.
- Role
- AI Systems Engineer
- Platforms
- Cloud
- Year
- 2026
Pulls curriculum PDFs from storage, extracts text preserving formulas, chunks with overlapping sliding windows so a nautical rule is never split mid-definition, embeds via OpenAI and writes 1536-dimensional vectors into Postgres.
The corpus is deliberately small and curated, the notes the AI tutor is allowed to answer from, with caching in front of retrieval to keep repeat questions off the embedding API. Also carries the IST-aware rate limiter.
- 1536-dim
- OpenAI embeddings in pgvector
- HNSW
- cosine similarity retrieval
- Node.js
- OpenAI Embeddings
- pgvector
- pdf-parse
- PL/pgSQL