Fork me on GitHub

Withing REPL are newly defined rules are picking up? I create session with mk-session and :cache false


mk-session should pick up new rules in the REPL. It will only look in the current namespace, though, unless you are explicitly passing namespaces.


@ryanbrush so I need to call mk-session again? if so, is there any way to transfer facts from one session to another? or maybe fire-rules would be enough?


You'll need to pass in your facts into the new session again. Clara won't do this automatically, but I usually reload the facts or keep them in a list.


I see, so I need to write small wrapper for insert-fact, retract-fact which would store facts in separate collection. Then use this collection then I need to re-init session.


Yes, that would do it.