Your First LLM-powered Application with Next.js & Vercel
/api/healthHealth check endpoint to verify API status
/api/chatChat endpoint for AI conversations
Body: JSON with developer_message, user_message, model, api_key
/api/upload-pdfUpload and index PDF for RAG
Body: FormData with file, api_key, user_id
/api/rag-chatChat with uploaded PDF using RAG
Body: JSON with user_message, model, api_key, user_id
/api/rag-status/{user_id}Check RAG index status for a user
This ID persists across sessions to track your conversations
Get your API key from OpenAI Platform
Built with Next.js and deployed on Vercel
🚀 Part of the AI Engineer Challenge by AI Makerspace