Skip to content
/ optiq Public

πŸŽ“ Optiq - AI powered study platform that will centralize all your study resources with AI assistance. Generate quizzes, flashcards, mind maps, and get personalized help through RAG-powered chat.

Notifications You must be signed in to change notification settings

osadavc/optiq

Repository files navigation

πŸŽ“ Optiq - AI-Powered Study Platform

Optiq is an AI-powered study platform that helps students centralize all their study resources in one place. Upload documents, generate interactive quizzes, flashcards, mind maps, and get personalized help through RAG-powered chat and voice interaction.

✨ Features

  • πŸ“š Document Upload & Processing: Upload PDFs, DOCX, and PPTX files with automatic text extraction and chunking
  • πŸ€– AI-Powered Chat: Get personalized answers from your study materials using RAG (Retrieval-Augmented Generation)
  • 🎯 Interactive Quizzes: Generate custom quizzes with multiple choice and short answer questions
  • πŸ“ Smart Flashcards: Create adaptive flashcards for effective memorization
  • 🧠 Mind Maps: Visualize concepts with interactive mind maps
  • πŸ“– Automatic Note Taking: Generate structured study notes from your materials
  • πŸŽ™οΈ Voice Assistant: Real-time voice interaction powered by Pipecat AI and WebRTC
  • πŸ” Semantic Search: Find relevant content across all your documents
  • πŸ“Š Progress Tracking: Monitor your learning progress and quiz results

πŸš€ Tech Stack

Frontend

  • Next.js 15 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • Assistant UI - AI chat interface components
  • Shadcn - Accessible UI components

Backend & AI

  • OpenAI GPT-4o-mini - Language model for chat and content generation
  • Pinecone - Vector database for document embeddings and search
  • FastAPI - Python backend for voice assistant
  • Pipecat AI - Real-time voice conversation pipeline
  • Deepgram - Speech-to-text and text-to-speech services

Database & Storage

  • Neon PostgreSQL - Serverless PostgreSQL database
  • Drizzle ORM - Type-safe database toolkit

πŸ› οΈ Prerequisites

Before running the application, make sure you have:

  • Node.js (v18 or later)
  • Python (v3.10 or later)
  • Yarn or npm
  • uv (for Python dependency management)

πŸ“‹ Environment Variables

Create a .env.local file in the root directory with the following variables:

# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key_here

# Database Configuration
DATABASE_URL=your_neon_postgresql_database_url_here

# Pinecone Configuration
PINECONE_API_KEY=your_pinecone_api_key_here
PINECONE_INDEX_NAME=optiq-documents
PINECONE_INDEX_HOST=your_pinecone_index_host_here

# Deepgram Configuration (for voice features)
DEEPGRAM_API_KEY=your_deepgram_api_key_here

πŸš€ Quick Start

# Clone and install dependencies
git clone https://github.com/yourusername/optiq.git
cd optiq
bun install

# Setup backend
cd backend && uv sync && cd ..

# Setup database
bun db:generate && bun db:migrate

# Start frontend (http://localhost:3000)
bun dev

# Start voice assistant backend (optional - http://localhost:7860)
cd backend && python main.py

πŸ“– Usage

  1. Upload Documents: Click the upload button to add PDF, DOCX, or PPTX files
  2. Chat with AI: Ask questions about your documents in the chat interface
  3. Generate Study Materials:
    • Say "quiz me on [topic]" to generate interactive quizzes
    • Say "create flashcards about [topic]" for study flashcards
    • Say "make a mind map of [topic]" for visual concept maps
    • Say "take notes on [topic]" for structured study notes
  4. Voice Assistant (WIP): Click the voice button to have real-time conversations about your materials
  5. Search & Explore: Use the search functionality to find specific content across all documents

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ› Issues & Support

If you encounter any issues or have questions, please open an issue in the GitHub repository.

About

πŸŽ“ Optiq - AI powered study platform that will centralize all your study resources with AI assistance. Generate quizzes, flashcards, mind maps, and get personalized help through RAG-powered chat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published