← back to case studies

This Site: AI in Practice

A working product: an assistant grounded in my career and projects, and a lab that streams AI analysis of your own game, built from interface to database.

Results

What it did

Working AItry the assistant and interactive lab
Streamingthe lab analyzes your own game results
End to endinterface, API, database, and AI

The problem

Why it needed building

Visitors need a quick way to judge technical experience, and a portfolio that only describes AI work proves little. The AI had to be useful to a visitor and safe to leave open to the public.

The approach

How it works

Built this application end to end, with a portfolio assistant and AI analysis in the interactive lab. The assistant receives career and project context and offers navigation actions. The lab streams analysis of the visitor’s actual game results. Publishing stays under owner control, and nothing a visitor types can change the site.

  1. Visitor Question
  2. Portfolio Context
  3. LLM Response
  4. Page Action
  1. 01
    Visitor QuestionThe public assistant receives a bounded portfolio question
  2. 02
    Portfolio ContextCareer, projects, and known site sections ground the request
  3. 03
    LLM ResponseThe model returns an answer and suggested follow-up actions
  4. 04
    Page ActionThe visitor can follow prompts or navigate to relevant work

The trade-off

What it cost

Model answers can be wrong and every request costs money. So the assistant stays on portfolio questions, the lab reads only the game it’s given, and nothing public can change the site.

Live demo

Try it yourself

Try the interactive lab

Tech stack

Built with

Next.jsTypeScriptLLM APIsTool UsePostgreSQLDrizzle

Working on something like this?

Cite this case study

Mohamed Hosny, “This Site: AI in Practice”, www.mohamed-hosny.dev. https://www.mohamed-hosny.dev/projects/ai-portfolio

Referencing this? Please credit Mohamed Hosny and link to the original page.