clara

fahrrad 2025-07-17T10:14:53.756549Z

did anyone experiment with combining a tool like clara with an llm? for example by giving an llm the tools to create rules and evaluate them? Could be an interesting combination?

๐Ÿ‘€ 1
amiorin 2025-08-03T19:28:15.180079Z

@valery.lavrentiev It looks interesting. @sia.mohammady66 Why clara and not https://github.com/oakes/odoyle-rules ?

siavash mohammady 2025-08-04T03:39:15.964039Z

@alberto.miorin I didn't know about odoyle ๐Ÿ™‚

jgomez 2025-07-17T14:01:45.032239Z

LLMs can write rules with clara DSL fairly well given some basic instructions about fact types and domain, but beware if your domain is really large and your collection of rules exceeds the LLM's token limit then it will start getting more limited. One area where I've had more success, but also with the same limitations is in using LLM assisted coding to help me check and add more test coverage to my rules, since Clara Rules does not support Code Coverage instrumentation on the LHS (the fork I use does support coverage on the RHS).

๐Ÿ‘ 1
๐Ÿ’ฏ 1
siavash mohammady 2025-07-17T15:32:24.083199Z

You can see my talk on using logic programming (Clara rule engine) & LLM, https://youtu.be/ERvoEvNZTII?si=7LCzvknIvqkfE86Q

siavash mohammady 2025-07-17T15:33:57.013849Z

Architecture of what i used in one project

๐Ÿ‘€ 3
2025-08-04T18:05:33.742869Z

I didnโ€™t see it in the video I think but one difference would be Clara has a truth maintenance system (TMS). I donโ€™t believe odoyle does. So if you were utilizing that, thatโ€™d be important.

๐Ÿ‘ 1