AndrewUsher / AndrewUsher/andrewusher.dev
Add ask my blog chat widget (RAG over blog content)
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1
- Forks
- 0
- Ø Merge
- 2 T. 5 Std.
- Gemergte PRs (30 T.)
- 59
Beschreibung
I write long technical posts and people often want the short version or to find the one paragraph that answers their question.
Try a small RAG widget:
- at build time, chunk content/blog markdown and generate embeddings (OpenAI or local), store in a simple JSON or Turso
- at runtime, a floating button opens a chat panel that searches Pagefind + vectors, answers with citations linking back to the post and heading
- limit scope to only my content, add a disclaimer that it can be wrong
- reuse the existing shiki theme and UI style, don't bring in a huge chat framework
- gate it behind an env flag so I can turn it off if costs get weird
Start with 20-30 most recent posts to keep embedding costs low. If it works, expand to journal and projects. This is also a good demo piece for the portfolio.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.