55 points · by n_siddharth · 8y ago · 11 comments
Here are a few links I found online while researching this.
https://www.elastic.co/blog/looking-at-content-recommendation-through-a-search-lens
https://mapr.com/blog/inside-look-at-components-of-recommendation-engine/#.VSv8o_nF81J
At the moment, keras embedding model, multiprocessing, annoy, and emitting csv (object id, other object id, score) as a batch process and loading it in my database. Queryti recommend. This trades a prebuilt for near instant runtime and — near Nothing net new to break.
I’m working at commercial — 2-5 million item — scale, not ‘internet scale’ billions of items.
Hope that helps.
Also you can check 'Mahout in Action' book - part 1 is about recommendations and it explains everything that you need to know for building your own recommendation engine.
Fortunately, building a recommendation system is not that hard. Google and read up on postgresql's ts_vectors and refresh your linear algebra. You probably will have to make some trade-offs; the more personalized the recommendations, the less likely it is to scale well.
Note: It was over seven years since I worked with a recommendation system. The prebuilt solutions might have improved since then.
1. Decide whether you are okay with a batch approach or an online learning approach or a hybrid.
2. Start simple with a batch approach (similar to what you are doing):
a) Get features ready from your dataset (assuming you have interaction data) : Pre-processing via some big data framework (Map Reduce, Data flow etc)
b) Build a vector space and nearest neighbors datastructures.
c) Stick both into a database optimized for reads
d) Stick a service in front of it and serve.
Once you are happy with 2, you can try out variations involving either online updates to your recommender system which involves changes to the type of database you might want to optimize. etc