AI Product Engineer · 2024 – 2026
Hybrid RAG AI System
A production-style retrieval-augmented generation system that grounds answers in both a persistent document corpus and the current session's structured data — not one or the other.
Problem
Retrieval-augmented generation systems that rely purely on document embeddings struggle the moment part of what a user needs isn't in a document at all — it's structured, session-specific data that changes with every conversation.
Solution
A production-style hybrid RAG system combining persistent document embeddings with session-based structured data, so answers can draw on both a stable knowledge base and the current session's live context, backed by authentication for enterprise use.
Architecture
Architecture diagram — see GitHub repo
Business Impact
- Gave the team a reusable architectural pattern for grounding AI answers in both a stable knowledge base and live session context
- Became the direct architectural inspiration for this site's own AI assistant
Technologies
PythonFastAPILangChainOpenAIDockerVector Database
Challenges
- Pure document-embedding retrieval wasn't enough on its own — part of what users needed was session-specific, structured data that doesn't belong in a static document corpus
- Combining two fundamentally different context sources into one coherent retrieval strategy without the system becoming two disconnected pieces glued together
- Keeping the system auditable and secure enough for enterprise use, including authentication
Lessons Learned
- Most 'RAG doesn't work well enough' complaints traced back to forcing everything through document retrieval when some of the needed context was actually structured and session-scoped
- Persistent embeddings and session-based structured data solve different problems — treating them as one retrieval layer, rather than two, is what made answers coherent