A deep dive into how to improve related-post recommendations on a blog using embeddings, cosine similarity, and scoring thresholds — including implementation strategies and algorithm design.
Learn how to enhance your Astro blog with intelligent “Similar Posts” using cosine similarity and embeddings. A static-friendly, semantic approach to content discovery without a server.
An inside look at improving the “Similar Posts” component using OpenAI embeddings and cosine similarity, with a clean 1–3 post display based on semantic relevance.
Avoid repeated OpenAI API calls by caching embeddings with SQLite. A lightweight, cost-effective solution to keep your Astro site builds fast and affordable.