Knowledge Gem

Tests knowledge on various topics.

What it does

In the Question input box enter which topic you want to take the test and select how many questions you want. Then click on "Take Test" then the app will make an api call to the Gemini with the topic and number of questions. API will use the model "gemini-1.5-flash" and type as "json" ie, generationConfig: GenerationConfig(responseMimeType: 'application/json'. App will make a request to the Gemini model with number of question, topic and the question model then Gemini will respond with the questions in json format. That json format will be used as the test. The prompt used for getting questions from the model:
prompt: 'Give $_selectedValue ${_questionsController.text} questions and options with answers in json with format $kFormat and different data on each time'
where _selectedValue is the value selected by the user and _questionController.text is the topic entered by the user and kFormat is the json format defined developer(me).
Without Gemini to achieve this we need to setup a backend with database and server and api calls but with Gemini we don't need any of that.
This just a demo for what we can do with Gemini, Any app which needs to get data from backend can be replaced with Gemini (we need to fine tune model according to our need).

Built with

  • Flutter

Team

By

Jagadeesh

From

India