Import books
CSV with title, author, label (0, 1 or 2; blank = unlabeled), optional isbn, year, pages, category, language. Or a Booksmith .json library.
Predict how you'd rate a book from what can be learned about it.
CSV with title, author, label (0, 1 or 2; blank = unlabeled), optional isbn, year, pages, category, language. Or a Booksmith .json library.
Looks up each book on Open Library (about 2.5 s per book). It runs on the server, so you can close this tab while it works; every lookup is saved.
Claude writes a profile of each book (genre, themes, tone, style, reception) to fill gaps in catalogue data. Every profile is saved on the server by model and prompt version, so it's never paid for twice. With Haiku, about $0.40 for 2,000 books; 50 or more go through the Batches API at half price.
Author profiles describe each book's first-listed author (genres, themes, style, era, standing), so books by authors you haven't read can be matched to ones you have. About $0.20 for 1,100 authors with Haiku.
Add ANTHROPIC_API_KEY to the server's .env and restart it to use Claude ().
Embeds each book's text with Gemini (gemini-embedding-2), then fits a classifier on the embeddings plus a few factors, such as your history with the author. It's scored by training on earlier years and predicting later ones, and by cross-validation. Embeddings are cached, so retraining only embeds what changed.
| Book | Year | Pages | Metadata | Label | Predicted |
|---|
Rows are your labels, columns are what the model predicted for the book while it was held out of training.
Claude rates a sample of your labeled books it hasn't seen the labels of, given the 12 most similar books you have labeled. Its answers are scored against the trained model's cross-validated predictions on the same books. Roughly $0.001 per book with Haiku and $0.02 with Sonnet. The last run for each model is kept.