Hacker News new | ask | show | jobs
by PHOTON1233 781 days ago
Hi Guys! This is a quick demo of AffinityRAG. Ask it a question, and it will fetch sub-graphs from a larger knowledge graph (Alex's medical history) and answer your queries BETTER than just RAG. I've built a lot more since then including remembering you're specific info. I will open-source it if you guys want it.
1 comments

This idea could be applied to HN as well. A naive way to 'ask a question' to HN would be to chunk and embed every comment, and use RAG. But then you would miss out ok comments that have something interesting to say, but don't mention enough context, because the rely on the reader knowing what they're talking about due to the parent or GP comment.

Treating HN stories (or perhaps top-level comments) as graphs might work better than just RAG?

Thats a fun use case! I might try that out after flashing out this conversational-personal assistant usecase. Thanks for the idea!