🤖 AI Engineer Challenge

Your First LLM-powered Application with Next.js & Vercel

⚙️Admin Tools

📁
Upload PDF
Add content to vector DB

🔍API Status

🔄 Checking...

📄PDF Upload & RAG

📡Available Endpoints

GET/api/health

Health check endpoint to verify API status

POST/api/chat

Chat endpoint for AI conversations

Body: JSON with developer_message, user_message, model, api_key

POST/api/upload-pdf

Upload and index PDF for RAG

Body: FormData with file, api_key, user_id

POST/api/rag-chat

Chat with uploaded PDF using RAG

Body: JSON with user_message, model, api_key, user_id

GET/api/rag-status/{user_id}

Check RAG index status for a user

💬Test Chat API

Generating...

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