Data Machines
...
Models Supported by Data Machi...
NLP Models

Generate Text

4min
this model generates an output based on the information provided in the input along with the prompt containing detailed instructions on the nature of the response to be generated the more detailed the prompt, the more contextual the responses are model input parameters parameter name parameter type required input text yes prompt text yes attributes text no rest api example var settings = { "url" "https //mlapi qualetics com/api/datamachine/init?id=\<datamachine id>", "method" "post", "headers" { //add authorization headers here "content type" "application/json" }, "data" json stringify({ "input" "it’s back! taco bell has announced the return of the double decker taco, which is now on the menu at restaurants nationwide for a limited time ", "prompt" "provide a response to the statement as a health professional conscious of healthy eating habits ", "sessionid" "b96ec024 317b 4e4d 889b de1812a322c9" }), }; $ ajax(settings) done(function (response) { console log(response); }); model output result parameter name parameter type generated text text rest api output example the following is an example of text generation where the "prompt" provided to the model was "provide a response to the statement as a health professional conscious of healthy eating habits " { "input" "it’s back! taco bell has announced the return of the double decker taco, which is now on the menu at restaurants nationwide for a limited time", "original input" "it’s back! taco bell has announced the return of the double decker taco, which is now on the menu at restaurants nationwide for a limited time ", "generated text" "as a health professional, i am always conscious of promoting healthy eating habits to my clients while it may be exciting for some to hear about the return of the double decker taco at taco bell, it is important to remember that indulging in fast food should be done in moderation while it may be tempting to indulge in this limited time menu item, it is important to consider the nutritional value and potential health consequences of consuming it regularly as always, i encourage my clients to make informed and balanced choices when it comes to their food choices, and to prioritize whole, nutrient dense foods in their diet ", "final result" "as a health professional, i am always conscious of promoting healthy eating habits to my clients while it may be exciting for some to hear about the return of the double decker taco at taco bell, it is important to remember that indulging in fast food should be done in moderation while it may be tempting to indulge in this limited time menu item, it is important to consider the nutritional value and potential health consequences of consuming it regularly as always, i encourage my clients to make informed and balanced choices when it comes to their food choices, and to prioritize whole, nutrient dense foods in their diet ", "sessionid" "b96ec024 317b 4e4d 889b de1812a322c9", "status" "completed" } standard output parameters every model execution output consists of the following standard output parameters input the input string required for the model to extract the categories original input this is the input provided to the first step in model which is retained across multiple steps in a data machine workflow final result the result of the model executed in the final step of the data machine workflow sessionid a unique session id that is generated for every execution of a data machine which can be used to retain results across multiple sessions status the result of the data machine execution if all of the steps in a sequence are successfully executed, a value of "completed" is provided if the execution is interrupted at any point, a value of "terminated" is provided with the reason for termination