Swizec.com has added a Related Articles feature using GPT-4 embeddings. The feature helps readers navigate the large amount of content on the blog by providing recommendations based on similarity. The feature requires a database that supports vector similarity search, continual indexing of content, and fetching and rendering related articles. The chosen database for vector similarity search is Postgres with the pgvector extension. The implementation on swizec.com uses Vercel's white-labeled Neon database.
Table of contents
Database that supports vector similarity searchContinually index your contentFetch and render related articlesBut does it work work?Learned something new? Read more Software Engineering Lessons from ProductionSort: