Skip to content

AhmadAnzar/GenAI-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Persona AI Chatbot

This repository is a persona-based AI chatbot submission for the assignment. The app has 3 different personas with which the user interacts. They are Anshuman Singh, Abhimanyu Saxena, and Kshitij Mishra. Each of them has their own system prompt, their own tone of answering and their own suggestions. They have separate conversation flow.

The project has two folders:

  • backend contains the FastAPI backend and the /api/chat route
  • frontend contains the React + Vite frontend

Features Included

  • Three persona images at the top of the page
  • Active persona highlight
  • Chat reset when the persona changes
  • Suggestive questions for each persona
  • Typing indicator while the response is loading and graceful error handling
  • Mobile and desktop responsive layout

Local setup

Backend

cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload

Backend environment variables are present in backend/.env.example for reference.

Frontend

cd frontend
npm install
cp .env.example .env
npm run dev

SCREENSHOTS

image f09bdc2e-75c0-4a1a-a986-bd92d2a97323

Deployment

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors