Login

Minimum Requirements for Datasets and Schema

In the following sections, we show the minimum requirements for your datasets and schemas.

Please be aware that there is a standard interactions schema and then there is a session based interactions schema. The minimum requirements for the two are different.

Dataset Type Required Fields Examples

Interactions

user_id(string) 4757
item_id(integer) 10053
event_date(timestamp) 2022-01-25 00:00:00
event_type(string) “quantity” | “duration”
event_value(float, null) 14 | 115.42

Interactions (Session Based)

user_id(string) 10002541
item_id(integer) 4542155
event_date(timestamp) 2022-01-25 00:00:00
event_type(string) “quantity” | “duration”
event_value(float, null) 14 | 115.42
session_id(string) “a79dc177-91dc-435a-abbf”
session_context(string) “family”
Users user_id(string) 4012
created_dt(timestamp) 2022-02-14 00:00:00
Items item_id (string) 10177
created_dt(timestamp) 2022-03-05 00:00:00
Example Minimum Requirement Interactions Schema (Non-Session Based)
{
	"name": "user_item_interaction",
	"namespace": "com.xineoh.recommender.schema",
	"fields": [
		{
			"name": "user_id",
			"type": "string"
		},
		{
			"name": "item_id",
			"type": "integer"
		},
		{
			"name": "event_type",
			"type": "string",
		},
		{
			"name": "event_value",
			"type": "float"
		},
		{
			"name": "event_date",
			"type": "timestamp"
		}
	],
	"version": "1.0"
}
Example Minimum Requirement Interactions Schema (Session Based)
{
    "name": "user_item_interaction",
    "namespace": "com.xineoh.recommender.schema",
    "fields": [
        {
            "name": "user_id",
            "type": "string"
        },
        {
            "name": "item_id",
            "type": "string"
        },
        {
            "name": "event_type",
            "type": "string",
            "measurement": "ordinal"
        },
        {
            "name": "event_value",
            "type": "float"
        },
        {
            "name": "event_date",
            "type": "timestamp"
        },
        {
            "name": "session_id",
            "type": "string"
        },
        {
            "name": "session_context",
            "type": "string"
        }
    ],
    "version": "1.0"
}
Example Minimum Requirement Users Schema
{
	"name": "user_meta_data",
	"namespace": "com.xineoh.recommender.schema",
	"fields": [
		{
			"name": "user_id",
			"label": "user",
			"type": "integer"
		},
		{
			"name": "created_dt",
			"type": "timestamp"
		}
	],
	"version": "1.0"
}
Example Minimum Requirement Items Schema

The following is the default Media application schema for Items datasets.

{
	"name": "item_meta_data",
	"namespace": "com.xineoh.recommender.schema",
	"fields": [
		{
			"name": "item_id",
			"label": "item",
			"type": "integer"
		},
		{
			"name": "created_dt",
			"type": "timestamp"
		}
	],
	"version": "1.0"
}