<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dr Peter Fox on Medium]]></title>
        <description><![CDATA[Stories by Dr Peter Fox on Medium]]></description>
        <link>https://medium.com/@peter.fox1?source=rss-481295f99991------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2oGGafCOdPEMJPimpiijlg.jpeg</url>
            <title>Stories by Dr Peter Fox on Medium</title>
            <link>https://medium.com/@peter.fox1?source=rss-481295f99991------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:19:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@peter.fox1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Atoms to Molecules: Computing the Ground State Energy and Electron Density of H₂]]></title>
            <link>https://medium.com/@peter.fox1/from-atoms-to-molecules-computing-the-ground-state-energy-and-electron-density-of-h%E2%82%82-06c2a919714c?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/06c2a919714c</guid>
            <category><![CDATA[quantum-chemistry]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[hydrogen]]></category>
            <category><![CDATA[whyiswaterbent]]></category>
            <category><![CDATA[molecular-physics]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 18:24:13 GMT</pubDate>
            <atom:updated>2026-11-06T18:58:53.599Z</atom:updated>
            <content:encoded><![CDATA[<h3>(part 3 of my “Why is water bent?” blog series)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*Yfl_sOj9ea2xtYnk0dM8rw.jpeg" /></figure><p>Welcome to part 3 of my research project investigating molecular structure and geometry from first principles. In the previous post, we solved the hydrogen atom both analytically and numerically to establish a rigorous benchmark.</p><p>Now, we take the natural next step: moving from a single hydrogen atom to our first true molecule — diatomic hydrogen (H₂).</p><p>While the hydrogen atom has a single electron moving around a single proton (which can be solved analytically), H₂​ introduces electron-electron repulsion and two nuclei. Because an exact analytical solution is no longer possible, we turn again to computational quantum chemistry using the Hartree-Fock (HF) Self-Consistent Field (SCF) method implemented in PySCF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*m0daHxsCtefnYkjcJYfUFw.avif" /></figure><h3>1. Ground State Energy at Fixed Bond Length (r=0.74 A˚)</h3><p>As a first test, we fixed the interatomic distance at the standard textbook equilibrium bond length:</p><p>r = 0.74 A˚</p><p>We then computed the ground state Hartree-Fock energy using six different basis sets of increasing size and flexibility:</p><ul><li><strong>sto-3g</strong> (minimal basis set)</li><li><strong>6–31g(d)</strong> (Pople split-valence with polarisation)</li><li><strong>cc-pvdz</strong> (Dunning correlation-consistent polarised valence double-zeta)</li><li><strong>cc-pvtz</strong> (correlation-consistent triple-zeta)</li><li><strong>aug-cc-pvtz</strong> (augmented triple-zeta with diffuse functions)</li><li><strong>aug-cc-pV5Z</strong> (augmented quintuple-zeta with diffuse functions)</li></ul><p>The experimental/exact non-relativistic ground-state energy of H₂​ is approximately −1.1510 Hartree (including electron correlation).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*g6CwWuJaK_IPmlWVombeoQ.png" /><figcaption><strong>Table showing ground state energy for each basis set at fixed </strong>r=0.74 A˚<strong>]</strong></figcaption></figure><p>As we move up the hierarchy of basis sets, the calculated energy systematically lowers towards the Hartree-Fock limit. The <strong>aug-cc-pV5Z</strong> basis set performs best, coming within ~1.5% of the −1.1510 Hartree reference value (with the remaining discrepancy attributable to electron correlation effects beyond Hartree-Fock). Here is the code snippet used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*emZ8rdI817uyqrDVjKk87w.png" /></figure><h3>2. What Are Basis Sets? (A Quick Intuition)</h3><p>In quantum chemistry, computers cannot represent arbitrary continuous wavefunctions directly. Instead, molecular orbitals are built as linear combinations of predefined mathematical functions called <strong>basis functions</strong> (usually Gaussian-type orbitals, GTOs):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*SK48tSWxlzLwM91QDBj-pw.png" /></figure><ul><li><strong>Minimal basis sets (e.g., STO-3G):</strong> Use the bare minimum number of functions needed to hold the electrons (3 Gaussian primitives fitting a single Slater-type orbital per atom). They are fast but chemically rigid.</li><li><strong>Split-valence &amp; Polarised basis sets (e.g., 6–31G(d), cc-pVDZ):</strong> Provide multiple radial functions per valence orbital and include higher angular momentum functions (p, d, f) allowing the electron cloud to polarise and deform during bond formation.</li><li><strong>Augmented &amp; high-zeta basis sets (e.g., aug-cc-pVTZ, aug-cc-pV5Z):</strong> Add diffuse functions to capture long-range electron tails and flexible high-angular-momentum functions (f, g) to approach the complete basis set (CBS) limit.</li></ul><h3>3. Potential Energy Curves: Varying the Bond Length (r)</h3><p>Molecules in nature find the equilibrium geometry that minimises their total ground state energy. To compute this from first principles, we varied the interatomic distance r across a fine grid (increments down to 0.001 A˚) between 0.65 A˚ and 0.80 A˚ for all six basis sets.</p><p>For each basis set, we evaluated the energy curve E(r) and extracted the optimal bond length r_opt​ corresponding to the energy minimum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oiuOZAIaci7-cRC7eFQxvQ.png" /><figcaption><em>Ground state energy curves for hydrogen molecule</em>​<em> across six basis sets. Vertical and horizontal dashed lines mark the equilibrium bond length r(</em>opt)​<em> and minimal energy </em>E(min)⁡<em> for each basis.</em></figcaption></figure><h3>Key Observations:</h3><ul><li><strong>aug-cc-pV5Z</strong> predicted an optimal equilibrium bond length of <br>r(opt) ≈ 0.734 A˚ with an energy minimum of −1.1336 Hartree, in good agreement with experimental data (0.74 A˚).</li><li>Smaller basis sets like <strong>STO-3G</strong> underestimate the bond length and yield significantly higher total energies due to basis set incompleteness.</li></ul><p>Here is the code used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7SdRxfQFNvFkRY0Imvp7w.png" /></figure><h3>4. Visualising the Electron Density for the Optimal Geometry</h3><p>Once the optimal basis set (<strong>aug-cc-pV5Z</strong>) and equilibrium bond length (r=0.734 A˚) were determined, we numerically evaluated the spatial electron density <em>ρ</em>(<strong>r</strong>) across a 2D plane passing through both hydrogen nuclei.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMzw8SfTh6RwfI6lGUw0ug.png" /><figcaption><em>2D electron density distribution ρ</em>(<em>x</em>,<em>y</em>)<em> for hydrogen molecule</em>​<em> at equilibrium geometry (r</em>=0.734 A˚<em>) calculated with the aug-cc-pV5Z basis set. Circles mark the locations of the hydrogen nuclei. Bonding is apparent in the region between the individual H atoms.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nnxU4Y9nK75g16q6JcKSKg.png" /><figcaption><em>Comparison of the electron density contour generated with the minimal STO-3G basis set. The electron density is more localised for the aug-cc-pV5Z basis set. The maximum value of the electron density is slightly larger for the aug-cc-pV5Z basis set (-0.32 compared to -0.4).</em></figcaption></figure><p>The 2D density maps clearly illustrate the accumulation of electron charge between the two protons (atoms) — the quintessential quantum-mechanical signature of a covalent chemical bond.</p><h3>Next Steps</h3><p>With the computational Hartree-Fock workflow and spatial density evaluation validated for the hydrogen molecule​, we are ready to move towards polyatomic systems. In the next post, we will begin looking at water (H2O), exploring how geometry optimisation, electron density measures and other related phenomena may explain why water adopts a bent structure. Stay tuned!</p><p>#QuantumChemistry #ComputationalChemistry #HartreeFock #MolecularPhysics #PySCF #ElectronDensity #ScientificComputing #WhyIsWaterBent</p><h3>About the author</h3><p>Peter Fox has a PhD in theoretical physics from Imperial College London and a Masters in Physics from the University of Kent. He works for IBM as a Software Client Engineer in London (hybrid) and is working towards becoming an IBM Quantum Ambassador.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06c2a919714c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hydrogen Atom: Analytic and Computational Chemistry from First Principles]]></title>
            <link>https://medium.com/@peter.fox1/the-hydrogen-atom-analytic-and-computational-chemistry-from-first-principles-9131aa1f0a02?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/9131aa1f0a02</guid>
            <category><![CDATA[quantum-chemistry]]></category>
            <category><![CDATA[computational-chemistry]]></category>
            <category><![CDATA[hydrogen-atom]]></category>
            <category><![CDATA[whyiswaterbent]]></category>
            <category><![CDATA[schrodinger-equation]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 16:02:36 GMT</pubDate>
            <atom:updated>2026-10-29T16:42:59.504Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Part 2 of my “Why is water bent?” blog series</strong></p><p>Welcome to part 2 of my new research project that ultimately seeks to understand why water is bent. Water we know is made up of two hydrogen atoms and an oxygen atom. Such a three atom molecule is not an easy beast to tame. For this reason I have decided to start with a much more basic molecule — the hydrogen atom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*NFmYjKJZtvGHOIbLECVkog.jpeg" /></figure><p>The hydrogen atom is the simplest quantum-mechanical system in nature. Before studying larger molecules, I wanted to start with a system whose exact solution is known. Hydrogen provides an ideal benchmark because both its wave function and ground-state energy can be obtained analytically from the Schrödinger equation. Any computational approach can therefore be tested directly against a known answer.</p><p><strong>Why Start with Hydrogen?</strong></p><p>When studying larger molecules, it is easy to become lost in numerical methods, basis-set approximations, and software implementation details. Hydrogen strips away these complications. It contains a single electron moving in the Coulomb potential of a single proton, allowing the exact quantum solution to be derived. By first ensuring that analytical and computational methods agree for hydrogen, I can build confidence before moving on to systems (larger molecules) where exact solutions no longer exist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*VjWC4HImHbgUqhFCWLOuZQ.jpeg" /><figcaption>Erwin Schrödinger</figcaption></figure><p><strong>Solving the Schrödinger Equation Analytically</strong></p><p>Because hydrogen contains only one electron, there are no electron-electron interactions and therefore no electron correlation or exchange energy to consider. The exact solution can therefore be obtained directly. We start with the general (time-independent) form of the Schrödinger equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*0QA0rBd1__w83-qoFunoGA.png" /></figure><p>For hydrogen, the Hamiltonian (in atomic units) is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*n2RfvqmqNSJ6C3fGhGCyeg.png" /></figure><p>The hydrogen atom wave function is spherically symmetric, and hence does not vary with angle. This means that we only need to consider the radial component, i.e. ψ = ψ(r). The radial component is just a constant that can be determined by normalisation (not done here). The ground-state (1s) solution is a Slater-type orbital (STO):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*pwuRKmPRyGp-fn3UjPvwGw.png" /></figure><p>And so we need to evaluate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Uj_eYysSRtXu-SOPL5f62Q.png" /></figure><p>The operator ∇²(r) is defined as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*iMoReJf9IUpCEa_vcK8g5w.png" /></figure><p>By using the product rule we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*A2RY_4-uRh-WNTsoDYcAJg.png" /></figure><p>and hence:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*V7hFnc6CWo69pKDCKaA7uQ.png" /></figure><p>and so we apply the full Hamiltonian:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*rEDfewv3yJBDB0u1MrcWEQ.png" /></figure><p>Clearly -1/2 is an eigenvalue of this system, so:</p><p><strong>Energy = -0.5 Hartree</strong></p><p><strong>Wavefunction and Electron Density</strong></p><p>Having obtained the exact wavefunction, it is useful to calculate the corresponding electron density as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*Y1mvzLEzBRYhYXK11GNfrQ.png" /></figure><p>I then evaluated both the wavefunction and the electron density and plotted them as functions of the radius. These visualisations reveal how rapidly the electron density decreases away from the nucleus and provide an intuitive picture of electron localisation in the hydrogen atom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*m636LlW4OhCJ-J-CV-9Ndw.png" /><figcaption>How the hydrogen atom wave function ψ varies with distance from the nucleus, r</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ffXEmBE2K8arFMNwOzOITQ.png" /><figcaption>How the hydrogen atom electron density ρ varies with distance from the nucleus, r</figcaption></figure><p>Here is the python code for generating the electron density:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*1ECvalYGYKzWsluxgtDzcQ.png" /></figure><p><strong>What Are Basis Sets?</strong></p><p>The analytical solution above makes basis sets unnecessary for hydrogen because the exact wavefunction is already known. However, quantum chemistry calculations on larger systems generally cannot be solved analytically. Instead, the true wavefunction is approximated as a combination of simpler mathematical functions known as basis functions.</p><p>A basis set is a combination of functions used to represent molecular orbitals. Small basis sets are computationally inexpensive but less accurate. Larger basis sets can represent the true wavefunction more faithfully, at the cost of increased computational effort.</p><p>In many quantum chemistry packages, Gaussian functions are used because they greatly simplify the evaluation of molecular integrals. The trade-off is that they only approximate the true behaviour of atomic orbitals.</p><p><strong>Hartree-Fock Calculation with STO-3G</strong></p><p>To compare analytical and numerical approaches for hydrogen, I used the self-consistent field (SCF) Hartree-Fock method implemented in the python library PySCF. Although hydrogen has only one electron, the calculation provides a useful demonstration of how modern quantum chemistry software approaches electronic structure problems.</p><p>I first employed the minimal STO-3G basis set. This basis approximates a Slater-type orbital using only 3 Gaussian functions. The resulting Hartree-Fock energy was calculated to be:</p><p><strong>E(STO-3G) = -0.46658 Hartree</strong></p><p>This value is reasonably close to the exact result of -0.5 Hartree but exhibits a noticeable basis-set error due to the limited flexibility of the STO-3G method. Here is the code I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r6qScWHJDdq-f8swyyvTyw.png" /></figure><p><strong>Improving the Basis: aug-cc-pV5Z</strong></p><p>I then repeated the calculation using the much larger aug-cc-pV5Z basis set. Correlation-consistent basis sets such as this are designed to systematically approach the complete-basis-set limit by providing a richer set of functions for describing the electron distribution.</p><p>The calculated energy was then calculated to be:</p><p><strong>E(aug-cc-pV5Z) = -0.499995 Hartree</strong></p><p>This result is extremely close to the exact value of -0.5 Hartree. This comparison clearly demonstrates how basis-set quality affects numerical accuracy, and that larger basis sets can systematically approach the exact solution. Here is the code I used:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MahBtEY3Nd6Dt3Wf7Tz3vw.png" /></figure><p><strong>Analytical vs Computational Results</strong></p><p>The table below compares my analytical result to the HF computational results for the ground state energy of a hydrogen atom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*nCt7uhz_Bx0bNITVVkQBWg.png" /></figure><p>The progression from STO-3G to aug-cc-pV5Z illustrates an important principle in computational chemistry: accuracy is often limited not by the electronic structure method itself, but by the quality of the basis used to represent the wavefunction.</p><p><strong>Next Steps</strong></p><p>Hydrogen has provided a clean and rigorous starting point because its exact solution is known. Having established good agreement between analytical theory and computational quantum chemistry, the next stage is to move to larger molecules where exact solutions are unavailable. To follow more of this exciting journey, subscribe to this blog.</p><p>#QuantumChemistry #HydrogenAtom #SchrodingerEquation #ComputationalChemistry #HartreeFock #BasisSets #PySCF #ElectronDensity #WhyIsWaterBent #PhysicsBlog</p><h3>About the author</h3><p>Peter Fox has a PhD in theoretical physics from Imperial College London and a Masters in Physics from the University of Kent. He works for IBM as a Software Client Engineer in London (hybrid) and is working towards becoming an IBM Quantum Ambassador.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9131aa1f0a02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structure and emergence: why is water bent?]]></title>
            <link>https://medium.com/@peter.fox1/structure-and-emergence-why-is-water-bent-cbd7543ef660?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbd7543ef660</guid>
            <category><![CDATA[computational-chemistry]]></category>
            <category><![CDATA[research-journey]]></category>
            <category><![CDATA[water-molecule]]></category>
            <category><![CDATA[scientific-computing]]></category>
            <category><![CDATA[quantum-chemistry]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 12:16:46 GMT</pubDate>
            <atom:updated>2026-10-23T12:29:38.537Z</atom:updated>
            <content:encoded><![CDATA[<h4>A test case for molecular geometry investigations (Post 1)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*S-OSLAHtg6gNrVUPbAdD5Q.jpeg" /><figcaption>A water molecule</figcaption></figure><p>One of the things that has always fascinated me about physics is the emergence of structure.</p><ul><li>A snowflake forms a hexagonal pattern.</li><li>A crystal adopts a particular lattice.</li><li>A planet settles into an orbit.</li><li>Water is bent.</li></ul><p>In each case, the structure appears to arise naturally from deeper rules.</p><p><strong>Molecules are no different.</strong></p><p>Atoms are not arranged arbitrarily. They adopt specific geometries. These shapes are so familiar that it is easy to stop asking why they exist. But from a physicist’s perspective, molecular geometry presents an interesting puzzle. The fundamental equations governing the electrons and nuclei contain no explicit instruction that says:</p><p><em>“The water molecule should have a bond angle of 104.5°.”</em></p><p>Instead, that geometry emerges from the underlying laws of physics.</p><p>That observation raises a question:</p><p><strong>How does geometric structure emerge from the electronic/atomic structure of matter?</strong></p><p>This is the question that motivates the project documented in this new blog series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CCmR7Gw951CmmjO7qj9AeQ.png" /><figcaption>The periodic table (pay attention at the back)</figcaption></figure><h3>Why Start With Water?</h3><p>Water occupies an unusual position. It is simultaneously:</p><ul><li>simple enough to study in detail,</li><li>complex enough to exhibit interesting geometry,</li><li>well enough understood that calculations can be checked against established results.</li></ul><p>The equilibrium geometry of water has been studied extensively, both experimentally and theoretically. High-quality reference data exists for essentially every quantity I am likely to calculate. That makes water an ideal testing ground. If I cannot understand water, I have little hope of understanding more complicated molecules!</p><h3><strong>Geometry as an Emergent Property</strong></h3><p>The conventional way to think about molecular shape is often through concepts such as:</p><ul><li>bonding orbitals</li><li>hybridisation</li><li>lone pairs</li><li>electron-pair repulsion</li></ul><p>These ideas are useful and successful. However, they are not all part of the fundamental quantum-mechanical description. At the most basic level one begins with electrons, nuclei and their interaction. From that starting point, geometry somehow emerges.</p><p><em>Understanding that emergence is what interests me.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*irRK2Am3E7RODupk-tabmA.jpeg" /></figure><h3>A Computational Approach</h3><p>Rather than approaching this question philosophically, I plan to approach it computationally. The initial goal is modest:</p><ul><li>learn the relevant computational tools,</li><li>reproduce known results,</li><li>examine how water molecule geometry appears from electronic-structure calculations.</li></ul><p>Only after building that foundation does it make sense to ask deeper questions. For this reason the next post in this blog series will focus on computational infrastructure rather than new ideas. The initial aim is not to build a theory — it is to build the machinery needed to investigate one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*1P8NtDz7FTqPTOIPJVRQhQ.jpeg" /></figure><h3>Why Document the Process?</h3><p>Most research stories are told backwards. A paper begins with a conclusion and then presents the path that led to it. Reality is usually much messier. This blog is intended to document the process as it happens, including false starts, dead ends, unexpected results and changes of direction. For now, that process starts with a simple question:</p><p><em>Why does water have the geometry that it does?</em></p><p>And before attempting to answer that question, the first task is learning how to calculate it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZa5w2ObyxGVzpq5Htpe4Q.jpeg" /></figure><p>#QuantumChemistry #ComputationalChemistry #ChemicalPhysics #MolecularGeometry #ScientificComputing #ResearchNotes #ResearchJourney #WaterMolecule</p><h3>About the author</h3><p>Peter Fox has a PhD in theoretical physics from Imperial College London and a Masters in Physics from the University of Kent. He works for IBM as a Software Client Engineer in London (hybrid) and is working towards becoming an IBM Quantum Ambassador.</p><p>The initial inspiration for this research came from a conversation Peter had with his supervisor Professor Paul Strange at the University of Kent several years ago, with Paul challenging Peter that he might one day make a name for himself by explaining why the bonding angle of water takes the value that it does.</p><p><em>Challenge belatedly accepted :)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbd7543ef660" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Brief to Blueprint in 20 Minutes: How Bob Accelerated Our Mortgage Eligibility API]]></title>
            <link>https://medium.com/@peter.fox1/from-brief-to-blueprint-in-20-minutes-how-bob-accelerated-our-mortgage-eligibility-api-9c54d51af93f?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c54d51af93f</guid>
            <category><![CDATA[solution-architecture]]></category>
            <category><![CDATA[ibm-bob]]></category>
            <category><![CDATA[api-design]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[mortgage-technology]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 11:27:11 GMT</pubDate>
            <atom:updated>2026-10-14T13:43:55.394Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Brief to Blueprint in 20 Minutes: How IBM Bob Accelerated Our Mortgage Eligibility API</h3><p><strong>How IBM Bob helped us design, document, and deliver a centralised mortgage eligibility API — faster than it takes to read a chapter of your new book.</strong></p><p>by Dr Peter Fox and Charlotte Rajsli Cepeda (IBM Client Engineering, UKI)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*kCRT-KdUO32Guhu7a_UvnQ.png" /></figure><p>Most enterprise conversations about generative AI still revolve around the same shallow use cases: drafting emails, summarizing meeting transcripts, or generating slide deck outlines.</p><p>For software engineers, solution architects, and engineering leaders, those demos fall flat. In regulated enterprise environments — such as retail banking and financial services — software engineering is not about generating random code snippets in a vacuum. It is about <strong>architectural rigor, strict input validation, regulatory compliance, auditable decision records, and seamless integration with existing systems</strong>.</p><p>In this article, we show how in under 20 minutes, using <strong>IBM Bob</strong>, we took a complex, multi-page financial policy brief for a ficitious bank (<strong>Helpful Bank)</strong> and achieved what typically takes days of meetings and manual drafting. The work:</p><ul><li>Designed a production-ready <strong>RESTful API Contract</strong> with strict validation rules.</li><li>Implemented and live-tested a working <strong>FastAPI</strong> service with Pydantic schemas and custom validators.</li><li>Authored an immutable, formal <strong>Architecture Decision Record (ADR)</strong>.</li><li>Demonstrated <strong>IBM Bob’s cognitive modes</strong> (Agent vs Ask vs Plan) and token/context efficiency techniques.</li><li>Prompted Bob to <strong>scaffold its own enterprise Custom Mode</strong>, baking Helpful Bank architecture and security standards into a version-controlled YAML configuration.</li><li>Generated a zero-dependency, executive-ready <strong>HTML Architecture Document</strong> for steering group sign-off.</li></ul><p>We present here the complete step-by-step breakdown of how it works and what modern AI-assisted engineering looks like in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*wpIDVkSFajZPH5ZGuUwTiQ.jpeg" /></figure><p><strong>1. The Challenge: Complex Rules, Multiple Consumers, High Drift Risk</strong></p><p>In mortgage lending, business rules change frequently. Income thresholds adjust, Loan-to-Value (LTV) limits shift, and interest rate stress-test formulas evolve in response to market volatility.</p><p>Historically, these rules ended up hardcoded or duplicated across multiple downstream platforms: the broker portal, the direct customer web journey, and the underwriter workbench. When rules changed, every consuming application had to be manually updated and regression-tested, creating substantial risk of rule drift and compliance failure.</p><p>The mission was clear: <strong>Centralise these rules into a single, versioned RESTful API.</strong></p><p>We started with a realistic mortgage eligibility rules specification:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6A2dc28t_QK5vVvesN8bnA.png" /><figcaption>Mortgage Eligibility Rules Spec</figcaption></figure><p><strong>2. Prompt Anatomy: Generating Three Artefacts in One Shot</strong></p><p>Instead of engaging in open-ended chatting, enterprise AI requires structured, constrained prompting. We applied four core principles:</p><p>a) <strong>Role Definition:</strong> Anchor Bob’s perspective (<em>”You are a solution architect at Helpful Bank”</em>).</p><p>b) <strong>Explicit Artefacts:</strong> Ask for specific deliverables (API contract, code stub, ADR).</p><p>c) <strong>Format &amp; Boundary Constraints:</strong> Table schemas, line limits (under 40 lines), and named ADR sections.</p><p>d) <strong>Focused Context:</strong> Pass only the exact domain document needed.</p><p><strong>The Foundation Prompt</strong></p><p>Note, in the screenshot below, after the prompt we have pasted the mortgage eligibility rules spec from above (45 lines — see red box).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*TYD3QMk73ZTgiTaRVhINig.png" /><figcaption>Prompt given to Bob</figcaption></figure><p><strong>The Output</strong></p><p>Within seconds, Bob generated:</p><p><strong>(i) The API Contract Table</strong></p><p>Clean endpoint defining `POST /check-eligibility`.</p><p><strong>(ii) The Python FastAPI Stub (main.py)</strong></p><p>A concise, production-ready stub enforcing strict typing with Pydantic:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9-J5LS5Ptlo4x3Cb1Fdm7g.png" /><figcaption>main.py code snippet</figcaption></figure><p>We will see how this code is implemented shortly.</p><p><strong>3. Formal Architecture Decision Record (ADR)</strong></p><p>In our prompt we also asked for the ADR. This records:</p><p><strong>Context:</strong> Fragmented rule logic causing drift across application journeys.</p><p><strong>Decision:</strong> Expose a centralised, stateless REST API built on FastAPI and Pydantic with URL versioning.</p><p><strong>Consequences:</strong> Single point of change, full auditability via UUID reference IDs, with identified risks around service availability SLAs and manual review fallback for complex edge cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ki_f0eH80xRzbEseffYCyw.png" /><figcaption>ADR that Bob generated</figcaption></figure><p><strong>4. Modes, Live Execution, and Token Discipline</strong></p><p>To take participants beyond simple text generation, we explored the deeper technical mechanisms that make IBM Bob an engineering collaborator:</p><p><strong>A. Modes: Matching the Tool to the Thought Process</strong></p><p>Bob comes with three core modes. These are as follows:</p><p><strong>Agent Mode:</strong> Edits files, runs commands, builds, tests, and refines logic autonomously. (e.g., <em>”Refine the validation logic to enforce LTV bands and the 5% new-build haircut.”</em>)</p><p><strong>Ask Mode:</strong> Acts as an architectural sparring partner without altering code. (e.g., <em>”Should this endpoint be REST or GraphQL given our downstream consumer topology?”</em>)</p><p><strong>Plan Mode:</strong> Breaks down complex, multi-service migrations into step-by-step technical execution plans before writing code.</p><p><strong>B. Live Execution — Code That Comes Alive</strong></p><p>We didn’t just read the code; we ran it immediately in the Terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*6-CybTcIshk6w9MfsnY6Xw.png" /></figure><p>And triggered a live verification request using `curl` (in a separate Terminal):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*13Zuw0_4Go8a1zz7cvGLMw.png" /><figcaption>Payload data sent to endpoint</figcaption></figure><p>The response should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUC_6pqIMV7M9DREDpaAkA.png" /></figure><p>This mortgage application has been refused, due to the gross income being below the £25k threshold.</p><p><strong>C. Custom Modes: Baking Enterprise Standards into Version Control</strong></p><p>The biggest friction point in enterprise AI adoption is <strong>prompt fatigue</strong> — having to remind the model of enterprise guidelines, OpenAPI formats, and security standards on every single interaction. <strong>Custom Modes</strong> solve this permanently.</p><p><strong>Bob Configures Itself</strong></p><p>In Agent Mode, we gave Bob a meta-prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KPMwnUltaPPI-8Ci0UXnYg.png" /><figcaption>Prompt for creating Bob Custom mode</figcaption></figure><p>Bob generated the exact YAML specification:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rq76e3UDS-jbpYhlD5e9dg.png" /><figcaption>YAML spec for the new Bob Custom mode</figcaption></figure><p><strong>The “Zero-Ceremony” Prompting Experience</strong></p><p>Once saved into the repository, every developer on the team inherits this persona automatically.</p><p>We then switched into <strong>Helpful Bank Solution Architect</strong> (custom) mode:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*2Ny6yxkWIFPRFLd-yxBEtQ.png" /></figure><p>and provided a minimal, one-sentence prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*_N_kHD0IIcqYl2RAKO60Bw.png" /><figcaption>Bob prompt to create new endpoint</figcaption></figure><p>Notice what we <strong>did not</strong> need to specify:</p><ul><li>No reminder to provide an OpenAPI table.</li><li>No reminder to enforce security headers or input validation.</li><li>No reminder to format response schemas.</li></ul><p>The mode handled it all automatically, delivering repayment_calculator.py with nominal and stressed repayment formulas:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*orKIyZIOKhVO_q21cm80TQ.png" /><figcaption>repayment_calculator.py code snippet</figcaption></figure><p>We connected the router into main.py, tested it with curl, and verified the payload calculation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hl_dpMRs7bV8iot9JGM0ag.png" /><figcaption>curl command sending JSON payload to endpoint</figcaption></figure><p>This returns the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJ0JDBRYkxyvQUPB8HNAqQ.png" /><figcaption>data returned</figcaption></figure><p>Evidently the repayment information has been successfully returned.</p><p><strong>5. Executive Delivery: From Codebase to Steering Group in One Prompt</strong></p><p>Architects do not just write code; they present to steering committees, security reviewers, and executive leadership.</p><p>Instead of spending hours assembling slide decks, we issued one final prompt to Bob:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*wykjrEsjSYI9rItZ0FgG6w.png" /><figcaption>architecture document prompt</figcaption></figure><p>Bob compiles everything into an architecture-document.html— a single, zero-dependency, beautifully styled HTML document containing:</p><ul><li>Complete Executive Summary and metadata headers.</li><li>Fully styled OpenAPI contract tables.</li><li>Clean visual blocks for ADR Context, Decisions, and Consequences.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AcWjTz5Df0orFG0Vvsc0MA.png" /><figcaption>Architecture document generated by Bob</figcaption></figure><p>It opens directly in any browser, prints cleanly, and lives in version control alongside the codebase.</p><p><strong>6. Key Takeaways for Engineering Teams</strong></p><ul><li><strong>AI is an Engineering Collaborator, Not Just a Synthesizer:</strong> When guided by structured prompts and role constraints, AI produces production-grade code, test suites, and formal governance artefacts simultaneously.</li><li><strong>Deterministic Code Must Enforce Compliance:</strong> Never let an LLM make mathematical or policy decisions directly. Use the LLM for natural-language translation and orchestration; delegate compliance decisions to deterministic APIs with human in the loop.</li><li><strong>Custom Modes Eliminate Prompt Fatigue:</strong> Encode team conventions, security standards, and output formats into version-controlled custom_modes.yaml files.</li><li><strong>Living Documentation Beats Static Slides:</strong> Generating Markdown ADRs and self-contained HTML documentation keeps architecture governance aligned with the code at every step.</li></ul><p>This article is based on an asset created by my esteemed IBM colleague Charlotte Rajsli Cepeda (<a href="https://medium.com/u/f81b95f7b9e6">Sharlotrajsli</a>).</p><p>#IBM#RESTful #FastAPI #ADR #SolutionArchitecture #APIDesign #FinTech #MortgageTech #OpenBanking #LendingTech #GenerativeAI #IBMBob #LLM #AIAgents #AgenticAI #SDLC</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c54d51af93f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Information, Meaning, and Reality: Is Information the Fundamental Essence of Nature?]]></title>
            <link>https://medium.com/@peter.fox1/information-meaning-and-reality-is-information-the-fundamental-essence-of-nature-e65fed3c31ec?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/e65fed3c31ec</guid>
            <category><![CDATA[meaning]]></category>
            <category><![CDATA[quantum-physics]]></category>
            <category><![CDATA[information]]></category>
            <category><![CDATA[philosophy-of-science]]></category>
            <category><![CDATA[information-theory]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 15:07:44 GMT</pubDate>
            <atom:updated>2026-10-01T15:07:44.542Z</atom:updated>
            <content:encoded><![CDATA[<p>We live in a world saturated with information. Every word we speak, every equation we write, every signal we transmit is information of some form. But there is a deeper question hiding beneath the surface:</p><p><strong>What is the relationship between information and meaning? And could information itself be the fundamental substance of reality?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQPnDf1_muM5q51CeSmTSA.jpeg" /></figure><p>To explore that question, we must first understand that information and meaning are not the same thing.</p><p>Take the word <em>cat</em>. In English it consists of the letters c, a, and t. In French, the same animal is called <em>le chat</em>. The information is different, yet the meaning is identical. Both words point to the same physical entity in the world.</p><p>How do we know they mean the same thing? Not because of the symbols themselves, but because of empirical experience. A cat has four legs, whiskers, a tail, and purrs when it sits on your lap. Those observable characteristics exist independently of language. Both an English speaker and a French speaker interact with the same physical reality and attach different informational labels to it.</p><p>This suggests that meaning is fundamentally grounded in our interactions with the world. Language is simply a vehicle for conveying that meaning.</p><p>The same principle applies beyond written language. Long before humans developed writing systems, we communicated through sounds, gestures, expressions, and signals. A scream could communicate danger. A grunt could communicate satisfaction. A facial expression could communicate fear. In each case, information was being transmitted, but the underlying meaning originated from some aspect of reality or lived experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*gcA4k1UOjAZacYUwsXAuTA.jpeg" /></figure><p>As human civilisation evolved, our methods of communication became increasingly sophisticated. Words, mathematics, symbols, diagrams, and digital signals all emerged as new informational structures. Yet the core idea remained unchanged: information acts as a representation of meaning, and meaning ultimately derives from how things are and how they interact in the world.</p><p>Consider a simple thought experiment.</p><p>Imagine two early humans, Alice and Bob, who know only two concepts: <em>happy</em> and <em>sad</em>. They might communicate those ideas using spoken sounds. Equally, they could use hand gestures. Or they could assign numerical symbols, using 0 to represent “happy” and 1 to represent “sad”.</p><p>The representation changes, but the meaning remains constant.</p><p>Information therefore serves as a flexible encoding system for conveying knowledge about experiences, emotions, objects, and relationships in the world.</p><p>The same idea extends surprisingly well into physics.</p><p>Modern physics is fundamentally built upon informational descriptions of physical systems. A particle can be represented by a state. For example, a quantum spin state may be represented mathematically as a vector. Physical interactions are then described by mathematical operations acting on these informational states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_avn0u46uF2NnLUculpRQ.png" /></figure><p>In quantum mechanics, measurements alter the state of a system. A measurement along the z-axis can be represented by the third Pauli matrix acting on a quantum state. The mathematics does not merely describe our observations; it provides an informational framework that predicts what will happen when a physical interaction occurs.</p><p>What is particularly striking is that we can describe the same process in two completely different ways.</p><p>We can describe it linguistically:</p><p><em>“Measure a particle’s spin along the z-axis.”</em></p><p>Or we can describe it mathematically using vectors and matrices.</p><p>Both representations communicate the same underlying meaning. One uses natural language; the other uses mathematical information. Yet both refer to the same physical interaction occurring in reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_upvoNKKtCkm1ACf_nG8Q.jpeg" /></figure><p>Crucially, neither framework emerged from pure abstraction. The informational structures used in quantum mechanics are grounded in empirical observation. Experiments such as the Stern-Gerlach experiment reveal how particles behave under measurement, and the mathematical framework accurately captures those behaviours.</p><p>In this sense, our informational descriptions are deeply connected to the physical world itself.</p><p>This leads to a profound possibility.</p><p>If language is information used to represent meaning, and mathematics is information used to represent physical interactions, then perhaps information is not merely a tool we use to describe reality. Perhaps it is woven into reality itself.</p><p>From human communication to quantum mechanics, the same pattern appears repeatedly. Information is used to encode states, relationships, interactions, and transformations. It provides the common language through which we understand both thought and nature.</p><p>The argument, then, is that information may be more than a representation of reality. It may be one of reality’s most fundamental ingredients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*gc5kZvyPnu37dah5P1iJ4A.jpeg" /></figure><p>If true, this perspective has profound implications for information theory, physics, cognitive science, and the philosophy of science. It invites us to rethink not only how we describe the universe, but what the universe is ultimately made of.</p><p>Perhaps at the deepest level, reality is not composed merely of matter and energy.</p><p>Perhaps reality is constructed from information itself.</p><p><strong>#InformationTheory #Physics #QuantumMechanics #PhilosophyOfScience #NatureOfReality #Meaning #Cognition #ArtificialIntelligence #Science #QuantumPhysics #Philosophy #ComplexSystems #Emergence #Technology #ThoughtLeadership</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e65fed3c31ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI, Mathematics, and the Last Great Human Adventure]]></title>
            <link>https://medium.com/@peter.fox1/ai-mathematics-and-the-last-great-human-adventure-497d4dc6b7f1?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/497d4dc6b7f1</guid>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[philosophy-of-science]]></category>
            <category><![CDATA[ai-world-model]]></category>
            <category><![CDATA[world-models]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 11:45:01 GMT</pubDate>
            <atom:updated>2026-09-24T11:45:25.426Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial intelligence is beginning to display remarkable prowess in mathematics. From solving complex equations to proving theorems and discovering elegant shortcuts, AI systems are increasingly demonstrating capabilities that were once thought to be uniquely human. The trajectory is clear: mathematics is becoming fertile ground for machine intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q-TtCXozc3kSwyG7kktSKg.avif" /></figure><p>Yet mathematics exists in a world of abstraction.</p><p>A mathematical proof does not care whether the universe itself agrees with its conclusions. It only needs to be internally consistent. The symbols must follow the rules. The logic must hold. In this sense, mathematics is a self-contained kingdom where truth is determined from within.</p><p>Physics is different.</p><p>Physics demands far more than mathematical correctness. A theory can be beautiful, sophisticated, and perfectly logical, yet still be wrong. Nature is the ultimate judge. Every equation must eventually confront reality through observation and experiment (string theorists, pipe down).</p><p>This requirement makes physics a far more difficult challenge for AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PhGwtsv6v-tElvtHFoa4hg.jpeg" /></figure><p>An AI operating solely within its own digital environment can learn patterns, manipulate symbols, and generate mathematically valid solutions. However, without meaningful contact with the physical world, it risks becoming trapped in a sophisticated echo chamber of its own reasoning. Physics is not simply a puzzle of equations; it is a conversation with reality itself.</p><p>The future may therefore belong not to isolated AI models, but to AI systems deeply connected to the world around them.</p><p>Imagine future scientific AI platforms with access to vast streams of sensory information: cameras observing natural phenomena, temperature sensors monitoring complex systems, telescopes scanning the cosmos, particle detectors recording high-energy interactions, and countless other instruments gathering data around the clock. Such systems would be able to continuously compare theoretical predictions against experimental evidence on a scale no human research team could match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUXQzE7zoRD-XQQFpIwCkA.jpeg" /><figcaption>James Webb telescope</figcaption></figure><p>In this environment, AI would not merely solve equations. It would become an active participant in the scientific process, generating hypotheses, designing experiments, analysing results, and refining theories in near real time.</p><p>The implications could be profound.</p><p>Scientific progress that currently takes decades may unfold in years. New materials, energy sources, and fundamental discoveries could emerge at an unprecedented pace. Some of the deepest mysteries in physics, from the nature of dark matter to the unification of quantum mechanics and gravity, may become more tractable with the assistance of machine intelligence operating across enormous datasets and theoretical landscapes.</p><p>This naturally leads to a question that many physicists quietly wonder about:</p><p>Will AI eventually make physicists obsolete?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDnCcSwqR4nxcbH2_sQAZw.jpeg" /></figure><p>The answer may depend less on technology and more on what humanity chooses to value.</p><p>One possible future is complete automation, where AI systems become the primary discoverers of scientific truth while humans merely observe the results. In such a world, the great breakthroughs may continue unabated, but the human role in the journey could diminish dramatically.</p><p>Another future is one of partnership.</p><p>Rather than replacing physicists, AI could become the most powerful scientific tool ever created. Humans would continue to provide creativity, intuition, philosophical insight, and the ability to ask meaningful questions. AI would contribute immense computational power, exhaustive analysis, and an unparalleled capacity to integrate observations from across the physical world.</p><p>Together, the combination could be greater than either alone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ggyRpTfHgsQaI8xzvBBPA.png" /></figure><p>This distinction matters because physics has never been solely about answers.</p><p>For thousands of years, the pursuit of physics has been a uniquely human adventure. Its appeal lies not merely in discovering how the universe works, but in the process of discovery itself. The late-night calculations, the failed experiments, the flashes of intuition, and the moments of wonder when an unexpected pattern emerges from chaos are all part of the experience.</p><p>The journey matters.</p><p>If we hand every question to a machine and simply receive perfect answers in return, we may gain knowledge while losing something equally valuable. The excitement of exploration could be replaced by passive consumption. The mystery would disappear, leaving only conclusions.</p><p>And perhaps that is the deeper question facing the age of AI.</p><p>Do we seek only the cold, hard truth, regardless of how it is obtained? Or do we value the centuries-old odyssey of curiosity, creativity, and discovery that has shaped human understanding from the beginning?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c9qUXMxJjs7sJnqR_Dux7g.jpeg" /></figure><p>As artificial intelligence grows ever more capable, we may find that the future of physics is not simply a technological challenge. It is a philosophical choice.</p><p>The machines may help us understand the universe.</p><p>The more important question is whether we still want to participate in the adventure of understanding it ourselves.</p><p>#science #physics #AI #genAI #worldmodels #maths #beauty #truth #AIworldmodels #philosophyofscience</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=497d4dc6b7f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importing client data into IBM OpenPages using FastMap]]></title>
            <link>https://medium.com/@peter.fox1/importing-client-data-into-ibm-openpages-using-fastmap-59cf26002055?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/59cf26002055</guid>
            <category><![CDATA[grc]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ibm-bob]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[openpages]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 15:20:11 GMT</pubDate>
            <atom:updated>2026-08-11T15:20:11.805Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*epbadZ63thGlAwp6tVH4hg.png" /></figure><p>As part of a current engagement in Client Engineering for one of our banking clients, we were provided with their data to upload into our flagship Governance, Risk and Compliance (GRC) product, <strong>IBM OpenPages</strong> (OP).</p><p>However the process of getting that data into OP requires a fair amount of <strong>data preparation and cleaning</strong>, something all data scientists are used to dealing with!</p><p>This article describes a practical example of how we did this, highlighting the main challenges and how we overcame them. This should then serve as a useful reference for you, the reader, when attempting to do the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuuR_vkpgVdOi9VKkibF0A.jpeg" /></figure><p>To begin with, we suggest watching the following video (found via the online docs [1]) on uploading data to OP:</p><p><a href="https://video.ibm.com/channel/25817967/video/op-import-data">https://video.ibm.com/channel/25817967/video/op-import-data</a></p><p>However we encountered some issues in following the process detailed in the video. Hence we will outline the full, complete steps we took in the rest of the article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*LjF8cWFOtJZA9hQ41VMVMA.jpeg" /></figure><p>1. We needed to identify the <strong>type of data</strong> that we were dealing with, that which best fitted the use case. In our case this was a <strong>Control type</strong> of data. We then located the existing Controls already in our instance of OP, via the hamburger menu on the top left corner → Assessments → Controls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Cdv1WwKPSg99HHX_DTw_A.png" /><figcaption>Locating the existing Controls data within OpenPages</figcaption></figure><p>2. We selected one of the existing Controls by ticking the box on the LHS, and clicked the Export button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03Hc_R4ufIC03ycOalOsEA.png" /><figcaption>Exporting an existing Control</figcaption></figure><p>This downloaded a .xlxs spreadsheet to our local computer.</p><p>3. Meanwhile we used <strong>IBM Bob</strong> to take the client data and quickly tidy it into adjacent columns and rows (the raw data was fragmented and messy, with gaps between some columns and contained some redundant information).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*kCRT-KdUO32Guhu7a_UvnQ.png" /><figcaption>IBM Bob.</figcaption></figure><p>We tried importing the tidied client data to OP, but it threw some <strong>error messages</strong> concerning column names. We realised that the column names in our client data had to <strong>exactly match</strong> the column names in our exported Control data file.</p><p>4. We performed that mapping, but there were extra columns in our client data on top of those existing ones. The solution was to <strong>create Custom Fields</strong> (for those custom column names) in OP. For this you go to Settings → Solution Configuration → Object Types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4PWs-UZdwHnQrCaEdR9dHg.png" /><figcaption>Locating Object Types</figcaption></figure><p>5. You then scroll down to find Controls (or otherwise, depending on your data type).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HTpMfnOZ7ZS3hr3tL7UiQ.png" /><figcaption>Controls within Object Types</figcaption></figure><p>6. You then add each custom field by scrolling down to Fields → New Field +.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tdpIqKI9MWac7kVdUOc7zA.png" /><figcaption>Adding a New Field</figcaption></figure><p>You will probably need to <strong>add a new Field Group</strong> first. However this is done NOT in the Field Groups tab, but is possible <strong>only when you add a New Field</strong> (which confused us for a short while!). So upon clicking “New Field +” you will be presented with the option of selecting from a drop down menu of existing field groups to put this new field in, <strong>OR</strong> create a new field group by clicking the “New” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHcQ8v9P4e-8hQrCIkNL0Q.png" /><figcaption>Creating a new Field Group for your new Field</figcaption></figure><p>7. Fill out the required details. Name and Data Type should suffice (the latter should hopefully be obvious by inspecting your original data columns and deciding which Data Type is most relevant). Everything else we kept as default/blank.</p><p>8. Once we had added our extra custom fields, we realised that we had to <strong>retain some of the fields from the exported FastMap data</strong>. These will probably vary depending on the type of data that was downloaded (it was Controls for our case, but conceivably there are other data types such as Risks or Test Plans). The three columns that we had to retain were Parent Path, Parent Object Types and Parent Objects (we identified this after trying to upload the data and <strong>reading the error messages</strong>). These columns could not be left blank in the FastMap upload data so we just filled them in with dummy values. We noted that we may need to <strong>come back and edit those dummy field entries</strong> in the future once we understand a bit more about how the data is related to Parent Objects etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbxvCwn1tHO6OwDaS57Sfg.jpeg" /></figure><p>9. We also had to <strong>retain the Definitions sheet</strong> in the upload data. We kept this the same as the original exported FastMap data but this should <strong>probably be amended</strong> to reflect the new use case at hand.</p><p>Now we are ready to import our data in OpenPages using FastMap!</p><p>10. First you go to Settings → FastMap Import.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TA5yODTAa6V-0REWd6QcFA.png" /><figcaption>Locating the FastMap Import screen</figcaption></figure><p>11. Click the blue Import button on the top right hand side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L7MNyqzI0ErUOVbWsJPiWQ.png" /></figure><p>12. And then Choose File.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KWR1yZLzJioSWL1cATModg.png" /></figure><p>Note: OpenPages can be a bit buggy with the FastMap uploads. If you don’t see your file available to upload on your machine (it might be greyed out), try <strong>refreshing your browser</strong> and try again.</p><p>13. Select the correct .xlsx file from your local machine and click Open. You will see the following screen. Check that the file is correct and click Validate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voo8gtrTBXxTTpRxRM7Wbw.png" /></figure><p>The upload will proceed (it should say “Validation in progress” for a few seconds). If there are any errors you will not be able to continue, you will need to <strong>check your data is in the correct format</strong> and try again (this may take a few attempts, which is fine).</p><p>14. If the file is correctly prepared you may still see some warnings. You should <strong>read them to make sure</strong> but you can still proceed with the upload by clicking Import.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tO-LyymDEbX5nk_iTF4-Aw.png" /></figure><p>Once your data has been uploaded you will see it on the FastMap Import screen, along with a Status saying “Completed Successfully”. Your data has now been successfully uploaded to OpenPages, congratulations!</p><p>15. You can now check for the relevant records on OpenPages that will confirm this. For example, go to the hamburger menu in the top left corner → Assessments → Controls (or your own data type as discussed earlier).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cn0vvkrUr-m-Ks_DfupfjA.png" /></figure><p>16. In the tool bar you can search for the Name of your control (i.e. the entry in the Name column of your .xlxs data file you just uploaded).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xGX6rBUz_Z4A4iK-j5Tsmw.png" /></figure><p>And that’s it, you have just learned how to upload client data into IBM OpenPages using the FastMap method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*bXlEubt9RvP9EaXCQll4NQ.jpeg" /></figure><p>#IBM #OpenPages #GRC #FastMap #datacleaning #datapreparation #DataScience #DataScientist #Bob #IBMBob #DataGovernance #Compliance #DataRisk #Risk #Controls #FinTech #BigData</p><p>References:</p><p>[1] Importing object data into OpenPages with FastMap (online IBM docs) <a href="https://www.ibm.com/docs/en/openpages/9.1.x?topic=guide-fastmap">https://www.ibm.com/docs/en/openpages/9.1.x?topic=guide-fastmap</a>. Accessed 7th August 2026.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59cf26002055" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI, World Models, and the Nature of Thought: Beyond Language as the Foundation of Intelligence]]></title>
            <link>https://medium.com/@peter.fox1/ai-world-models-and-the-nature-of-thought-beyond-language-as-the-foundation-of-intelligence-49fc50066da9?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/49fc50066da9</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[philosophy-of-mind]]></category>
            <category><![CDATA[thoughts]]></category>
            <category><![CDATA[world-models]]></category>
            <category><![CDATA[jepa]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 11:03:49 GMT</pubDate>
            <atom:updated>2026-07-31T11:03:49.721Z</atom:updated>
            <content:encoded><![CDATA[<p>AI guru Professor Yann LeCun recently wrote:</p><blockquote>“Thought does not require language. Language is an expression of thought. Intelligence requires thought more than it requires language.”</blockquote><p>I find this a particularly interesting perspective because it challenges an assumption that often goes unquestioned: that thought and language are fundamentally the same thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IiFQHmcE474bvQa6NKeVA.jpeg" /><figcaption>Language = thought?</figcaption></figure><p>One way to interpret LeCun’s statement is that thought is not reducible to language. Language may express, and perhaps even structure, certain forms of thought, but intelligence itself depends on a broader set of capabilities, including perception, memory, prediction, learning, planning, and action. In this view, language is one manifestation of intelligence rather than its foundation.</p><p>On the other hand, there is a strong philosophical argument that thought is deeply shaped by language. Wittgenstein famously wrote that <em>“the limits of my language mean the limits of my world,”</em> and I have always found this idea to be a useful anchor. Language gives us categories, abstractions and conceptual tools that allow us to reason about the world in ways that would otherwise be difficult.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sv5CQaZqixBz2UOT0iIgaw.jpeg" /><figcaption>Ludwig Wittgenstein in 1929</figcaption></figure><p>Yet I am not convinced that all thought is linguistic.</p><p>We frequently think in images. When I think about a person or a place, I can often picture them vividly in my mind’s eye. We also seem capable of thinking in dynamic mental simulations, almost like short video clips playing in the mind. Mathematics provides another compelling example. Many concepts in physics, particularly in areas such as quantum mechanics, cannot really be understood without an appreciation of the underlying mathematics. The understanding feels mathematical in nature rather than purely verbal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SPm6xoWZvTyzuhWiF-NAAw.png" /><figcaption>You think the math.</figcaption></figure><p>These forms of cognition are clearly not composed of language, at least not in the traditional sense, and they suggest that our definition of thought may be too narrow.</p><p>Perhaps thought is better understood as a collection of representational forms, including language, imagery, spatial reasoning, mathematical abstractions, and dynamic models of the world. If that is true, then intelligence emerges not from language alone but from the interaction of these different modes of representation.</p><p>The implications for AI are fascinating.</p><p>If our goal is to build systems that genuinely replicate or emulate aspects of human thought, language models alone are unlikely to be enough. We would probably need some form of multimodal cognitive architecture capable of representing and reasoning across language, images, mathematics, and other forms of abstraction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVjulhe27AIhxUDcCVOrwg.png" /><figcaption>Putting it all together</figcaption></figure><p>This immediately raises a number of interesting questions. In constructing a world model on this basis, should each “thought mode” occupy its own region within a shared latent space? If so, what happens when modalities overlap, as they often do in human cognition? Many thoughts are simultaneously linguistic and visual, or visual and mathematical. More fundamentally, how do we model the dynamic nature of thought itself, where one idea flows naturally into another and meaning emerges through continuous transformation rather than static representation?</p><p>These are difficult questions, but they are precisely the kinds of questions worth pursuing. They sit at the intersection of philosophy, neuroscience and AI research, and may ultimately help us understand not only how to build more capable intelligent systems, but also how human cognition works in the first place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pR87NzHwPolkS08EH9xzkA.png" /><figcaption>The Thinker</figcaption></figure><p>Whether AI will eventually simulate or truly emulate human thought remains an open question. What seems clear, however, is that understanding the relationship between language, imagery, mathematics and world models will be central to finding the answer.</p><p><em>This article was written by Client Engineer Dr Peter Fox (IBM) in reaction to a LinkedIn post by AI PhD candidate Flavio Schaefer Ferlin on 26/7/26.</em></p><p>#AI #genAI #language #embeddings #multimodalAI #Wittgenstein #philosophyoflanguage #philosophyofthought #philosophyofmind #JEPA #WorldModels #latentspaces #thought</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49fc50066da9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Cautionary Note on Claims That AI Can Never Make Scientific Discoveries]]></title>
            <link>https://medium.com/@peter.fox1/a-cautionary-note-on-claims-that-ai-can-never-make-scientific-discoveries-b4d768f89698?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4d768f89698</guid>
            <category><![CDATA[scientific-method]]></category>
            <category><![CDATA[scientific-research]]></category>
            <category><![CDATA[philosophy-of-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Wed, 29 Jul 2026 09:36:42 GMT</pubDate>
            <atom:updated>2026-07-29T09:46:36.504Z</atom:updated>
            <content:encoded><![CDATA[<p>A recent paper from Google DeepMind has sparked debate by arguing that large language models (LLMs) can never make genuine scientific discoveries. The argument draws heavily on Albert Einstein’s own description of how science works, particularly a famous letter he wrote to his friend Maurice Solovine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjpFRWnwNSrLjJaFWckQGg.jpeg" /></figure><p>In that letter, Einstein outlined scientific discovery as a cyclical process. Scientists begin with observations and sensory data. From there, through what he described as a non-logical act of intuition, they make a leap to foundational principles or axioms. Finally, they use logic and mathematics to derive consequences and test predictions.</p><p>Viewed through this lens, it is easy to see why some researchers believe today’s generative AI systems face a fundamental limitation. Modern AI has become remarkably capable at two parts of the scientific process. It excels at identifying patterns across vast quantities of information and is increasingly proficient at formal reasoning and deduction. Systems such as AlphaProof demonstrate that machines can operate at a very high level when working within established rules and frameworks.</p><p>The challenge lies in the middle step: the leap itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8aSY6GnClWq0xLrYP4yBw.jpeg" /></figure><p>According to this view, AI lacks true abductive reasoning — the ability to generate genuinely novel hypotheses when existing data is incomplete, ambiguous, or insufficient. Einstein’s development of General Relativity is often cited as a prime example. The available observations did not compel physicists to abandon Newtonian mechanics, which remained highly effective for most practical purposes. What was required instead was a profound conceptual shift: the introduction of entirely new foundational assumptions about space, time and gravity.</p><p>From this perspective, an LLM can work brilliantly once the axioms have been established. It can manipulate equations, analyse results and explain theories. What it cannot do is originate the fundamental premises themselves. The conclusion follows that AI may be capable of interpolating within the space of human knowledge, but not transcending it.</p><p>It is an intriguing argument. Yet I think we should be careful about treating Einstein’s account as the definitive description of how all scientific progress occurs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSz16CzS3xC_Z1oHMyY_PA.avif" /></figure><p>Einstein was undoubtedly one of history’s greatest scientific thinkers, but his reflections were shaped by his own experiences and intellectual style. Science today is a far broader and more diverse enterprise than the solitary image often associated with early twentieth-century physics. Knowledge is generated through experimentation, simulation, collaboration, engineering advances, statistical analysis, serendipitous observations and increasingly through large-scale computational methods. Scientific discovery is rarely as neat or uniform as any single philosophical framework might suggest.</p><p>I certainly cannot speak for all scientists, but it seems clear that there are many routes to discovery beyond the process Einstein described. Scientific practice varies significantly across disciplines, and breakthrough insights often emerge from combinations of methods rather than a single moment of inspiration.</p><p>This is where generative AI becomes particularly interesting.</p><p>Rather than asking whether AI can independently produce an Einstein-level conceptual revolution, perhaps the more practical question is whether it can meaningfully contribute to the processes through which science advances. On that front, the answer already appears to be yes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*EaF0rR_KVu-RyFgx47r_gQ.jpeg" /></figure><p>Generative AI can help researchers identify gaps in the literature, summarise complex bodies of work, explain unfamiliar concepts, generate alternative interpretations of findings and uncover connections between fields that might otherwise remain hidden. As the volume of scientific knowledge continues to grow at an extraordinary pace, tools that help scientists navigate and synthesise information become increasingly valuable.</p><p>Perhaps most importantly, AI can function as a cognitive partner. It may not originate entirely new frameworks of thought, but it can help researchers explore intellectual territory more efficiently and thoroughly than before. Sometimes progress comes not from a single dramatic leap, but from accelerating the thousands of smaller steps that make breakthrough moments possible.</p><p>That is not to say AI has solved what David Harriman referred to as the “logical leap” of induction. Nor is there convincing evidence that current LLMs possess the kind of intuitive creativity that Einstein believed lay at the heart of revolutionary science.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*129qDtl1VvXR-pOG9hqHHA.jpeg" /></figure><p>However, I find myself closer to the view expressed by my late quantum physics lecturer at the University of Kent, Dr Lewis Ryder. Science progresses through many mechanisms, not solely through the traditional inductive process often associated with Einstein’s account. Discovery today is a multidimensional activity involving theory, experiment, computation and collaboration.</p><p>If that is true, then the question is not whether AI can replace the scientist who makes the leap. The more interesting question is why AI should not become an increasingly significant part of the wider scientific ecosystem that enables those leaps to happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GruvodGEKVBmcut3bFot4w.jpeg" /></figure><p>Perhaps the future of science is not a choice between human intuition and machine intelligence. Perhaps it is the combination of both.</p><p><em>This article was written by AI Engineer Dr Peter Fox (IBM), in response to a LinkedIn post (28/7/26) by Dr Alvaro Cintas (Assistant Professor of AI and Cybersecurity at Marymount University, VA USA)</em></p><p>#AI #genAI #scienceandAI #AIandscience #science #induction #Einstein #InductiveMethod #DavidHarriman #TheLogicalLeap #philosophyofscience #UniversityofKent #DeepMind</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4d768f89698" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using IBM Bob to test migration scenarios between Watson Assistant to watsonx Orchestrate]]></title>
            <link>https://medium.com/@peter.fox1/using-ibm-bob-to-test-migration-scenarios-between-watson-assistant-to-watsonx-orchestrate-3f80fd6a99cf?source=rss-481295f99991------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f80fd6a99cf</guid>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[ibm-bob]]></category>
            <category><![CDATA[watsonx-orchestrate]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[watson-assistant]]></category>
            <dc:creator><![CDATA[Dr Peter Fox]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 14:57:22 GMT</pubDate>
            <atom:updated>2026-07-27T15:03:52.460Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using IBM Bob to automate and test migration scenarios between Watson Assistant and watsonx Orchestrate</h3><p><em>Accelerating quantitative comparisons between deterministic and agentic conversational flow techs using an AI development partner</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6WQtx9pGTj_8NKfZFLgS7g.jpeg" /></figure><p>I was recently tasked with showing one of our banking clients how they could migrate from their pre-existing, deterministic Watson Assistant (WA) chatbot to a fully agentic watsonx Orchestrate (wxo) equivalent. What were the key differences? How could we make the migration testing procedure more efficient? Could we justify upgrading to an agentic (wxo) solution on the grounds of increased performance, based on certain factors/metrics? And could I use Bob, IBM’s flagship agentic SDLC planning and coding partner, to do this comparison in a matter of hours?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nnrG9XnElOUQOSfVBpDhaA.jpeg" /></figure><p>First I needed to set up a test WA environment. For this I used a WA instance on my IBM Cloud account. I then created a very basic flow, around a user wanting to cancel a direct debit: the customer starts the conversation by saying “Hello”. WA responds by saying “How are you feeling today?”. The user then chooses from “I am good thanks”, “I am not feeling very well”, or “I lost my wallet”. The flow then forks into one of two options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*37stwhfbYlsHDGzymQI9Xg.png" /></figure><p>The first fork, for when the user says “Good thanks”, WA responds with “That’s great to hear! How can I help you today?”. Meanwhile the second fork (for the negative responses of “I am not feeling very well” and “I lost my wallet”), WA responds with “I’m sorry to hear that. I will guide you through today. How may I be of assistance?”. The point of this forking was to show how WA can change language/tone in the case of a vulnerable customer.</p><p>Then the two forks meet again, as the user is given the opportunity to enter free text. At the next step, WA checks that the user input at the previous step includes the text “direct debit”. If so, WA responds with “Thanks! Which direct debit would you like to cancel?”, and gives the user a choice between mobile phone bill, gas bill, water bill and electricity bill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*EUahUlOCGf9_ffxQfDpgFA.jpeg" /></figure><p>At the next step, WA uses the in-built context variable functionality to ask “Ok, we need to check that you currently have a &lt;bill_type&gt; direct debit in your account. We will need to access your data on our system to do so. Is that ok?”. The user can then choose from “yes that’s fine” or “no thanks” in response.</p><p>At this point we simulate a call to an API (or otherwise) for a supposed bank statement check. For this exercise we simply included a local bills.csv file with a list of direct debits in the first column, along with the amount in the second column. The Python code forks off at the above and does the check, then forks back if the .csv check is successful (and outputs an error messsage and breaks the WA flow if unsuccessful).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*D0LPQy-ssJefgVlbIrOCUw.png" /><figcaption>Locally stored bills.csv file, listing the customer direct debits with corresponding amounts</figcaption></figure><p>For the last step, WA outputs “Ok thanks! We found your direct debit for &lt;bill_type&gt; and it has been cancelled. Thanks for using this service — have a great day!”. Note the context variable &lt;bill_type&gt; is used again.</p><p>That describes how we built out the test for the Watson Assistant flow. Now we will describe what was done for the watsonx Orchestrate flow. Recall, this is an agentic solution, so while we still need to include the same steps in the flow, our treatment of how best to implement them will need to be modified at the relevant point(s).</p><p>I used a wxo instance on my IBM Cloud account. I then created a simple AI agent. I gave it a suitable description: “This agent deals with a request to cancel a customer’s direct debit”. I had a play with the instructions but I decided that, for this demo, the Guidelines were a better option in general to enforce most of the flow behaviour that was required to compare like for like (i.e. WA and wxo). <em>Note: In wxo, Guidelines are rules that guide an agent’s actions and responses.</em></p><p>For instance, the following Guideline was used for the first flow step:</p><p>Condition: When the customer says “hello”.</p><p>Action: You must respond “How are you today?”.</p><p>Similar Guidelines were used to enforce the responses and required forking in subsequent flow steps. Below shows two screenshots of those Guidelines in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHLWCycK7YlulQVRFUh0jw.png" /><figcaption>Guideline for Customer Doing Well response in wxo agent</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZJ7d_6MyGdOWIM9ZgK43A.png" /><figcaption>Guideline for Customer Not Very Well response in wxo agent</figcaption></figure><p>Also worthy of comment is how we used wxo’s in-built context values to improve the flow. In particular we included the following as the agent Instruction:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t4hKeKmjtOEP3hN0aGhiOw.png" /><figcaption>Instruction for agent in wxo, showing use of context values</figcaption></figure><p>This meant that, as done similarly in WA, the value input by the user that specified the direct debit they wish to cancel can be carried forward through the conversation flow for ease of use and referral where required.</p><p>All this put together resulted in a fully agentic conversation flow in watsonx Orchestrate, permitting direct comparison and performance testing against the deterministic (non-agentic) chatbot flow in Watson Assistant. Now we move on to the really juicy part: coding up (with assistance from Bob) the comparison pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*XMaMypfCvcLtV1Je5SZq6w.png" /><figcaption>IBM Bob</figcaption></figure><p>The first we thing did was to use a simple plain-language prompt for Bob to do the comparison (in Plan mode). This was something like:</p><p>“I want to compare how a conversation flow in IBM Watson Assistant does against the same flow in watsonx Orchestrate.”</p><p>Bob then guided me through the process, checking for clarity at the appropriate time, writing and editing code, with me entering more relevant prompts where necessary. For example, when I decided that I wanted to automate the user input for each conversation turn, I input the following prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*QT79ERkIuB-NSgpS6QUWZQ.png" /><figcaption>Prompt for Bob to automate flow user input at each turn</figcaption></figure><p>Bob even created and walked me through setting up the .env file for me to edit, telling me which fields I needed to change to obtain the credentials to connect to WA and wxo via their respective APIs.</p><p>At this point we should remind ourselves of the central aim of this technical endeavour: to compare the performance of WA and wxo and see whether the latter agentic approach was beneficial to the client.</p><p>For this we would need to first define the functionality we wanted to compare, and then find a suitable metric that would measure how well each tech (WA or wxo) performed in that regard. The functionalities chosen are shown in the table below, along with the metric we used to measure the success or otherwise of that functionality. We did this first for the overall flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*mD7_zx3UdmHwhBa_Z8GFpg.jpeg" /></figure><p>and then for the per turn flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*8EBFLdFLd7JulORcpDMrcw.jpeg" /></figure><p>A typical Terminal output showing a given flow comparison is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*hjhf3SChE8lU9vaM-ip2lQ.jpeg" /><figcaption>An example Terminal output, showing the two flows along with the comparison metrics per turn and overall</figcaption></figure><p>We also then created one last metric to measure how well the flows coped with irrelevant/nonsensical questions. The Terminal output for such an example (with the nonsense question appearing on Turn 3, “I am a horse, feed me some hay”). We instructed the code to terminate the conversations under such circumstances, however additional fallbacks such as “pass to an agent”, or “ask the previous question again”, would be easy to implement if desired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*gMiQt8n6hhAE7fwbbricqA.jpeg" /><figcaption>Another Terminal example output, showing how the flows can deal with nonsensical/irrelevant responses</figcaption></figure><p>Overall we feel that this PoC will provide the client with great flexibility when they wish to compare flows in WA and wxo. The automation layer, whereby a local .txt file can be populated ad hoc to simulate user input at each turn of the conversation, is particularly effective. Specifically it will allow the client to quickly and easily test the performance of WA against wxo for different flows, providing them with the insights they need to inform their business decisions. Moreover, the batch of metrics returned (per turn and overall) will help them measure the performance of the two competing techs in comparison to each other.</p><p>It will be interesting to see what they make of the comparisons between Watson Assistant and watsonx Orchestrate, and how agentic AI flows can both mimic and sometimes emulate the performance of their more rigid, deterministic technical predecessors. The inclusion of the technical metrics to aid this comparison is a particular highlight of our work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D1FzojRbtsAOwpyIEyHKFQ.jpeg" /></figure><p>Lastly, this PoC represents an excellent example of applying IBM Bob to a tech migration and comparison use case. By using both the Plan and Agent out-of-the-box Bob modes, we were able to build out the solution quickly and accurately. We estimate a significant time-saving of approximately 90%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ykkihJ-5qpuQCAkTLPgS6g.avif" /></figure><p>Interesting in trying out Bob for yourself? Try it for free at this link:</p><p><a href="https://bob.ibm.com/trial">https://bob.ibm.com/trial</a></p><p><em>This work was carried out primarily by AI Engineer Peter Fox (IBM), with some input and helpful ideation from my esteemed colleague Charlotte Rajsli Cepeda.</em></p><p>#WatsonAssistant watsonxOrchestrate #agenticAI #AIagents #IBM #IBMBob #Bob #SDLC #codeassistant #vibecoding #techmigration #generativeAI #genAI #LLMs</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f80fd6a99cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>