Class: AssessmentGeneratorService

AssessmentGeneratorService()

Generates Assesments from a given context ----------------------------------------------------- Accepts a context and generates Assessments of types/modes: * Multiple Choice, * True or False, * Fill in the Blanks * Short Answer

Constructor

new AssessmentGeneratorService()

Source:

Methods

call(user, context, modeopt, num_questionsopt, num_choicesopt, engineopt) → {Promise.<Object>}

Parameters:
Name Type Attributes Default Description
user string The ID of the user accessing the Soffos API. This string will be used for throttling and profanity tracking. Soffos assumes that the owner of the api is an application (app) and that app has users. Soffos API will accept any string."
context string the prompt to be sent to the LLM
mode string <optional>
"short answer" The type/mode of assessment.
num_questions number <optional>
10 the location of the image to be processed
num_choices number <optional>
3 the location of the image to be processed
engine string <optional>
null The LLM engine to be used.
Source:
Returns:
qna_sets - The question and answer sets
Type
Promise.<Object>
Example
Examples are available at "https://github.com/Soffos-Inc/soffosai-js/tree/master/samples"

setInputConfigs(name, context, modeopt, num_questionsopt, num_choicesopt, engineopt)

Parameters:
Name Type Attributes Default Description
name string Reference name of this Service. It will be used by the Pipeline to reference this Service.
context string | InputConfig the prompt to be sent to the LLM
mode string | InputConfig <optional>
"short answer" The type/mode of assessment.
num_questions number | InputConfig <optional>
10 the location of the image to be processed
num_choices number | InputConfig <optional>
3 the location of the image to be processed
engine string <optional>
null The LLM engine to be used.
Source: