A namespace is a container for all your recommendation data, items and ratings in one namespace do not affect another
To create a new namespace and click the plus / + icon next to namespaces
This will create a new namespace, with an API key which we will use to send HTTP requests
Ingesting data
Data ingestion happens in realtime, each event is a simple JSON payload with three main elements: user_id, item_id, and a score. Both user and item IDs are arbitrary, while score must be a number between 0 and 1
export API_KEY=INSERT YOUR API KEY
curl -X POST https://api.recomalytics.com/collect?apikey=$API_KEY \
-H "content-type: application/json" \
-d '{"user_id": "John", "item_id": "Carrots", "score": 0.7}'
Ingested data may take at most 60 seconds to appear in recommendations
Generating Recommendations
Recomalytics has 3 main kinds of recommendations:
Similar Items: lists the items most similar
Recommended similar items: lists similar items however the score and order are personalised for the requesting user
Recommended items: generates a list of items across all items with a score personalised for the requesting user
For the following examples, these commands were run before hand to populate recommendations:
This returns a list of the most similar items, with their item ID and their similarity score
Recommend Similar Items
Similar to above, a list of similar items will be returned however two scores will be provided, a similarity score and a personalised score. Results are ordered by the personalised score. An existing item and a user ID is required, and send to the /recommend endpoint