Adaptive testing and dynamic form generation | Community
Skip to main content
Question

Adaptive testing and dynamic form generation

  • November 19, 2024
  • 4 replies
  • 48 views

Hi! 

I want to implement diagnostic assessment as dynamic, adaptive questioning and now in search of tools, frameworks, and approaches for the implementation

Concept overview:

  • Question pool: I have a set of N questions, each assigned a specific difficulty level.
  • Adaptive logic: The test begins with a question of medium difficulty. After each response, the system updates the student's proficiency level and selects the next question to ensure there's a 50% probability the student can answer it correctly. If the student answers correctly, the subsequent question becomes more challenging; if not, it becomes easier.

Key Functionality:

  1. All questions and their difficulty levels are stored in an external database.
  2. The form dynamically generates the next question immediately after the current one is answered, based on the updated student level.

Goal:
I have programming experience and aim to design a solution that functions well as an MVP and is scalable for future enhancements.

Question:  
I'm planning to integrate Typeform with an external Python script to manage the adaptive logic. What tools or frameworks would you recommend for this? Are there any effective alternative approaches? If anyone has experience with similar projects or suggestions on best practices, I would really the feedback))

Thank you in advance for your help!

4 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • November 19, 2024

Hi ​@IArina Oh wow! This is quite the setup. Tagging ​@mathio and ​@picsoung in case they have any examples of using Python to set this up!


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • November 20, 2024

Hi ​@IArina this sounds like a very exciting project. 

I am sorry ​but I have no experience with Python. If your language of choice is JavaScript or Typescript I’d be happy to help.


  • Author
  • Explorer
  • 1 reply
  • November 20, 2024

Hi ​@mathio! Yeah, Python is just a suggestion, will be very-very grateful for tips in using JavaScript in this case)


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • November 21, 2024

Actually I think I can give some general pointers independent from the language used.

I’d suggest the following setup:

  • manually create first form
  • add a redirect on submit to your server endpoint
  • when the form is submitted, respondent is redirected to your server (you can display “loading” state while you process everything)
  • you can retrieve their response using our Responses API
  • add business logic to process the response data and retrieve next questions
  • you can use our Create API to dynamically build the new form
    • make sure to setup a proper redirect for this new form too
  • then redirect the respondent to the URL of the newly created form
  • respondent lands on the new form
  • after submitting the form they will be redirected to your server again, and you can repeat the process

Feel free to share any code you might have.


Reply