Building EugerGPT
January 15, 2025EugerGPT started as a weekend experiment and ended up being one of my favourite projects.
The core stack is Next.js App Router, the Vercel AI SDK, and Google Gemini as the model. The AI SDK makes streaming responses surprisingly simple — you set up a route handler, define the model, and stream back the response. The client-side `useChat` hook handles the rest.
The tricky part was giving the chatbot context about me. I wrote a system prompt that includes my background, projects, and skills so it can answer questions about my work accurately. It's essentially a more conversational version of this portfolio.
A few things I learned: streaming UX matters a lot — showing tokens as they arrive feels much better than waiting for the full response. Also, Gemini's context window is generous, which helped keep the system prompt detailed without hitting limits.
The code is on GitHub if you want to dig in.