~/talk

Implement Al Semantic Search in a Nuxt Blog w/ Transformer.js

links:none on file
slides:none on file

A Nuxt blog gets keyword, fuse.js fuzzy, and offline semantic search by embedding titles/descriptions into vectors with Transformer.js, storing embeddings in the generated SQLite from Nuxt Content and querying via cosine similarity. An embedding-generator script and AST-based chunking produce per-paragraph embeddings that improve relevance; a web worker implementation using the workers module keeps the main thread responsive. A hybrid ranker merges fuzzy and semantic scores with tunable weights. It works locally (model ~40MB) but rebuilds and re-generates embeddings on content updates and can slow at scale.

AI-written summary · about

  1. 0:00Nuxt Content search setup
  2. 8:19Keyword search with Nuxt Content
  3. 15:56Fuzzy search with Fuse.js
  4. 27:05Semantic search and embeddings
  5. 34:03Hybrid search combining methods
  6. 39:46Offline AI with Transformers.js
  7. 41:09Q&A on composables
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.