digitalex / recz

A lightweight, fast recommendation system for item-to-item recommendations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recz

Recz is a lightweight, fast recommendation system for item-to-item recommendations.

Setup

Recz takes as input a file with pairs of itemId, sessionId, e.g.:

NO0000000982506379 01d3fc5d9f23e8838ad21334aeac4cd1
NO0000000982506379 01d3fc5d9f23e8838ad21334aeac4cd1
NO0000000952507729 23d9c7fe7fc6ec66ae9183504cdbc2f1
NO0000000990891370 d7174e5c77eca009d8782cd6a6b76c47
NO0000000990891370 3aa320519fe006c7b38a3edf705e7f7a

Start the server simply like this:

./server.py < input.txt

Test it:

curl "http://localhost:8888/recommend?itemId=NO0000000995516055&k=3"
# example output: {"itemIds": ["NO0000000930668656", "NO0000000993905321", "NO0000000895476722"]}

About

A lightweight, fast recommendation system for item-to-item recommendations


Languages

Language:Python 100.0%