Cosine similarity vs. dot product for embedding search
Rank three vectors by cosine similarity and dot product, then normalize them. Learn why a longer embedding can win and how to check a search index migration.
Artificial Intelligence3 min read
Category
5 articles in this category.
Rank three vectors by cosine similarity and dot product, then normalize them. Learn why a longer embedding can win and how to check a search index migration.
Artificial Intelligence3 min read
Estimate the API cost of 1,000 chat requests from input and output tokens. Work through short chats, repeated history and retries using dated model prices.
Artificial Intelligence4 min read
Run a four-question retrieval test on extracted PDF table rows. Compare row-only chunks with repeated headers and separate retrieval errors from answer errors.
Artificial Intelligence4 min read
Score the same ranked documents with Recall@3, hit rate and MRR@3. See which metric detects missing evidence and which detects a useful result arriving late.
Artificial Intelligence3 min read
Build a small support-ticket test set, catch a valid JSON response with the wrong label, and run the same prompt evaluation locally and in GitHub Actions.
Artificial Intelligence3 min read