Freelance · Completed · Offline · 2024–2025
DocsRetriever
An authenticated document workspace with vector retrieval and streamed answers.
Problem
Teams needed to organise internal documents and find the right passages before an answer is written.
I designed, built and ran the service alone until August 2025. It is now offline.
Next.js · NestJS · FastAPI · LangChain · MongoDB · Keycloak · SSE · OpenAI
Critical point
From question to streamed answer in five steps.
NestJS embeds the question through a FastAPI service, then asks MongoDB for the 10 closest passages out of 100 candidates. FastAPI keeps them in a short session and streams the answer back over SSE. Sign-in lives outside the application: Keycloak handles accounts through OpenID Connect, and the API only checks the signature of each access token.
- 1Browsersends the question with an access token
- 2NestJSchecks that Keycloak signed the token
- 3FastAPIembeds the question
- 4MongoDB10 closest passages out of 100 candidates
- 5SSE streamFastAPI streams the answer back