Very cool. I recall an HN submission (which I can't find offhand unfortunately) that did something similar -- it used an LLM to decompose articles into a set of statements which were used to construct an entity-relationship graph of facts and events. It then queried that using conventional graph query methods, much like DataLog / Lemmalog is doing here. I remember it was particularly effective at answering timeline-b…
I accidentally turned LLM memory into program analysis
31–40 of 91 posts
Re: I accidentally turned LLM memory into program analysis
#32Is this sort of re-inventing Graph RAG from another angle, or does it feel novel?
Re: I accidentally turned LLM memory into program analysis
#33I reached a similar conclusion: LLMs should only really sit at the terminals of request fulfilment. 1. User request understanding: natural language -> a more rigorous representation, in my case Datalog. 2. Result interpretation: facts and derived facts -> natural language. Between those terminals, the work should be mechanical reasoning over some ontology or formal knowledge structure. That connects to another princi…
Re: I accidentally turned LLM memory into program analysis
#34Once again, on LLM being: a digital librarian, at its finest; logic a logic analyst, not so much.
Re: I accidentally turned LLM memory into program analysis
#35Re: I accidentally turned LLM memory into program analysis
#36Very cool. I recall an HN submission (which I can't find offhand unfortunately) that did something similar -- it used an LLM to decompose articles into a set of statements which were used to construct an entity-relationship graph of facts and events. It then queried that using conventional graph query methods, much like DataLog / Lemmalog is doing here. I remember it was particularly effective at answering timeline-b…
This is great for evidence grounding, but doesn't produce a large memory/reasoning improvement (in most cases)
Re: I accidentally turned LLM memory into program analysis
#37Earlier quoted context omitted.
This is great for evidence grounding, but doesn't produce a large memory/reasoning improvement (in most cases)
My problem with memory is that it goes stale, and updates to facts are often not changing all locations of that fact. Such a system should make it easier to maintain a single source of truth, and versioning, no?
Re: I accidentally turned LLM memory into program analysis
#38Re: I accidentally turned LLM memory into program analysis
#39So he's using an LLM to generate data stored in an "is_a" representation. That's so classic AI. Soon, he'll discover that he needs quantifiers. Then that "for all" is too strong sometimes, and he needs "for most". That way lies Cyc. It's not a bad idea. But it does have a history.