AndrewUsher / AndrewUsher/andrewusher.dev

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

Đang mở
#338 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
59

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.