Do you want to build a recommender ⛄
I set out to help readers find their next book. Here’s what worked, what went wrong, and how I’m building Basil & Page’s first weekly recommender.

At some point while building a reading app, you arrive at a deceptively simple question:
“What should I read next?”
For Basil & Page, I wanted the answer to feel personal. If you enjoyed a book, I wanted to help you find something that carries a little of what made it work for you. Maybe that means a similar atmosphere, an unusual premise, or an author you would never have found otherwise.
I also wanted to leave room for discovery beyond the same familiar bestsellers. Popular books have their place, but a recommendation becomes interesting when it introduces you to something you might have missed.
That was the goal. Getting there has involved quite a few experiments—and one particularly persistent recommendation involving Wall Street.
Starting with one book
I started with a smaller question: given one book, can I find other books that seem meaningfully related?
That gave me something concrete to build and inspect before trying to understand an entire reader’s taste.
My initial approach combined two ways of comparing books. The first, TF-IDF, looks for distinctive words and phrases shared between descriptions. A word that appears everywhere contributes less than a phrase that helps distinguish one book from another.
The second uses an embedding model, initially MiniLM. It turns a description into a numerical representation that lets me compare meaning, even when two descriptions use different words.
Think of one method as noticing the words on the page, and the other as trying to recognize what those words are about.
I combined those signals in a hybrid recommender and built a local preview. I also explored other embedding models, including Nomic and Qwen, along with additional category and emotion signals.
Some results were encouraging. Others made me stop and ask what the system was actually learning.
When similar text means the wrong thing
One of the more revealing examples was a recommendation connecting ’Salem’s Lot with Rising Sun.
When I inspected the scores, some of the strongest shared terms were fragments of Open Library URLs embedded in the descriptions.
The system had found a real similarity. It just wasn’t a similarity a reader would care about.
Book descriptions are surprisingly messy inputs. Alongside the synopsis, they can contain source links, formatting, promotional language, references to other books, and declarations about bestselling authors. All of that can influence a model unless you deliberately account for it.
I tested removing the separately supplied book titles. That changed the results, but it didn’t fix the underlying problem.
I tried semantic-only ranking. That removed one obvious mismatch from the top results, but others remained.
Then I added more careful description cleanup, preserving the original catalog text while preparing a cleaner version for the models. I removed source URLs, reference clutter, and narrowly identifiable promotional wording without trying to rewrite the story itself.
The ’Salem’s Lot results started looking more plausibly connected to vampires and haunted houses. That was useful evidence, though a few better-looking examples are not enough to declare the recommender solved.
The Wall Street problem
A thriller called Black Box of Doom kept producing Out of the Box and onto Wall Street as a recommendation.
Removing the title input didn’t make it disappear. Cleaning the descriptions didn’t make it disappear. Switching to semantic-only ranking didn’t make it disappear either.
The descriptions still shared language around boxes, rules, and offers. A literal box in a thriller and figurative “out of the box” thinking in an investment-related book were close enough for the model to make an unhelpful connection.
I checked fresh model output to make sure I wasn’t looking at stale results. I also tried controlled wording substitutions to understand the mismatch. Those experiments suggested that the ambiguity mattered.
My response wasn’t to blacklist that particular book. That would make one screenshot look better without addressing the general problem.
Instead, I introduced a conservative compatibility check. When the available evidence clearly identifies one book as fiction and the other as nonfiction, the experimental index can exclude that pairing before choosing its nearest matches.
The word “clearly” matters. Plenty of books have incomplete or ambiguous metadata. In those cases, the check abstains rather than inventing a category.
That means it still misses things. There is another questionable nonfiction suggestion in the current weekly preview. Leaving it visible gives me a problem to investigate instead of a polished demo that conceals it.
The catalog matters as much as the model
The other lesson has been that a recommender can only choose from the books it can actually use.
My experiments run against a bounded catalog sample. Some books lack descriptions, some have too little usable text, and some need better identity or edition matching before they can participate reliably.
A larger model cannot compensate for a missing candidate. And a plausible recommendation is not useful if the app cannot connect it to the right book.
So the work has included catalog quality, reproducible indexes, and careful comparisons—not just model selection. I’ve kept earlier versions so I can compare changes without losing the baseline.
What version 1 will look like
For version 1, I’m bringing that work together in a weekly experience.
The current local preview uses cleaned descriptions and available subject information, semantic similarity, and the conservative fiction/nonfiction check. I’m keeping the original hybrid approach available for comparison. The latest preview is a working direction, not proof that one ranking method has won.
The experience I’m building is straightforward: a small set of books for your week, informed by your recent reading.
Behind the scenes, it works in two stages.
First, I calculate related books across the eligible catalog ahead of time. The app does not need to search the internet or run an embedding model every time someone opens Explore.
Then the system assembles a private weekly selection for each reader. The current implementation draws from up to ten recent finished or current reads, gathers candidates from their saved similarity lists, and filters out books already in the library or dismissed by that reader.
Low ratings, paused books, and did-not-finish entries are not treated as endorsements. I also avoid treating an unread wishlist as proof that someone enjoyed those books.
The selection spreads picks across starting books and authors, excludes recently pooled suggestions, and aims to show five recommendations. If there aren’t five eligible results, it shows fewer.
Once prepared, that week’s selection is saved. Returning to the page should feel like coming back to your picks, rather than pulling the handle on a machine and getting a different answer every time.
I keep replacement candidates available so that adding or dismissing a book can make room for another suggestion without rebuilding everything.
The local version can create a missing weekly selection on the first visit, and I’ve implemented a background preparation path. Production scheduling is still ahead of me.
More than one way to find your next read
Alongside weekly picks, book details will keep two distinct ways to explore: More like this book and More by this author.
Those serve different intentions. Sometimes you want a similar feeling. Sometimes you simply want another book by an author you already trust. Author browsing shouldn’t need an embedding score to justify its existence.
Explore will also bring together community playlists, a reader Top 10, and a way to pick your next read from books already in your unread library. Those are separate discovery paths, with different reasons for being useful.
I’ve built a local preview of a weekly email, too. It reads the same saved selection as the app, so the books in the message and the books you open should agree.
Sending is disabled. Before enabling it, I still need the notification controls and delivery safeguards, along with more confidence that the recommendations deserve a place in someone’s inbox.
What comes next
That confidence is the part I cannot get from passing software tests alone.
Tests can tell me that one reader cannot see another reader’s picks, that dismissed books stay excluded, and that a saved week remains stable. They cannot tell me whether a suggestion makes someone think, “I want to read that.”
For that, I need broader, deliberate review of the recommendations themselves.
Version 1 is taking shape locally, but it isn’t launched yet. I still have relevance problems to work through, catalog gaps to address, and production readiness work to finish.
I started with a simple question about what someone should read next. Building the answer has made me much more interested in the questions underneath it: what do I actually know about this book, what did the reader’s behavior really tell me, and why did this particular suggestion rise to the top?
Those questions are now part of how I’m building Basil & Page.
The goal is still the same: help you find a book you’re glad you discovered.
Recommendations are coming soon, and the Basil & Page iOS app has gone into testing. I’m looking forward to sharing both with you.
Conversation (0)
Comments are public and reviewed before appearing. Be kind and keep private information out of your comment.
No approved comments yet. Your thoughts are welcome.
Sign in to join the conversation