All projects
PROJECTLive

Portfolio AI Assistant

A production-ready RAG-powered AI chatbot embedded directly into my portfolio, allowing visitors to ask questions about my skills, experience, projects and contact information through a conversational interface.

I built a FastAPI-based AI assistant connected directly to the portfolio frontend. Each visitor receives an isolated session ID, messages are sent through the /chat endpoint, conversation context is managed through a three-phase hybrid memory system, and LangChain connects the structured portfolio context with Gemini to generate relevant responses. Strict system instructions keep answers focused on my real portfolio information and reduce hallucination.

Source code
PROJECT MEDIA

Demo & screenshots

Portfolio AI Assistant Demo
Portfolio AI Assistant live conversational interface
Live Portfolio AI Chat Interface
THE SYSTEM, STEP BY STEP

System flow

01Portfolio Visitor
→
02Floating Chat Widget
→
03Next.js Frontend
→
04POST /chat
→
05FastAPI
→
06Chat Service
→
07Memory Manager
→
08Context Builder
→
09LangChain
→
10Google Gemini
→
11AI Response
→
12Portfolio Chat UI

Click Play a Run to follow the system from start to finish.

What it is

Portfolio AI Assistant is a conversational AI chatbot I built for my portfolio website using FastAPI, LangChain and Google Gemini. Visitors can ask questions about my technical skills, professional experience, projects and contact details without manually navigating through the entire website. The assistant maintains isolated conversation sessions and uses a hybrid summarization memory system to preserve context while keeping prompts compact.

The problem it solves

A traditional portfolio requires recruiters and clients to manually browse different sections to find specific information. Visitors may want quick answers about technologies, experience, individual projects or how to contact me without searching through multiple pages.

How it works

  1. Embedded portfolio chat assistant

  2. FastAPI REST API backend

  3. POST /chat conversational endpoint

  4. Health-check API endpoint

  5. Google Gemini response generation

  6. LangChain LLM integration

  7. Portfolio-aware system prompt

  8. Answers about skills and technologies

  9. Answers about professional experience

  10. Answers about portfolio projects

  11. Answers about contact information

  12. Unique session ID for each visitor

  13. Session-isolated conversations

  14. Three-phase hybrid conversation memory

  15. Progressive conversation summarization

  16. Maximum five stored summaries per session

  17. Reduced prompt-context growth

  18. Strict portfolio-only response rules

  19. Input validation

  20. Empty-message handling

  21. Long-message validation

  22. Graceful LLM failure handling

  23. CORS support for Next.js integration

  24. Structured application logging

  25. Floating chatbot interface

  26. Render backend deployment

  27. Next.js portfolio integration

The engineering focus

I built a FastAPI-based AI assistant connected directly to the portfolio frontend. Each visitor receives an isolated session ID, messages are sent through the /chat endpoint, conversation context is managed through a three-phase hybrid memory system, and LangChain connects the structured portfolio context with Gemini to generate relevant responses. Strict system instructions keep answers focused on my real portfolio information and reduce hallucination.

Built with

See the other projects