News for hackers. Stuff that matters.
Re:Use Prolog to improve LLM's reasoning by luke_galea on Thursday October 17, 2024 @10:22PM (#41875836)
Super cool. I dig generating rules from within the LLM, but I'm not sure Prolog is the right choice in 2024.

I love Prolog and had the opportunity to use it "in anger" years ago to handle temporal logic in a scheduling app. Great experience, but I've found that more modern rules engines like Drools (anything using the Rete algorithm) are a MUCH better fit for most use cases these days.

If you are into this stuff, you might like the talk I gave on rules engines, prolog and how it led to erlang & elixir. https://www.youtube.com/watch?v=mDnntrhk-8g&t=1s

Re:Use Prolog to improve LLM's reasoning by OutOfHere on Friday October 18, 2024 @12:15AM (#41876289)
The choice is limited to the languages that LLMs already know really well.
Re:Use Prolog to improve LLM's reasoning by YeGoblynQueenne on Friday October 18, 2024 @09:38AM (#41879356)
Drools is a rules engine, but Prolog is a fully-fledged, general-purpose language, yes? For example SWI-Prolog has a bunch of http libraries and can be used as a web development language (using Prolog's clause database itself in place of some SQL). I don't think that'd be a sensible use case for Drools.
Re:Use Prolog to improve LLM's reasoning by riku_iki on Friday October 18, 2024 @08:21PM (#41884621)
You can use drools from Java as a library probably.