From 29f51d99c181e1d8332f3ca41db6f18b04cbfad2 Mon Sep 17 00:00:00 2001 From: Mingli Yuan Date: Wed, 4 Jun 2014 18:30:06 +0800 Subject: [PATCH] fix doc --- README.md | 54 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index bf31795..770f0b4 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,34 @@ After the uberjar is created, you can start the system > bin/start +A simple example +----------------- + +For example, we need to recommend articles to users, we may follow below steps: + +Setup + + > bmk b2048 t1 t2 t3 ... t2047 t2048 + > vmk b2048 article + > vmk b2048 userprofile + > rmk userprofile article cosinesq + +Fill data + + > vadd article 1 0.11 0.112 0.1123... + > vadd article 2 0.21 0.212 0.2123... + ... + + > vadd userprofile 1 0.11 0.112 0.1123... + > vadd userprofile 2 0.21 0.212 0.2123... + ... + +Query + + > rrec userprofile 2 article + +All commands are explained in next section. + Core commands -------------- Then you can use redis-cli to connect to simbase directly @@ -170,32 +198,6 @@ Recommendation related Recommend articles for user 87654321 -A simple example ------------------ - -For example, we need to recommend articles to users, we may follow below steps: - -Setup - - > bmk b2048 t1 t2 t3 ... t2047 t2048 - > vmk b2048 article - > vmk b2048 userprofile - > rmk userprofile article cosinesq - -Fill data - - > vadd article 1 0.11 0.112 0.1123... - > vadd article 2 0.21 0.212 0.2123... - ... - - > vadd userprofile 1 0.11 0.112 0.1123... - > vadd userprofile 2 0.21 0.212 0.2123... - ... - -Query - - > rrec userprofile 2 article - Licenses ---------