Generating Assessments using Gen AI -- Part 2

Generating Assessments using Gen AI -- Part 2

This is in continuation to the article https://www.dhirubhai.net/feed/update/urn:li:ugcPost:7247252001732931584/

The previous article shared a perspective on Generation of Assessments.

As much as manual Generation of Assessments takes time, manual Validation of Assessments takes an equal amount of time.

Just like Generation, Validation can also be automated. One can apply multiple levels of Validations. One can apply either one of them or all of them and then proceed to Human in Loop. This will save a considerable time and effort.


On an average of multiple runs, the observation is 90% of Generated Assessments in Step 1 gets cleared in Step 2. The mismatch can be routed to the Human in Loop for further validation. A complex workflow can be built to have multiple validation pipelines thereby reducing the burden on Human in Loop intervention. The critical aspect in each scenario is the articulation of reasoning, this will further help Human in Loop.

Here is a look at the prompt for validation.

In addition to the options generated by Step 1, the following are included in Step 2 and seek LLM to revert to one of the options in case there is a dilemma

  • I do not know
  • The right option is not listed

var systemPromptForValidation = `You are an expert in AI literature. Answer the following questions to the best of your knowledge. 
You will be prompted with a set of questions and a set of options for each question, choose only one of the right options for each question 
that accurately reflects the ask and also articulate why its the right answer. If you do not know the answer to any question, 
please say I do not know. If the right accurate option for the question does not exist, please say The right option is not listed`

func getPromptRefinedforValidation(allQuizes []assessmentDataforMap) string {

	var promptTemplate string

	var stepsSequencePrompt string

	stepsPrompt := `

	The following are the Questions and the Options.
	Questions are delimited by $$$
	Options are delimited by ###

	$$$
	Question %d:
	%s
	$$$
	###
	Options:
	%s
	%s
	%s
	%s
	I do not know
	The right option is not listed
	###`

	for outIdx := 0; outIdx < len(allQuizes); outIdx++ {
		stepsPromptInit := fmt.Sprintf(stepsPrompt, outIdx, allQuizes[outIdx].Question, allQuizes[outIdx].AllOptions[0],
			allQuizes[outIdx].AllOptions[1], allQuizes[outIdx].AllOptions[2], allQuizes[outIdx].AllOptions[3])
		stepsSequencePrompt = stepsSequencePrompt + stepsPromptInit
	}

	outputforPrompt := `
	
	The following will be part of the results
	1) Question as Question
	2) Answer as ValidatedAnswer
	3) Reasoning as ValidatedReasoning

	Return the results using this JSON schema:
	ValidatedAssessment = {
	'Question' : string
	'ValidatedAnswer': string
	'ValidatedReasoning': string
	}
	Return: Array<ValidatedAssessment>`

	promptTemplate = fmt.Sprintf("\n  %s \n %s", stepsSequencePrompt, outputforPrompt)

	return promptTemplate

}        

Here is the code base in golang https://github.com/elmoOreo/goGeminiAssessmentGen. Due to some issues with goroutine implementation I have consciously put a sleep of 60 seconds to let the goroutine execution finish smoothly so that there are no concurrent access to maps.






Aparna Vedam

Director - Competency & Engagement on GenAI | IIM Rohtak | Winner of L&D Technology Champion Award | Certified SAFe? 5 Agilist

4 个月

Very helpful!! As intricate and complex this is, it is equally easy for someone who wishes to curate and assess themselves on such niche skills! With a highly competitive turnaround time compared to external vendors, this is such a win-win solution!! I’m happy Vishwa ??

Surya Gollapudi

Data science | Machine Learning | Generative AI | Deep Learning | Natural Language Processing | AWS | Azure.

4 个月

Generative AI is transforming the way we approach assessments by offering personalized, efficient, and scalable solutions. From creating diverse question types to providing instant feedback, AI-driven assessments not only save time but also enhance learning outcomes. It's exciting to see how this technology is reducing bias and improving accessibility in education and professional training. The future of assessments is adaptive, cost-effective, and tailored to individual needs.

Anindita Desarkar, PhD

PhD in CSE (JU) || Product Owner || Gen AI Practitioner || Director @LTIMindtree|| Dedicated Researcher in Data Science, Gen AI || Mentor || Patents on AI/DS/Gen AI

4 个月

Great one! It will definitely help industry and academia in various ways! A few of them are: Personalized Learning: People/Students can judge their knowledge base automatically and based on that they can choose the next course of actions! Immediate Feedback: Users will get immediate feedback with reasoning, allowing them to identify areas for improvement.? Increased Efficiency: Saves lots of time and manual effort which can be spent on some other productive work. Highly Scalable: Can be deployed for multiple topics/subjects at the same time as everything is automated. Data-Driven Insights/Analytics: The evaluation result can be analyzed further to identify trends, strengths, and weaknesses for the whole group so that next set of actions can be decided easily. Remote learning: It provides flexibility and access for remote users.

要查看或添加评论,请登录

Vishwanathan Raman的更多文章

  • Generating Assessments using Gen AI

    Generating Assessments using Gen AI

    Assessment Generation has always been a task of a SME. It is a complex and time consuming task of both Development &…

    5 条评论
  • Flutter/Dart, Gemini API

    Flutter/Dart, Gemini API

    #ignAIte, #AI, #GenAI The past few weeks have been crazy, relearning a lost knowledge and then creating something fun…

    7 条评论
  • Github Co-Pilot -- Part 3

    Github Co-Pilot -- Part 3

    This is a continuation to my earlier article I am just starting from the place I left off. Its time for some complex…

    4 条评论
  • Github Co-Pilot -- Part 2

    Github Co-Pilot -- Part 2

    This is a continuation to my earlier article Scenario based code generation 3 - CSV file as a reference and mongodb as…

    2 条评论
  • Github Co-Pilot -- Part 1

    Github Co-Pilot -- Part 1

    Co-Pilot is an interesting topic within the Gen AI landscape and one of the most widely adopted areas. A report by…

    2 条评论
  • Gen AI -- Quantised Models -- llama.cpp -- Long Weekend Project Part 3

    Gen AI -- Quantised Models -- llama.cpp -- Long Weekend Project Part 3

    Here are the links to the my earlier articles first article, second article on building a Gen AI solution on the…

    3 条评论
  • Gen AI -- Long Weekend Project Part 2

    Gen AI -- Long Weekend Project Part 2

    Here is the followup to my first article I remember the phrase "When the GOING gets tough the TOUGH gets going" and…

    2 条评论
  • Gen AI Weekend Project

    Gen AI Weekend Project

    The World Cup is on. The match against PAK on 14-Oct was anti-climax, maybe our Indian team was too good for the other…

    8 条评论
  • Lessons learnt using Golang and MongoDB

    Lessons learnt using Golang and MongoDB

    This past quarter I have been experimenting with Golang and this past week in particular, my downtime from work, I have…

  • Golang Quirkiness

    Golang Quirkiness

    Over last few days I have been fiddling with Golang and was quick to realize that it was not for faint heart…

社区洞察