Demo chatbot application which will utilize Gemini and Vercel AI SDK. Currently, the project is able to generate text responses and generate quizzes based on the user input.
- Docker and Docker Compose
- Backend API (see setup below)
First, set up the backend API: https://github.com/jaggerharness/chat-widget-backend
How To Use
Development
docker compose watch devProduction
docker compose up --build prodTest - Container will rm automatically after tests
docker compose run --rm testStop Containers
docker compose downExample quiz response
{
"quiz": {
"title": "General Knowledge Quiz",
"questions": [
{
"question": "What is the capital of Australia?",
"options": [
"Sydney",
"Melbourne",
"Canberra",
"Perth"
],
"correctAnswer": "Canberra"
},
{
"question": "Which planet is known as the 'Red Planet'?",
"options": [
"Venus",
"Mars",
"Jupiter",
"Saturn"
],
"correctAnswer": "Mars"
},
{
"question": "What is the chemical symbol for gold?",
"options": [
"Au",
"Ag",
"Fe",
"Cu"
],
"correctAnswer": "Au"
},
{
"question": "Who painted the Mona Lisa?",
"options": [
"Vincent van Gogh",
"Leonardo da Vinci",
"Pablo Picasso",
"Michelangelo"
],
"correctAnswer": "Leonardo da Vinci"
},
{
"question": "What is the largest ocean on Earth?",
"options": [
"Atlantic Ocean",
"Indian Ocean",
"Arctic Ocean",
"Pacific Ocean"
],
"correctAnswer": "Pacific Ocean"
}
]
}
}