Urgent.News

What's breaking now, across thousands of outlets.

Tech

No Server, No Backend, Just Blazor WebAssembly Doing Semantic Search

๐Ÿš€ Semantic search on GitHub Pages with zero backend I recently added semantic search to the documentation site of my project, Blazing Story. The interesting part is that the site is a Blazor WebAssembly standalone app hosted on GitHub Pages. There is no server-side code, no API, and no database. Yet users can search documentation by meaning rather than exact keywords. Here's how I built it. ๐Ÿ”ฐโ€ฆ

Semantic search can be implemented on Blazor WebAssembly standalone apps hosted on GitHub Pages, requiring no server-side code or backend. This is achieved by transforming text into vectors, which represent the meaning of the data. These vectors are computed ahead of time and stored in an index file that ships with the site. At search time, the user's input is also converted into a vector using the same model, and the distance between the input vector and the stored vectors is calculated to find semantically similar data.

The MiniLM L6-v2 model is used for this purpose, which is small enough to be downloaded by the browser. The process involves converting text into vectors through mean pooling and normalization techniques.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” may contain errors; check the original before relying on it.

Read the original at dev.to โ†’

More in Tech

Meta Open-Sources Astryx, Its Agent-Ready React Design System

Meta recently announced the beta release of Astryx, an open-source React design system developed internally over eight years.

  • Meta releases Astryx, open-source React design system after eight years of development.
  • Astryx includes 150 accessible UI components, customizable CSS design tokens, and CLI tooling.
  • Astryx uses StyleX for compile-time typed styling and separates behavior from aesthetics.

shot-scraper 1.12

Release: shot-scraper 1.12 I've added WebP support to my shot-scraper screenshot automation tool. You can now take a WebP screenshot of a web page like this: shot-scraper https://simonwillison.net -oโ€ฆ

More from Sunday 13 September โ†’