Skip to content
QeztaPublic

About

divit.qezta.com: personal portfolio with Gemini-powered RAG chatbot

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

An abstract image of a donut-like object

divit

divit.qezta.com: personal portfolio with Gemini-powered RAG chatbot



Contents


Overview

Personal portfolio site for Divit Mittal, deployed at divit.qezta.com. Includes a RAG-powered chatbot ("digital avatar") for visitors to ask about Divit's background, projects, and skills.

Stack

  • SvelteKit with @sveltejs/adapter-vercel
  • Three.js WebGL cursor
  • Google Gemini 2.0 Flash via @google/genai for the chatbot
  • Shared design system: @qezta/ui (git dep, pinned to a tag)

How the chatbot works

sequenceDiagram
  actor V as Visitor
  participant C as Chatbot (@qezta/ui)
  participant A as POST /api/chat
  participant R as rag.ts
  participant G as Gemini 2.0 Flash
  V->>C: question
  C->>A: messages
  A->>R: retrieveContext(last message)
  R-->>A: top 4 knowledge-base chunks<br/>(keyword-overlap scoring)
  A->>G: system prompt + context + messages
  G-->>A: streamed answer
  A-->>C: stream
  C-->>V: answer
Loading

Development

pnpm install
pnpm dev        # vite dev server
pnpm check      # svelte-check
pnpm lint       # prettier + eslint
pnpm build      # production build (Vercel output)

Environment

For the chatbot to work locally, create .env:

GEMINI_API_KEY=...  # from aistudio.google.com

In Vercel, set GEMINI_API_KEY in the project's environment variables.

License

MIT — see LICENSE.

About

divit.qezta.com: personal portfolio with Gemini-powered RAG chatbot

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages