Hacker News new | ask | show | jobs
"Fireball" vs. "Make it go boom": Building a Semantic Search for D&D (centamori.com)
3 points by centamiv 173 days ago
1 comments

Hi HN,

I wrote a short post demonstrating how vector search works by building a D&D spell finder.

Instead of using a vector DB immediately, I implemented the cosine similarity math manually in PHP to demystify how embeddings actually work under the hood.

The code compares query vectors against a JSON dataset of spells to find matches by intent rather than keywords.