Daily Edition · Page 4

THE DAILY INDEX

Technology, AI, software, security, crypto and business

GENERAL

TLDR Web Dev

REWRITING MY WEBSITE IN PLAIN HTML AND CSS

This developer rewrote their simple website from SvelteKit to plain HTML and CSS due to frustration with the Javascript bundler and build process, available free time, and a desire to migrate to Cloudflare Pages. The rewrite involved using Pandoc to convert Markdown blog posts to HTML, Python with the `uv` library for scripting, and the `http.server` module for serving the site. The result was a significantly smaller website (~88kb vs ~356kb).

DON'T USE COSINE SIMILARITY CARELESSLY

Using cosine similarity carelessly when comparing vectors generated from text embeddings can be problematic. While seemingly simple and widely used, cosine similarity often fails to capture true semantic similarity, instead focusing on superficial aspects like writing style or matching questions to questions rather than questions to answers. More effective approaches include directly querying LLMs for similarity comparisons, training task-specific embeddings, and pre-processing text to remove irrelevant information before embedding.

TLDR IndexPage 4