Data Machines
...
Models Supported by Data Machi...
Activity Models

Fetch Similar Objects

5min
while the recommendations docid\ dhm7hfibldp 0pjvlaak3 model provides results based on a user's past activity gathered through qualetics data streaming docid\ vku08owje1j2 quxcf6 k , this model is a more specific implementation to fetch similar objects based on a product description, title or any other attribute user activity is not considered for these results however, qualetics data streaming is required as this model is dependent on data for fine tuning the recommendation engine to your organization's data the data required for providing recommendations will be gathered from the user activity streamed as part of the events and the object docid\ l3qohcp0zpxzqtv7z4r6p data for each event please refer to the instructions in the object configuration to enable indexing on the entities that need to be included in the recommendation engine this model is best suited when a list of recommendations need to be provided to the user based on their activity over the past 7 days the results can be fine tuned based by limiting the recommendations to be gathered from specific actions performed by the user for example in an ecommerce application, the recommendations can be based on only those products that the user has purchased in the past and other actions such as add to cart, comparison, saving to wish list can be ignore if no action name is provided in the input parameters, all actions will be considered as candidates for recommendation additionally, the results can be further finetuned based on object features such as title, description, specifications etc so that only data present in those fields will be considered for performing a comparison search note data streaming docid\ vku08owje1j2 quxcf6 k integration is required for this model please complete the integration setup, verifying data connection docid 4iiuungko4l0wf64u ywk and ensure that the streaming is going live docid\ yuos evgre81ztel8fwdi before using this model model input parameters parameter name parameter type required input text yes object type text yes result count number rest api example var settings = { "url" "https //mlapi qualetics com/api/datamachine/init?id=656d4f05547a5b6b791c2213", "method" "post", "headers" { //add authorization headers here "content type" "application/json" }, "data" json stringify({ "input" "women's shirts", "object type" "product", "result count" "3" }), }; $ ajax(settings) done(function (response) { console log(response); }); model output result parameter name parameter type info recommendations json array contains an array of json objects with each object containing the id of the object, result based on the feature specified and the similarity score indicating the match with the user's previous activity rest api output example { "input" "women's shirts", "original input" "women's shirts", "recommendations" \[ { "id" "44ba5da50944932e29442a4d066388f4", "result" "modo vivendi casual short sleeve solid womens top price $99 summer floral lace short sleeve womens shirtsummer floral lace short sleeve womens shirt modo vivendi casual short sleeve solid womens toptruemodo vivendi casual short sleeve solid womens topclothing womens clothing western wear shirts tops tunics tops modo vivendi tops", "similarity" 84 41 }, { "id" "ebd53621ef37807f0d60dbde419a1189", "result" "studio casual sleeveless printed womens toptrueozel studio casual sleeveless printed womens topclothing womens clothing western wear shirts tops tunics tops ozel studio tops", "similarity" 84 55 }, { "id" "4d65336a84de9fce6b0753befe9bc4b3", "result" "wowww casual short sleeve solid women's top price $85 a black plain top has an attached black and white inner which spies out adding a style to the top wear it up with a pair of shorts or jeans for an offbeat look a black plain top has an attached black and white inner which spies out adding a style to the top wear it up with a pair of shorts or jeans for an offbeat look ,wowww casual short sleeve solid women's top,true,wowww casual short sleeve solid women's top,clothing >> women's clothing >> western wear >> shirts, tops & tunics >> tops >> wowww tops", "similarity" 84 87 } ], "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