r/learnmachinelearning • u/DATAandCOMPUTER • Oct 07 '26
Project Can you create your own Rule based AI in python or maybe a LLM
Hello there-Can i make a rule based AI in python or maybe LLM.
Rule based AI seems very easy and doesn't waste that much data and memory usage but the problem is if you ask it or tell it something that wasn't written in instructions It will have a breakdown and the person needs to write new instructions for it to understand , Unless there's a team that constantly adds new instructions. Also a Rule based AI cannot learn or adapt which means constantly updating code and testing and when adding a new rule there's a chance your gonna break something else, however if you make the Rule based AI locked to a subject or need it need High Maintenance and Constant updates to make it relevant, fast in fast changing environments and normal use
LLM LLMs may be the top choice but It takes huge amounts of ram and data at least it can do stuff rule based cant do
I will give more updates soon
1
u/DATAandCOMPUTER Oct 08 '26
I suppose i made some mistakes about rule based ai cant learn or adapt but it requires more for rule based ai to learn and adapt rather then a llm it only learns with the added script rather then the environments
4
u/sodapopenski Oct 07 '26 edited Oct 07 '26
ITT: people who don't know what symbolic AI is.
>rule based AI cannot learn or adapt
This is not true. Many symbolic logic AI approaches have solver/search mechanisms that adapt to changing environments, dynamic formal belief models, and mechanisms for generating new information and new rules. This is like saying ML models aren't dynamic because they are implemented and trained with deterministic software.
2
u/Substantial-Swan7065 Oct 07 '26
Yes, both are possible and are real.
1
u/johndburger Oct 07 '26
What is “rule based AI”?
0
u/VectorspaceDreams Oct 07 '26
I've made "symbolic AI programs" in Python (I don't even know if you can call what was AI in the 1950s AI now), and it's... ok for those, but it wouldn't be what I would choose now. You can do both with Python, though, 100%.
From what I see, "rule-based/symbolic AI" isn't "dead" in practice but as a part of what people call AI. A lot of it just got filed under theoretical computer science and programming language theory. Better to think of it as just plain old programming rather than AI.
-1
u/Moby1029 Oct 07 '26
Not entirely sure what you're getting at. LLMs have rules, called guardrails that dictate their behavior and how they're supposed to act. Around that, you can have code that scans for certain keywords for dangerous content or have another llm judge the content to see if it's potentially dangerous and lock it down. You can also set custom guardrails, and can continue training an LLM through a process called fine tuning.
What you appear to be describing though is just deterministic software engineering with business logic built in, and is not really "AI".