Find comments on HN (powered by Algolia), extract content and return a streaming markdown summary (powered by Substrate).
The RAG portion of this is 34 lines of Substrate code. Read the walkthrough: https://x.com/vprtwn/status/1812844236401762513
🪩 To fork, sign up for Substrate to get your own API key and $50 free credits.
See also:
https://substrate-hackernewsrag.web.val.run
https://esm.town/v/substrate/hackerNewsRAG
<script type="module" src="https://esm.town/v/substrate/hackerNewsRAG" />