Get in touch
Email me at gorka@iand.dev gorka@iand.dev link
Interactive chatbot designed to help users prepare for the Microsoft AI-900 certification exam. The project leverages Next.js and Vercel’s AI SDK, featuring a quiz component with three difficulty levels, support for 16 languages, and powered by OpenAI’s GPT-4o-mini language model.
This project was born out of two main motivations:
Participation in the hackathon organized by developer and YouTuber Midudev in collaboration with Vercel, aimed at creating projects that utilize Vercel’s AI SDK.
Personal preparation for the Microsoft AI-900 certification exam. The existing practice tests from Microsoft often recycle the same 50-100 questions, which doesn’t provide comprehensive coverage of the entire syllabus.
Adding a OpenSource questions examples for the AI-900 exam as a json file for the community. (lib/chat/questions.json)
Built on top Next.js AI Chatbot template to leverage the AI SDK for UI streaming and LLM responses
Uses OpenAI’s GPT-4o-mini language model
Implements two system prompts with different tool calls for game management:
During gameplay:
presentNextQuestion
: Streams the main game componentprovideHint
: Offers a hintprovideExplanation
: Explains the previous question. We use Groq API to get the explanation.showScore
: Displays the current scoreAt game end (after 10 questions):
resetQuiz
: Resets the game and returns to the Home screenQuiz state is managed using localStorage to save results
More than 600 questions, created with ChatGPT 4o, the final quiz from the AI-900 learn.microsoft.com from every module, the AI-900 exam guide and samples from internet.
Managing language with LLM streaming to the component.
Initially, the project was conceived to have the LLM generate all questions and answers. This approach was abandoned due to the deterministic nature of LLMs, which resulted in limited question variety and incomplete coverage of the AI-900 syllabus. Instead, a custom GPT model was used to create a dataset of questions and correct answers based on Microsoft’s documentation, with the LLM filling on the fly the rest in the streamUI.
Other LLMs were tested but often failed in “tool calling” functions. OpenAI proved to be the most reliable option for this feature. For explaining the questions, we use Groq API with Llama 3.1 70.
provideExplanation
tool to ensure contextually accurate responsesTo get this project up and running on your local machine, follow these steps:
git clone https://github.com/GRKdev/ai-900.git
cd ai-900-quiz
npm install
.env.example
to .env
.env
file and add your OpenAI & Groq API keys:
OPENAI_API_KEY=your_api_key_here
GROQ_API_KEY=your_api_key_here
npm run dev
The chat template library is created by Vercel and Next.js team members, with contributions from:
Email me at gorka@iand.dev gorka@iand.dev link