A Simple Content-Based Recommendation Engine in Python

Let’s pretend we need to build a recommendation engine for an eCommerce web site.

There are basically two types of approaches that you can take: content-based and collaborative-filtering. We’ll look at some pros and cons of each approach, and then we’ll dig into a simple implementation (ready for deployment on Heroku!) of a content-based engine.

For a sneak peak at the results of this approach, take a look at how we use a nearly-identical recommendation enginein production at Grove.