Long-Term, Personalized Memory for AI Agents Using Graph DBs
share.streamlit.io
share.streamlit.io
Treating HN stories (or perhaps top-level comments) as graphs might work better than just RAG?
You can also construct graphs with an llm out of text. See here. https://neo4j.com/labs/genai-ecosystem/llm-graph-builder/
Anything that makes RAG more generalizable automagically in the background is welcome.
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!
Did you test different embedding / chunking strategies of the RAG vector db?
Is the KG vectorized?