Skip to content

Personal Website using an Intelligent and Hybrid Chat and Voice Bot catered specifically for my resume and professional work.

Notifications You must be signed in to change notification settings

Ntropy86/Conversational

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

52 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Conversational AI Portfolio

An intelligent conversational AI system that helps visitors explore a professional portfolio through natural language queries. Features voice interaction, smart resume querying, and a digital guestbook.

Live Demo: https://ntropy.dev

Deploy Next.js Backend React Database FastAPI Python TypeScript Tailwind CSS Groq Whisper ElevenLabs ONNX Hugging Face Vercel


πŸ“Έ Screenshots

Portfolio Home

Portfolio Home Clean, modern interface with intelligent tab management and responsive design

AI Assistant

AI Assistant Interactive AI assistant providing contextual responses about experience and projects

Guardrails

Guardrails Used all SOTA guardrailing and finetuning techniques to make sure that the conversation stays focused on the task at hand, i.e, knowing ME!

Voice Interface

Voice Interface Advanced voice processing with real-time transcription and natural speech synthesis


🌟 Features

πŸ’¬ Smart Query System

  • Natural language understanding for portfolio queries
  • Hybrid NLP + LLM architecture for fast, accurate responses
  • Context-aware follow-up question handling
  • Technology-based filtering and search

πŸŽ™οΈ Voice Interaction

  • Real-time voice-to-text transcription (Whisper)
  • Natural text-to-speech responses (ElevenLabs TTS)
  • Voice activity detection for seamless conversation
  • <500ms local latency for complete voice processing cycles

πŸ“Š AI Session Logging

  • All interactions logged to Supabase database
  • Session tracking and analytics
  • Query history and user insights

✍️ Digital Guestbook

  • Canvas-based signature drawing
  • Emoji selection
  • Persistent storage in Supabase
  • Infinite scroll pagination

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Frontend  β”‚  Next.js + React + Tailwind CSS
β”‚  (Vercel)   β”‚
β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
       β”‚
       β”‚ HTTPS
       β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Backend   β”‚  FastAPI + Python
β”‚ (HF Spaces) β”‚
β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
       β”‚
       β”œβ”€β”€β”€β”€β”€β”€β–Ί Groq LLM (Qwen2.5-7B-Instant)
       β”œβ”€β”€β”€β”€β”€β”€β–Ί Whisper (Speech-to-Text)
       β”œβ”€β”€β”€β”€β”€β”€β–Ί ElevenLabs (Text-to-Speech)
       └──────► Supabase (PostgreSQL Database)

Tech Stack

Frontend: Next.js 14, React 18, Tailwind CSS, TypeScript
Backend: FastAPI, Python 3.9+, Groq API, Whisper, ElevenLabs TTS
Database: Supabase (PostgreSQL)
Deployment: Vercel (Frontend), Hugging Face Spaces (Backend)


πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Python 3.9+
  • Supabase Account (free tier)
  • Groq API Key (free tier)
  • ElevenLabs API Key

1. Clone & Setup Backend

git clone https://github.com/Ntropy86/conversational.git
cd conversational/backend

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Edit .env with your keys (GROQ_API_KEY, ELEVENLABS_API_KEY, SUPABASE_URL, SUPABASE_ANON_KEY)

# Run database schema in Supabase SQL Editor (supabase_schema.sql)

# Start backend
python api_server.py

2. Setup Frontend

cd ../frontend
npm install

# Configure environment
cp .env.example .env.local
# Edit NEXT_PUBLIC_API_URL (default: http://localhost:8000)

# Start frontend
npm run dev

Visit http://localhost:3000


πŸ“¦ Project Structure

conversational/
β”œβ”€β”€ frontend/           # Next.js app (Vercel)
β”‚   β”œβ”€β”€ src/hooks/      # useUniversalVAD, voice processing
β”‚   β”œβ”€β”€ src/context/    # AI agent state management  
β”‚   └── src/components/ # Voice interface components
β”œβ”€β”€ backend/            # FastAPI server (Hugging Face)
β”‚   β”œβ”€β”€ api_server.py         # REST endpoints + WebSocket
β”‚   β”œβ”€β”€ llm_service.py        # Groq integration
β”‚   β”œβ”€β”€ transcribe_service.py # Whisper STT processing
β”‚   β”œβ”€β”€ tts_service.py        # ElevenLabs TTS synthesis
β”‚   └── resume_query_processor.py # NLP + RAG implementation
β”œβ”€β”€ hf-backend/         # Production deployment
└── docs/               # Documentation
    β”œβ”€β”€ screenshots/    # Demo images
    └── backend/        # Session fix guide

πŸ—„οΈ Database Setup

  1. Create Supabase project: supabase.com
  2. Run backend/supabase_schema.sql in SQL Editor
  3. Get credentials from Settings β†’ API
  4. Add to .env: SUPABASE_URL and SUPABASE_ANON_KEY

🚒 Deployment

Frontend (Vercel):

cd frontend
vercel
# Add NEXT_PUBLIC_API_URL in Vercel dashboard

Backend (Hugging Face):
See hf-backend/HUGGINGFACE_DEPLOYMENT.md for full guide


πŸ“– Documentation

  • Session Fix Guide: docs/backend/SESSION_FIX_SUMMARY.md
  • API Docs: http://localhost:8000/docs (when running)
  • HF Deployment: hf-backend/HUGGINGFACE_DEPLOYMENT.md

🀝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/name)
  3. Commit changes (git commit -m 'Add feature')
  4. Push (git push origin feature/name)
  5. Open Pull Request

πŸ“„ License

MIT License - see LICENSE file for details


πŸ™ Acknowledgments

Groq β€’ Supabase β€’ Hugging Face β€’ Vercel β€’ OpenAI Whisper β€’ ElevenLabs


Created by Ntropy86
⭐ Star this repo if you found it helpful!

  • HF Deployment: hf-backend/HUGGINGFACE_DEPLOYMENT.md

🀝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/name)
  3. Commit changes (git commit -m 'Add feature')
  4. Push (git push origin feature/name)
  5. Open Pull Request

πŸ“„ License

MIT License - see LICENSE file for details


πŸ™ Acknowledgments

Groq β€’ Supabase β€’ Hugging Face β€’ Vercel β€’ OpenAI Whisper β€’ Edge TTS


Created by Ntropy86
⭐ Star this repo if you found it helpful!

About

Personal Website using an Intelligent and Hybrid Chat and Voice Bot catered specifically for my resume and professional work.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published