Logo Lanfrica

KoomeMartin/campuslink

Domain:

digital infrastructure

Record type:

software
Creator:
Koo
Host:
CMU-Africa Campus Assistant # πŸŽ“ CMU-Africa Campus Assistant A modern, full-stack AI-powered campus assistant built with RAG (Retrieval-Augmented Generation) technology for CMU-Africa students, faculty, and staff. ## 🌟 Features ### Frontend (React + TypeScript + Tailwind CSS) - ✨ **Modern, Student-Friendly UI**: Beautiful, responsive design optimized for mobile and desktop - πŸ’¬ **Real-Time Chat Interface**: Smooth conversational experience with message history - 🎯 **Smart Suggestions**: Contextual suggestion pills displayed ABOVE the input box - πŸ“š **Collapsible Sources**: Expandable source citations for transparency - πŸ”„ **Follow-Up Questions**: AI-generated follow-up suggestions as clickable buttons - 🎨 **Attractive Design**: CMU-branded colors with smooth animations ### Backend (Python FastAPI) - πŸ€– **Strict RAG Pipeline**: No hallucination - only context-based responses - πŸ” **Vector Search**: Pinecone integration for semantic search - 🧠 **OpenAI Integration**: GPT-4 for intelligent response generation - πŸ“Š **Structured JSON Responses**: Consistent format with answer, sources, suggestions, and follow-ups - πŸ›‘οΈ **Error Handling**: Robust fallback mechanisms - πŸš€ **Fast & Scalable**: Async FastAPI for high performance ### Key Capabilities - **Academic Information**: Programs, courses, requirements - **Transportation**: Shuttle schedules, routes, tracking - **Campus Life**: Events, clubs, activities - **Housing**: Options, applications, availability - **General Inquiries**: Library hours, contact info, facilities ## πŸ“ Project Structure ``` cmu-africa-campus-assistant/ β”œβ”€β”€ backend/ β”‚ β”œβ”€β”€ main.py # FastAPI application β”‚ β”œβ”€β”€ rag_pipeline.py # Enhanced RAG pipeline β”‚ β”œβ”€β”€ requirements.txt # Python dependencies β”‚ β”œβ”€β”€ .env.example # Environment variables template β”‚ └── load_knowledge_base.py # Script to load sample data β”œβ”€β”€ frontend/ β”‚ β”œβ”€β”€ public/ β”‚ β”‚ └── index.html β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ components/ # React components β”‚ β”‚ β”‚ β”œβ”€β”€ C …