Hacker News new | ask | show | jobs
by saxenauts 777 days ago
Why choose a graph data structure ? Is it better for memory than AI agents as opposed to vector embeddings of statements or having a NoSQL database? I am bullish on graph, but seems like noone else is, so want to understand your perspective on this
1 comments

Graph DBs (KGs) add a much needed structure to unstructured data fed into traditional RAG. They are more holistic (interconnectedness of all things) than traditional relational DBs. That comes with 3 advantages;

1. They find insights you didn’t know you needed. Like discovering both Bob and Alice like to play basketball & paint the wilderness, so they could be a good match!

2. KGs are simple to read by humans, so are perfect for natural language processing.

3. KGs are dead simple and scalable. No complex tables and referencing. Just dots and lines. So LLMs have an easy time understanding.

I really think graph data structures is the missing piece to fixing RAG, but it hasn’t been mass adopted because, building quality graphs from unstructured data is HARD. But we’re getting there!