Test Gemini API Key
Click the button below to perform a simple test of your Gemini API Key configuration with Genkit. This helps verify if the API key in your
.env file is correctly set up and working.Test Firestore Write
Click to attempt writing a test document to your Firestore
firestoreConnectivityTests collection. Verifies connection and write permissions.Test Firestore Read (`processedLivrets`)
Click to attempt reading from your Firestore
processedLivrets collection. Verifies connection and read permissions. It will also attempt to fetch a specific document by ID (`SS5jXmp0vQgnCS1knZ8P`).Upload Exam Documents & Save to Database
Upload Questionnaire and Answers PDFs. Files go to Firebase Storage, then URLs are processed by a Genkit flow which attempts to parse the content and save a structured representation to Firestore in the `processedLivrets` collection.
Ensure Firebase Storage & Firestore are enabled with appropriate rules. Portfolio images should be pre-sliced and stored at `exams/YEAR/portfolio/page_X.jpg`. The AI will extract portfolio page references (e.g., "P. 9") from the Questionnaire.Verify Firebase config in
Ensure Firebase Storage & Firestore are enabled with appropriate rules. Portfolio images should be pre-sliced and stored at `exams/YEAR/portfolio/page_X.jpg`. The AI will extract portfolio page references (e.g., "P. 9") from the Questionnaire.Verify Firebase config in
.env and Gemini API key.Duplicate uploads (based on identical Questionnaire & Answers PDF URLs) will be detected and not re-processed by AI.Note on PDF Processing Time & Limits: AI processing of PDFs can take 20-60+ seconds. On deployed environments (like Netlify), this might exceed server function time limits (e.g., free/pro tier is often 10-15s). If uploads fail with generic errors or `499` status codes on the deployed site, check function logs for timeouts. Consider testing with smaller PDFs or upgrading hosting for longer processing times.
The "Portfolio PDF" upload has been removed from this form. Ensure pre-sliced portfolio pages (JPGs) are manually uploaded to Firebase Storage at paths like `exams/YEAR/portfolio/page_1.jpg`.