<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>hallucination-from-first-principles examples on Programmer.ie: Modern AI programming</title>
		<link>http://programmer.ie/examples/hallucination-from-first-principles/</link>
		<description>Recent content in hallucination-from-first-principles examples on Programmer.ie: Modern AI programming</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<atom:link href="http://programmer.ie/examples/hallucination-from-first-principles/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Route a claim through a policy, not through a threshold</title>
				<link>http://programmer.ie/examples/hallucination-from-first-principles/12-chapter/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>http://programmer.ie/examples/hallucination-from-first-principles/12-chapter/</guid>
				<description>&lt;p&gt;A policy that answers &amp;ldquo;allow or not&amp;rdquo; is a threshold with extra steps. The&#xA;chapter&amp;rsquo;s engine answers a different question: given a candidate and what has&#xA;already happened, what is the &lt;em&gt;commitment&lt;/em&gt;, what is the next action, which rule&#xA;matched, and which rules were suppressed but still contributed their reasons&#xA;and obligations. The example is the engine itself, exercised over six states.&lt;/p&gt;&#xA;&lt;h2 id=&#34;run-it&#34;&gt;Run it&lt;/h2&gt;&#xA;&lt;p&gt;The engine is the chapter&amp;rsquo;s own reference implementation, reproduced below&#xA;exactly. Save it as &lt;code&gt;policy_engine.py&lt;/code&gt;, save the driver as &lt;code&gt;demo.py&lt;/code&gt; beside it,&#xA;and run the driver with Python 3.13 or later. The standard library only: no&#xA;model, no network, no service, no external calls.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
