After delving into the realms of sports reports and movie assistants, our Generative AI Playground takes another turn. In this third article, we introduce you to our AI-powered quiz platform that transforms the traditional quiz format into an interactive, intelligent, and incredibly fun experience. The idea was to create a quiz that could be moderated by GPT, offering a dynamic way to generate questions, evaluate answers, and ensure the fun never stops. Even though this use case provides the ideal work break, it also illustrates how we can use this technology for other domains.
The concept of an online quiz is not new. However, traditional systems often fall short of recognizing slightly (in)correct answers due to typos or phrasing differences, leading to user frustration. Think of the “De Slimste Mens” app, once extremely popular in Belgium. While it functioned well to a certain extent, its rigid answer validation system could unjustly reject correct answers if they didn't precisely match the expected word or sentence.
We wanted to create something similar with the added flexibility Large Language Models (LLMs) offer. We built a quiz that could understand and evaluate answers with human-like judgment, allowing for near misses or alternate expressions… Introducing: Smarty Party!
The concept of Smarty Party is simple. In our quiz app, a player can pick any category that comes to mind. The system then generates questions based on this category, according to a chosen difficulty level. Other players must then answer these questions and the AI model checks if the answers are correct (enough). Even though the concept is simple, the execution is not. One LLM wasn’t enough in this case, so we decided to develop a multi-agent GPT system.
To bring Smarty Party to life, we employed a multi-agent GPT-4 system, each agent tasked with a specific role:
This multi-agent approach is crucial, as a single GPT model cannot meet the quiz system's diverse and dynamic requirements. Each agent, powered individually by GPT-4, is fine-tuned with specific instructions (prompts), enabling specialization, adaptability, and enhanced user engagement that a single model could not achieve.
Consider the human editorial team behind "De Slimste Mens Ter Wereld," with Erik Van Looy as the quizmaster. Behind the scenes, a whole team crafts questions, validates them in real-time, and more. Just as a real-life team specializes in various tasks, so does our "AI team”.
A technical highlight of this experiment is our use of the JSON mode of OpenAI. This mode instructs the model to always return a JSON object that makes sense for your use case by specifying this in the system message. In our case, a JSON output ensures that the output is structured in a way that can be directly used by the front-end for a seamless user experience. Working like this guarantees that the visual presentation is always consistent regardless of the query's complexity.
While "Smarty Party" focuses on creating an engaging quiz experience, the underlying technology has broad applications. This experiment highlights the power of generative AI in creating multi-agent teams that can work for any field, be it in education, human resources, or software development. To show the possibilities, we translated this experiment into some other use cases. Of course, this is a non-exhaustive list of what we could create:
Smarty Party represents a leap forward in how we interact with AI for entertainment and other use cases. By pushing the boundaries of what's possible with a multi-agent set-up. We're not just creating fun and games but also exploring new ways to learn, work, play, and most importantly: make sure cheaters can’t cheat 😉. As we continue exploring different technologies in the Generative AI Playground, we're excited about the endless possibilities these technologies bring to our lives. On to the next!
Written by
Daphné Vermeiren
Want to know more?