AndrewUsher / AndrewUsher/andrewusher.dev

Add ask my blog chat widget (RAG over blog content)

オープン
#338 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
1
フォーク
0
平均マージ
2日 5時間
マージ済み PR(30日)
59

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。