Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A lightweight, fast recommendation system for item-to-item recommendations
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
dumper.py
recz.py
server.py

README.md

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"]}
Something went wrong with that request. Please try again.