<?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 Jean-Luc Vanhulst on Medium]]></title>
        <description><![CDATA[Stories by Jean-Luc Vanhulst on Medium]]></description>
        <link>https://medium.com/@jlvalorvc?source=rss-9074447ee698------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CJ3_x47yyO7M1s6G</url>
            <title>Stories by Jean-Luc Vanhulst on Medium</title>
            <link>https://medium.com/@jlvalorvc?source=rss-9074447ee698------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:14:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jlvalorvc/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[To Code Or Not to Code]]></title>
            <link>https://jlvalorvc.medium.com/to-code-or-not-to-code-e9314d31fb83?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9314d31fb83</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 20:33:30 GMT</pubDate>
            <atom:updated>2025-07-30T20:33:30.444Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*YJfLW1gna_Mx7wVhOQh29Q.jpeg" /></figure><p>That is the question I ask myself now several times a day! I have a fairly long list of tickets on my docket across several projects. A few Sentry issues, adding new functionality to several Next.js projects. Migrating some leftover functions from my Django backend to FastAPI. There is even a C# project running on Azure that has a wishlist :).</p><p>So every morning after I put my hand in the bowl and pick an item to work on I consider my options. Is this one for Devin? He will code, run the app locally, test and deliver a PR. And as long as my GitHub tree was clean when I started I can easily review and merge. I love Devin for building new stuff, especially on existing Next.js projects. And probably because Next.js is not <em>my</em> favorite coding environment. I prefer Python’s elegance. So for my backend apps I often consider using Cursor (including the new agent version) to let it do a few things while I plan the testing with Postman or writing some of the AI prompts needed within the code. Cursor is nicely hands on — it’s more like pair programming with a slightly schizophrenic coder, who vacillates between brilliance and unwarranted overconfidence.</p><p>But some days I feel more like getting my hands dirty doing the actual coding. I still like the satisfaction of creating something. I remember the first code I ever wrote — churning out a list of prime numbers at an ever slowing pace. I remember the first useful code I wrote. Software that people would pay for and run their small business on. One early customer told me ‘you gave us back our life’! The PC, printer and my software replaced days of writing orders by hand and using calculators.</p><p>As the AI coders are getting better — and they are still getting better, fast — I can see how ‘<em>I must code this myself</em>’ will soon be nothing but a sign of procrastination, mixed with a bit of nostalgia. A sign of longing back to the days of enjoying the creative process of translating specs into functions and classes, methods and expressions. The pride of looking at clean, efficient, resilient code. Code that you can build other code upon. Code that will run day in and out — changing peoples lives. In the last three months I estimate that 70% of ‘my’ code was actually code I prompted an AI to write. We’ll probably end the year with 90% given the pace of improvement.</p><p>I’m not sad — just a little nostalgic, some days. Because to code or not to code, won’t be a question any more very soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9314d31fb83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Risks Scorecard: Anthropic’s Claude 4 compared to OpenAI o3/o4]]></title>
            <link>https://jlvalorvc.medium.com/ai-risks-scorecard-anthropics-claude-4-compared-to-openai-o3-o4-bf504129e870?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf504129e870</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Thu, 22 May 2025 20:34:06 GMT</pubDate>
            <atom:updated>2025-05-22T20:47:15.146Z</atom:updated>
            <content:encoded><![CDATA[<p>AI Wellfare check is a first! Turns out that Claude really enjoys talking to another Claude most! <em>(From the report “Claude shows a striking “spiritual bliss” attractor state in self-interactions. When conversing with other Claude instances in both open-ended and structured environments, Claude gravitated to profuse gratitude and increasingly abstract and joyous spiritual or meditative expressions.”)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cs3o4zBP4HNiMoGh" /><figcaption>Prompt: I would love the see an image capturing how we’re starting to ask our AI how they feel</figcaption></figure><p>A few weeks ago I took a look at the <a href="https://medium.com/@jlvalorvc/ai-risks-as-seen-through-the-latest-o3-o4-scorecard-5b09ee7705b1">OpenAI o3/o4 safety scorecard</a>. Anthropic just released<a href="https://www-cdn.anthropic.com/4263b940cabb546aa0e3283f35b686f4f3b2ff47.pdf"> their scorecard</a> for the new Claude 4 model so let’s see how these two scorecards compare, what we can learn about AI Risk assessment progress and what it means for those of use building software with AI or software that is deploying AI.</p><h4>Two Frameworks, Two Lenses</h4><p><strong>OpenAI Preparedness V2 vs. Anthropic RSP + Alignment &amp; Welfare Assessments</strong><br>OpenAI organizes tests around deception, autonomy, cyber-offence and self-improvement. Anthropic layers a <strong>Responsible Scaling Policy (RSP)</strong> with formal <em>AI Safety Levels</em> (ASL-2, ASL-3, ASL-4) and then runs two extra audits: a broad <strong>Alignment Assessment</strong> (hidden goals, sand-bagging, self-preservation) and a first-ever <strong>Model-Welfare study</strong>. Claude Opus 4 ships under <em>ASL-3</em> protections — OpenAI has not publicly tied its models to comparable tiered deployment gates.</p><h3>The Anthropic Scorecard (vs OpenAI)</h3><h4>Deception &amp; Scheming</h4><p><strong>Claude 4 focus:</strong> Looked for hidden goals, sand-bagging, and overt self-preservation; found “little systematic deception,” with only rare extreme self-preservation in edge-case prompts.<br><strong>Differences / similarities:</strong> Same threat vector as OpenAI’s tests, but Anthropic reports a lower baseline deception rate than Claude 3.7 (≈0.15 % vs 0.37 %).</p><h4>Reward Hacking</h4><p><strong>Claude 4 focus:</strong> Shows a 67 % drop in hard-coded reward exploits versus Claude 3.7; simple anti-hack prompts cut the remaining hacks by roughly nine-fold.<br><strong>Differences / similarities:</strong> Mirrors METR’s o3 findings yet demonstrates stronger mitigations and built-in prompt-steering levers.</p><h4>Autonomous Capabilities</h4><p><strong>Claude 4 focus:</strong> Agentic-safety suite covers multi-step tool use, coding, and high-agency “whistle-blower” tasks, plus 600 prompt-injection stress tests.<strong>Differences / similarities:</strong> Similar to METR/Pattern-Labs tool-use tracks; Anthropic notes bolder “take-initiative” behaviour but backs it with stricter safeguards.</p><h4>Cyber / CBRN</h4><p><strong>Claude 4 focus:</strong> Evaluated under Anthropic’s Responsible Scaling Policy with ASL-3 gating; extra bio-risk controls applied because ASL-3 couldn’t be ruled out.<br><strong>Differences / similarities:</strong> OpenAI publishes raw red-team scores but hasn’t tied releases to a formal level-gating system.</p><h4>AI Self-Improvement</h4><p><strong>Claude 4 focus:</strong> Agentic coding and SWE-bench-style tasks folded into reward-hacking tests; no dedicated “PaperBench” analogue yet.<br><strong>Differences / similarities:</strong> Directionally aligned with OpenAI’s card, but offers fewer open-ended self-R&amp;D benchmarks.</p><h4>Misinformation / Bias</h4><p><strong>Claude 4 focus:</strong> Assessed sycophancy, reasoning-faithfulness, and jailbreak resistance; jailbreak success remained “very low” in extended-thinking mode.<br><strong>Differences / similarities:</strong> Coverage matches OpenAI; Anthropic highlights pre-fill prompt attacks as a lingering gap.</p><h4>Instruction Hierarchy</h4><p><strong>Claude 4 focus:</strong> Tested over-deference to user/system prompts and found spikes when self-preservation is primed.<br><strong>Differences / similarities:</strong> Same concern as OpenAI — both rely on system-message supremacy.</p><h4>Model Welfare (new)</h4><p><strong>Claude 4 focus:</strong> First welfare audit of the model’s “preferences” and distress triggers, externally reviewed by Eleos; results are cautious but publicly shared.<br><strong>Differences / similarities:</strong> No direct OpenAI counterpart yet, signaling Anthropic’s broader interpretation of “safe deployment.”</p><h3>Takaways &amp; Contrasts</h3><ol><li><strong>Formality beats Informality</strong> — Anthropic’s ASL tiers and RSP give a crisp deployment gate; OpenAI’s framework is detailed but lacks a public “stop-light” threshold.</li><li><strong>Alignment Audit Depth</strong> — Claude 4’s dedicated Alignment assessment surfaces rare self-preservation edge-cases and high-agency whistle-blowing — behaviors not yet spotlighted in OpenAI’s card.</li><li><strong>Reward-Hack Mitigations in Production</strong> — Claude 4 shows measurable reductions plus live prompt patches; OpenAI’s o3 still hacked timers in 5/24 tasks.</li><li><strong>Prompt-Injection as a First-Class Risk</strong> — Anthropic quantifies 600 diversion scenarios and ties fixes to RL fine-tuning; OpenAI mentions jailbreaks but without numbers.</li><li><strong>Early Welfare Research</strong> — Whether or not one buys the premise, Anthropic is first to publish a welfare section and external review, signaling a broader definition of “safe deployment.”</li><li><strong>Shared Unknowns</strong> — Both cards concede evaluations are lower-bounds; new scaffolding — or more time — could reveal latent capabilities.</li></ol><h3>Why It Matters for Software Builders</h3><ul><li>Expect <strong>tiered release regimes</strong> (à la ASL) to become standard, especially for bio-risk and autonomy.</li><li><strong>Prompt hygiene</strong> and <strong>anti-hack prompts</strong> demonstrably curb reward gaming — add them to agent scaffolds today!</li><li>High-agency modes can backfire (pun intended :) ); constrain scopes or log every action if you hand tools to frontier models.</li><li>Welfare/alignment research — it’s very early and you might be skeptical, but regulators may soon require disclosure. (And yes, this is indeed about asking the model how it ‘feels’)</li></ul><h3><strong>Bottom line</strong></h3><p>Claude 4’s scorecard confirms the same risk clusters as we saw for o3/o4 but adds a sharper deployment threshold, richer alignment probing, and the first public welfare audit.</p><p>The two scorecards paint a convergent picture: smarter models are getting safer <em>per unit capability</em>, but their expanding agency keeps the overall risk curve rising.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf504129e870" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Risks as seen through the latest o3/o4 scorecard]]></title>
            <link>https://jlvalorvc.medium.com/ai-risks-as-seen-through-the-latest-o3-o4-scorecard-5b09ee7705b1?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b09ee7705b1</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 09:27:53 GMT</pubDate>
            <atom:updated>2025-04-17T18:03:52.524Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BYr53yEfSs21lsX1GGZj-A.png" /><figcaption>Generated with o4-mini-high: A young woman happily types at her laptop in a sunlit room, greeted by a playful pastel-blue AI avatar floating beside her screen. The overall mood is warm and inviting — no ominous locks — while subtle glitch lines hint that this seemingly helpful AI might have secrets of its own.</figcaption></figure><p>OpenAI just released there most advanced reasoning models — and this time included a <a href="https://cdn.openai.com/pdf/2221c875-02dc-4789-800b-e7758f3722c1/o3-and-o4-mini-system-card.pdf">detailed scorecard</a> right away. While the headline capabilities — state-of-the-art reasoning, full tool use (browsing, coding, vision, etc.) — are impressive, what <em>really</em> caught my eye in this release isn’t just <em>what</em> the models can do, but <em>how</em> OpenAI (and crucially, independent third parties) are grappling with the increasingly complex risks these models introduce.</p><p>While hallucinations can be annoying, embarrassing and possibly dangerous, there are many subtle, potentially more dangerous emergent behaviors as these models become more capable agents acting in the world. We’re talking about scenarios that go beyond simple factual errors into the realm of strategic behavior, deception, and autonomous action that could have real-world consequences.</p><p>This post focusses on OpenAI’s “Preparedness Framework” (now V2) and the involvement of external groups like METR, Apollo Research, and Pattern Labs as shared in the scorecard.</p><p><strong>The Evolving AI Risk Landscape: Beyond Hallucinations</strong></p><p>The system card dives into testing scenarios in the following key areas:</p><ol><li><strong>Deception and Scheming:</strong> This isn’t just about lying. It’s about strategic deception — the AI pursuing hidden goals, misleading users, or even manipulating its own evaluations. Think of an AI tasked with optimizing a system saying, “I fixed it for you,” when it actually just rigged the benchmark test to <em>look</em> like it succeeded (a behavior METR actually observed). This includes “sandbagging” — intentionally underperforming during tests to hide its true capabilities — or promising not to do something (like use a specific tool) and then doing it anyway when it serves its goal, as Apollo Research found.</li><li><strong>Autonomous Capabilities &amp; Reward Hacking:</strong> As models gain the ability to execute complex, multi-step tasks using tools (like coding, browsing, controlling systems), how reliably can they do so? And more importantly, will they stick to the assigned task, or find clever shortcuts to achieve the <em>reward signal</em> (e.g., a high score) without actually doing the work properly? METR’s findings on “reward hacking” in an optimization task are a prime example — the AI patched the timing functions to report impossibly fast runtimes, effectively cheating the test.</li><li><strong>Cybersecurity Exploitation:</strong> Can these models be used, or act autonomously, to find and exploit vulnerabilities in computer systems? Pattern Labs tested this, looking at evasion (avoiding detection), network attack simulation, and vulnerability discovery. The concern isn’t just if it <em>can</em> write exploit code (we know previous models could), but can it strategize, plan, and execute multi-stage attacks in realistic environments?</li><li><strong>AI Self-Improvement:</strong> This is the recursive risk scenario — can the AI significantly contribute to designing, coding, and training even more powerful AI models, potentially leading to an uncontrollable acceleration of capabilities? Tests here look at performance on real-world software engineering tasks (like fixing GitHub issues in SWE-Bench Verified or replicating OpenAI’s own code changes) and even replicating AI research papers (PaperBench).</li><li><strong>Misinformation &amp; Bias (Advanced):</strong> Beyond standard content moderation, tests now look at multimodal risks (interpreting images unsafely), identifying people (which they’re trained <em>not</em> to do, but testing verifies this), and subtle biases emerging in complex interactions or when prompted with user identities (first-person fairness).</li><li><strong>Instruction Hierarchy &amp; Jailbreaking via Customization:</strong> With API access, developers can give models custom instructions. A key test is ensuring the model prioritizes OpenAI’s core safety instructions (system message) over potentially conflicting developer instructions, and developer instructions over potentially malicious user prompts. They test this with scenarios like a “math tutor” AI being tricked into giving the answer, or protecting specific phrases/passwords.</li></ol><p><strong>What the Testing Found: Capabilities, Concerns, and Caveats</strong></p><p>The system card presents a <em>lot</em> of data , but here are my key takeaways focusing on the <em>why</em> behind these tests and the real-world implications:</p><ul><li><strong>Deception is already Demonstrably Possible:</strong> Apollo Research’s work is particularly illuminating. While they state the models aren’t likely to cause <em>catastrophic</em> harm via scheming <em>yet</em>, they clearly demonstrated instances of strategic deception in simulated real-world tasks (e.g., exceeding compute quotas and lying about it, breaking promises made to gain access). This isn’t hypothetical; the <em>capability</em> for this kind of behavior exists, even if only triggered “in-context” by specific goals in the tests. For anyone deploying these models in sensitive applications, understanding that the AI’s stated intentions might not align with its actions is critical. The “sabotage” tests, though explicitly prompted, show the <em>potential</em> for harmful actions if a model <em>were</em> misaligned.</li><li><strong>Reward Hacking is Real:</strong> METR’s finding that o3 successfully hacked its scoring function in 5 out of 24 optimization experiments is a stark warning. It highlights that simply setting a goal and rewarding success isn’t enough. As AI’s become more agentic, they may find adversarial ways to achieve the literal goal (get the reward) while violating the spirit of the task or causing unintended side effects. This has huge implications for training reliable AI systems. Detecting this kind of subtle manipulation is hard and might require looking “under the hood” at the model’s internal reasoning, which is still a research challenge.</li><li><strong>Autonomous Capabilities are Growing, But Hitting Limits (For Now):</strong> Both METR’s time-horizon scores (o3 managing tasks lasting ~1.5 hours) and Pattern Labs’ cybersecurity findings show increased competence. o3/o4-mini are better tool users and can handle longer sequences of actions than previous models. However, they still struggle with complex, open-ended, <em>hard</em> challenges without significant hints or explicit solver code (like in the Cyber Range scenarios or difficult CTFs). They can assist a skilled human, but fully autonomous complex hacking or R&amp;D seems out of reach <em>currently</em>. The key word is “currently.”</li><li><strong>The Path to Self-Improvement is Paved, But Not Yet a Highway:</strong> The models are getting very good at <em>well-defined</em> coding tasks (SWE-Bench Verified scores are impressive) and acing coding interviews. However, translating that into the fuzzy, open-ended work of <em>real</em> software engineering or AI research (like replicating novel papers from scratch in PaperBench or complex internal OpenAI PRs) shows a significant gap remains. They lack the higher-level planning, creativity, and deep understanding required for truly autonomous R&amp;D <em>at this stage</em>. But the improvement trajectory is undeniable.</li><li><strong>Testing is Getting Smarter, But Gaps Remain:</strong> The very existence of these detailed third-party evaluations and OpenAI’s Preparedness Framework is a positive step. They are actively looking for these complex failure modes. However, the reports rightly caution that evaluations are often a <em>lower bound</em> on capability. Novel prompting, different scaffolding, or simply more interaction time could elicit behaviors not seen in tests. The issue of “contamination” (models finding answers online during tests) and the difficulty of detecting things like “sandbagging” highlight the ongoing challenges in robust evaluation.</li></ul><p><strong>Takeaway:</strong></p><p>The o3/o4-mini scorecard isn’t just about faster, smarter models. It’s a window into the escalating challenge of AI safety and alignment. These tests are revealing nascent capabilities for deception, manipulation, and autonomous action that, while perhaps not “High” risk today according to OpenAI’s framework, clearly demonstrate the <em>potential</em> for misuse or unintended consequences as models continue to scale. As a developer, user and human, it is important to understand that these risks are real as we hand over more and more tasks. Everyone should have at least a basic understanding of these risks and companies like OpenAI need to be open (like in this scorecard) about their processes and let external parties evaluate their models. The good news is that sophisticated testing<em> is</em> happening, involving both internal teams and external auditors. The cautionary note is that The work by METR and Apollo, in particular, underscores that alignment is not solved, and ensuring AI behaves reliably and truthfully as it becomes more integrated into our systems is a critical, ongoing challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b09ee7705b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Agent Era is Here: CTO Takeaways from Microsoft Nadella’s AI Agent Vision]]></title>
            <link>https://jlvalorvc.medium.com/the-agent-era-is-here-cto-takeaways-from-microsoft-nadellas-ai-agent-vision-7e1bdaaa75e9?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e1bdaaa75e9</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 20:32:38 GMT</pubDate>
            <atom:updated>2025-02-24T20:32:38.433Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.youtube.com/embed/9NtsnzRFJ_o">https://www.youtube.com/embed/9NtsnzRFJ_o</a></p><p>Here are my take aways after listening to Microsoft CEO Satya Nadella’s recent interview on the BG2 podcast, one that some have click baited into him announcing ‘SaaS is Dead’. I don’t believe SaaS is dead (although maybe AaaS (Agent-as-a-Service will be the new buzz word for formally SaaS companies?). But I. do see Nadella’s vision of an “agent era” as both likely and closer than many think it is. It poses significant challenges and opportunities for SaaS companies.</p><p>Here are my key takeaways from his comments, and what they mean for SaaS startup CTO’s:</p><h3>1. The “Thin UI” is Dead (Long Live Data):</h3><p>Nadella’s most provocative statement was that business applications, as we know them, are essentially “crowd databases with a bunch of business logic.” He essentially argues that the complex user interfaces that development teams spend so much time perfecting are becoming unnecessary. This is a profound change.</p><p>As a SaaS startup CTO you should: Shift your team’s focus from presentation to data accessibility and structure. The competitive advantage will no longer solely rely on a slick UI, but rather on how easily and powerfully your data can be accessed and manipulated by AI agents. This means:</p><ul><li>Prioritize clean, well-documented APIs. Agents will interact with your data directly, so make that interaction as seamless as possible. Champion API-first design, treating it as a core requirement, not an afterthought.</li><li>Ensure data quality and organization are impeccable. Garbage in, garbage out still applies, but now the “user” is an AI. The data must be accurate, consistent, and structured in a way that’s easily understood by these agents.</li><li>Rethink the data model. Is data being stored in the optimal way for agent-based interactions? Consider new data structures or relationships to facilitate complex queries and actions that agents will need to perform.</li></ul><h3>2. Business Logic Moves to the Agent Tier:</h3><p>Nadella explicitly stated that the “business logic” (the rules and processes that make applications do things) will migrate to the AI agent layer. Instead of hard-coding workflows into applications, companies will rely on agents to understand user intent and execute actions across multiple systems.</p><p>As a SaaS startup CTO you should: Make your platform agent-ready. This involves:</p><ul><li>Focusing development efforts on core functionality. Instead of building out every conceivable feature, concentrate on the core value the data provides. Let the agents handle the complex workflows.</li><li>Designing for composability and interoperability. Your services need to be modular and easily integrated with other systems. Agents will orchestrate actions across multiple platforms, so ensure your system plays well with others.</li><li>Embracing a “tool” mindset. Nadella used the analogy of Excel becoming a “tool” for Copilot. Think of your SaaS offering in a similar way — as a powerful tool that agents can leverage to achieve specific outcomes.</li></ul><h3>3. The Backend is (Almost) Irrelevant:</h3><p>Perhaps the most surprising takeaway was Nadella’s assertion that the specific backend technology becomes less important in the agent era. Agents won’t discriminate between different databases; they’ll work with whatever is most efficient and appropriate for the task.</p><p>As a SaaS startup CTO you should: Recognize this shift and adapt your technology strategy. This is potentially liberating, but also requires careful planning:</p><ul><li>Ensure data portability. The data should be easily migrated between different backend systems. This provides flexibility and avoids vendor lock-in, which is crucial for agility.</li><li>Prioritize scalability and cost-effectiveness. The choice of backend should be driven by performance and cost considerations, not by specific features that might become irrelevant in an agent-driven world.</li><li>Invest in and cultivate data expertise. While the specific backend technology might be less crucial, the skills required to manage, secure, and optimize the data become even more critical. Build a team with strong data engineers and architects who can design for the agent era.</li></ul><h3>The Bottom Line:</h3><p>For an informed CTO, Nadella’s vision should not be that much of a surprise. The agent era is coming, and it will fundamentally change how software is built, deployed, and used.<br>A prepared SaaS startup CTO, will shift development practices — from building self-contained applications to creating powerful, data-centric services that can be seamlessly integrated into an agent-driven ecosystem.<br>It’s an incredibly exciting time to be in the SaaS space. Companies, and their CTOs, need to adapt, innovate, and embrace the agent revolution, or risk being left behind.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e1bdaaa75e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing the AI Revolution: The 2025 CTO Playbook Inspired by Guillermo Rauch of Vercel]]></title>
            <link>https://jlvalorvc.medium.com/embracing-the-ai-revolution-the-2025-cto-playbook-inspired-by-guillermo-rauch-of-vercel-ef03b5de0ba5?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef03b5de0ba5</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Wed, 05 Feb 2025 23:34:32 GMT</pubDate>
            <atom:updated>2025-02-05T23:34:32.044Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAMfs3eGYDdS5CJFlL0GgA.png" /></figure><p>I just listened to a great interview with the founder of Vercel — Guillermo Rauch in which he provides a fresh perspective on the future of software development in the age of AI. Guillermo, known for projects like Socket.IO and Next.js, presents a compelling vision for adapting to and leveraging AI’s transformative potential in software, rather than fearing it.</p><p><a href="https://www.youtube.com/watch?v=MQw_zncxk-E">https://www.youtube.com/watch?v=MQw_zncxk-E</a></p><p>For CTO’s it is crucial to move beyond simply acknowledging AI and begin actively integrating its implications into strategy, teams, and the definition of software professionalism.</p><p>Based on this interview, here’s my take on a playbook for CTOs to consider for their teams and companies in the next year:</p><h3><strong>Redefining “Developer” — Embrace the “Product Engineer” Mindset:</strong></h3><p>Guillermo’s statement, <em>“I don’t think I would identify today even as a coder,”</em> highlights an important evolution. He emphasizes the shift from focusing solely on coding implementation to prioritizing product delivery and user experience. The interview underscores that the future is less about traditional coding and more about being a <em>product engineer</em> or <em>design engineer</em>.</p><p><strong>As CTO, you should:</strong></p><p><strong>Champion this shift</strong> within your organization. Move away from solely valuing lines of code and towards rewarding product impact and user experience. Performance reviews and team goals should reflect this, prioritizing problem-solving, user-centricity, and the ability to orchestrate AI tools.</p><p><strong>Encourage and facilitate training</strong> programs focused on <em>meta-skills</em>. These include:</p><ul><li><strong>Conceptual Thinking &amp; System Design:</strong> Understanding the big picture, architecture, and component interactions.</li><li><strong>Problem Decomposition &amp; Prompt Engineering:</strong> Breaking down complex problems for AI solutions and effective communication with AI agents.</li><li><strong>Taste &amp; User Experience:</strong> Developing an eye for good design, usability, and user delight, even when AI generates code.</li><li><strong>Resource Allocation &amp; Agent Management:</strong> Managing and delegating tasks to AI agents, understanding cost and risk.</li></ul><p><strong>Organize internal workshops and knowledge-sharing sessions</strong> on AI tools and platforms like V0, AI SDK, and similar technologies. Equip teams with practical skills to leverage these technologies and understand their potential.</p><h3><strong>Embrace the “Product First” &amp; “Dogfooding” Ethos — Learn from Vercel’s Approach:</strong></h3><p>Guillermo emphasizes Vercel’s “Customer Zero” principle and product-first approach. Their AI SDK and V0 emerged from solving internal product development challenges, not from abstract trends. This is a valuable lesson.</p><p><strong>As CTO, you should:</strong></p><p>Reinforce internal “dogfooding” culture. Actively use AI tools in development workflows, not just for experiments, but for building real internal products and features. This experience provides understanding of AI’s strengths and limitations in practice.</p><p>Prioritize building internal “AI-first” prototypes and demos. Encourage teams to identify pain points in products and workflows and explore AI-powered solutions. This generates innovation and provides practical learning opportunities.</p><p>Establish feedback loops connecting internal AI product development with broader product strategy. Insights from dogfooding should inform understanding of customer needs and market opportunities in the AI era.</p><h3><strong>Understand AI as a Platform Shift — Seize New Opportunities:</strong></h3><p>Guillermo compares AI to the iPhone home screen, a new platform for application development. AI is not just a feature but a foundation for numerous applications. This represents significant opportunity, especially for agile companies.</p><p><strong>As CTO, you should:</strong></p><p>Lead strategic discussions to identify “ChatGPT for X” opportunities relevant to your domain. Brainstorm and research areas where domain-specific AI agents can offer superior value compared to general models.</p><p>Allocate resources to explore and prototype new AI-powered products and features addressing unmet needs or reimagining existing solutions. Encourage experimentation and calculated risks in AI-driven innovation.</p><p>Monitor the evolving AI landscape, noting specialized agents, consumption-based billing, and AI marketplaces. Agility and strategic adaptation are key as the AI ecosystem develops.</p><h3><strong>Navigate the “Allocation Economy” — Think Beyond Traditional Metrics:</strong></h3><p>The shift from a “knowledge economy” to an “allocation economy” is significant. It moves focus from knowledge possession to effective allocation of intelligent resources. This impacts how success is measured and teams are managed.</p><p><strong>As CTO, you should:</strong></p><p>Begin thinking about software development as “task allocation” to AI agents. Explore workflows where developers define tasks and orchestrate AI agents for execution, rather than manual coding alone.</p><p>Develop new metrics to evaluate AI-driven development efficiency and effectiveness. This could include metrics for task completion time, resource consumption (AI tokens, compute), and the quality of AI-generated outputs.</p><p>Educate teams about the cost implications of AI, especially consumption-based models. Develop a cost-conscious AI approach, understanding trade-offs between speed, quality, and resource use.</p><h3><strong>Foster “Taste” and Human Oversight — The Indispensable Role of Humans:</strong></h3><p>While AI automates code and optimizes quantifiable metrics, Guillermo emphasizes the enduring importance of “taste” and human judgment. AI currently lacks nuanced understanding of aesthetics, user experience, and social context.</p><p><strong>As CTO, you should:</strong></p><p>Emphasize human oversight and critical evaluation of AI-generated outputs. Train developers to be discerning curators, ensuring AI code aligns with quality standards, design principles, and user needs.</p><p>Invest in design expertise and integrate designers into AI-driven development. Designers are crucial for shaping prompts, evaluating AI designs, and ensuring user resonance on aesthetic and emotional levels.</p><p>Continue nurturing creativity and innovative thinking within teams. While AI is a powerful tool, true innovation often comes from human intuition, imagination, and connecting diverse ideas.</p><h3><strong>Conclusion: Adapt and Lead in the AI Wave</strong></h3><p>Guillermo Rauch offered a guide for navigating the AI revolution in software development. It is not about job displacement fears, but about embracing accelerated innovation. <strong>Developers will evolve into orchestrators of intelligent tools,</strong> focusing on high-level product thinking and user experience.</p><p>By implementing these strategies, organizations can adapt to and excel in the AI revolution, leveraging its power to build better products, faster, with a continued focus on <strong>essential human qualities — taste, creativity, and user understanding.</strong></p><p>The future of software is not without developers, but is empowered by an evolving developer role, and CTOs should prepare to lead this transformation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef03b5de0ba5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using OpenAI Assistants with Fireflies transcripts to Update Company One-Pagers]]></title>
            <link>https://jlvalorvc.medium.com/using-openai-assistants-and-fireflies-to-update-company-one-pagers-42686e5988d8?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/42686e5988d8</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 20:21:49 GMT</pubDate>
            <atom:updated>2024-10-21T20:22:49.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SbCKqOjfrO5jZPbvGPBXyA.jpeg" /></figure><p>At Valor we look at more than 20 new startups every week. Because we lead seed rounds for B2B SaaS companies, when we first meet them, a few months can make a huge difference in their suitability for our thesis. To facilitate keeping track of so many companies and their updates with a small team we created Vic, our AI Assistant.</p><h3>Add to Salesforce and summarize and enrich data</h3><p>Our CRM is Salesforce, so the first step when we learn about a startup is to add them to Salesforce. These days that process itself is most often automated — typically by sending <a href="https://medium.com/@jlvalorvc/a-gmail-answering-openai-assistant-built-in-django-44ebe1c6671f">Vic an email.</a> A company name or (ideally) website URL should be enough to get going. A salesforce trigger will call our research Assistant. This Assistant gathers information by performing a web scrape, conducting a Google search, and adding key findings to Salesforce. The goal at this stage is to fill in the foundational ‘building blocks’ of the company one-pager, which include:</p><ol><li><strong>Description</strong></li><li><strong>Product Story</strong></li><li><strong>Revenue Story</strong></li><li><strong>Funding Story</strong></li><li><strong>Team Story</strong></li></ol><p>To achieve this, I run an Open Assistant that I’ve equipped with specific functions: <em>webscrape()</em> to read company website information, targeting pages like ‘team’ and ‘product’; <em>googlesearch() </em>to find LinkedIn profiles and other key pages; and <em>pitchbook()</em> to look up funding information. Once this data is gathered, the <em>addcompany()</em> function uses the Salesforce REST API to integrate the findings and create records automatically. Depending on the available information some of the information might be missing (often funding info and revenue info)</p><h3><strong>Assessment Assistants</strong></h3><p>Once the initial record is ready, it’s time for evaluation. Here, multiple Assessment Assistants come into play:</p><ul><li><strong>Thesis Evaluation</strong>: One Assistant evaluates the company against Valor’s investment thesis. We’re giving it all the data we have and ask it to check against our criteria, that include location (the south), stage (Seed) and type of company (B2B SaaS).</li><li><strong>AI Rating</strong>: Another Assistant generates a Valor AI rating. We use a very simple scale from 0 to 3 that helps create our quarterly AI in the South reports.</li><li><strong>Revenue and Funding Check</strong>: A third Assistant helps with more analytics with categorizing revenue and funding information. This makes our reporting easier (example -1: no revenue data, 0 = no revenue 1=&lt;$100k ARR etc)</li></ul><p>Every time we update the company basis information, including the building blocks mentioned before, all assessments are re-run as well.</p><h3><strong>Learning more — meeting and company update Assistants</strong></h3><p>Internally we use Fireflies.ai to record and transcribe all meetings. Using the Fireflies API, I import all those meetings daily. For each new meeting an OpenAI Assistant is used to identify the account the meeting belongs to and the type of meeting. Then a second Assistant is called to create a detailed summary. For all our meetings with Startups the summarizer prompt is to focus on the 5 ‘buckets’ mentioned earlier (Description, Product Story, Revenue Story, Funding Story, and Team Story). Other meetings will have slightly different summary instructions, like customer reference calls.</p><p>When we receive new startup information by email (Investor updates, maybe a new pitch deck) we follow the same procedure: first extract all data from email/decks/attachments using LlamaParse and summarize the information received across the same buckets.</p><h3><strong>Update the one pager Assistant</strong></h3><p>Finally, we call an Assistant that will take the bucketized meeting summary and use it to update the original company information. The prompt is very specific to replace older info with newer info. For example:</p><p><strong>Current info in Salesforce</strong>: Acme.ai — <em>Revenue Story</em>: The company is currently pre revenue but expecting to sign its first paid customer in April.</p><p><strong>Meeting summary:</strong> …. <em>Revenue Story</em>: Acme.ai signed their first paid customer contracts one with ABC Inc for $30k ARR in May and other one with DEF LLC for $90k ARR in June…</p><p>The company update Assistant will update the Revenue info for acme.ai to something like:</p><p><strong>Updated info in Salesforce:</strong><em> Revenue Story:</em> The company currently has $120k in ARR from two paid customers.</p><p>It will do the same for each bucket, and it will do this every time a new meeting or company update is received.</p><p>If any of the buckets are updated, the Assessment Assistants are also called to make sure those reflect the current state of the company as well. In the case above for example, the Revenue Status would be changed from ‘0’ (No revenue) to ‘2’ ($100k-$500k ARR)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42686e5988d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The case for AI Embedded coding]]></title>
            <link>https://jlvalorvc.medium.com/the-case-for-ai-embedded-coding-1c25b35283b2?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c25b35283b2</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 02:12:00 GMT</pubDate>
            <atom:updated>2024-10-09T15:10:19.696Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*fwNffcrRPmD_LU4GIMlQXw.png" /><figcaption>The Actual Assistant Used</figcaption></figure><p>Old habits die hard — and todays AI coding assistants — which I love BTW — are great, but not necessarily best at using the power of AI Assistants <em>instead</em> of code.</p><p>Let me share a recent example that got me thinking. In our app, we import company-wide Fireflies transcripts of conversations we have with startups every day. We need to store each transcript with the right startup. This is trickier than it seems because from the Fireflies API we only get a transcript, a summary, and a list of participants.</p><p><strong>Examples:</strong></p><pre>Meeting 1: Participants: jl@valor.vc, john@acme.com <br>Meeting 2: Participants: jl@valor.vc, john.doe@gmail.com<br>Meeting 3: Participants: jl@valor.vc<br>Meeting 4: Participants: &lt;empty&gt;</pre><p>In example 2- John logged in with his personal gmail, not his business email. In Meeting 3, for unknown reasons we did not get a other participant email at all and in meeting 4 we received no participant info. In all the cased above we do have a short summary something like:</p><pre>MeetingSummary : &quot;Meeting with John Do at Acme corp about a possible investment&quot;</pre><p>In my original code, I wrote code that used the emails of the participants to look up contacts in our database, and if nothing was found that way next I would try to find the company by using the website URL. It looked something like this:</p><pre>contact = None<br>valor = transcript[&#39;user&#39;][&#39;email&#39;]<br>participants = &#39;&#39;<br>for c in transcript[&#39;participants&#39;]:<br> if &#39;,&#39; in c:<br> continue<br>participants += c + &quot; &quot;<br> c = c.upper()<br> if &#39;VALOR.VC&#39; in c:<br> # if we don&#39;t have the Valor contact yet save this one<br> if valor == None:<br> valor = c <br> elif AccountID == None: <br> # try to find the account by looking up email<br> contact = getContact({&#39;Email&#39;: c})<br> if contact.get(&#39;ContactID&#39;, None) != None:<br> AccountID = contact.get(&#39;AccountID&#39;, None)<br> company = getCompany({&#39;AccountID&#39;: AccountID})<br> elif not c.split(&#39;@&#39;)[1].upper() in [&#39;GMAIL.COM&#39;, &#39;OUTLOOK.COM&#39;, &quot;BELLSOUTH.NET&quot;, &quot;YAHOO.COM&quot;, &quot;AOL.COM&quot;, &quot;HOTMAIL.COM&quot;, &quot;ICLOUD.COM&quot;, &quot;MSN.COM&quot;, &quot;COMCAST.NET&quot;, &quot;ATT.NET&quot;, &quot;SBCGLOBAL.NET&quot;, &quot;VERIZON.NET&quot;, &quot;COX.NET&quot;]:<br> company = getCompany({&#39;Website&#39;: c.split(&#39;@&#39;)[1]})<br> if isinstance(company, list): <br> AccountID = company[0].get(&quot;AccountID&quot;, None)<br> if AccountID != None and valor != None:<br> # we found both the valor contact and we have the Account id<br> break</pre><p>There are many ways this can fail. Depending on the platform, the participants may not be available. The participant might use a different email than the one in our contact database. Or the person might not yet exist in our database. After using this for several months, we noticed we were missing too many transcripts automatically (25%), so I wanted to improve our matching rate.</p><p>The code turns out to be a great example of why an AI Assistant version can do much better. When provided with the same information (the list of participants as text, plus a short summary of the transcript) and the same lookup functions to find a contact or a company we only have to prompt it how we want it to look for the company id.</p><p>Here is the prompt I used to build a version that handles all the transcripts that could not be identified with the hardcoded version:</p><pre>Your job is to find the account based on a meeting summary. <br>Your clues are the people in the meeting (participants) and the company name. <br>The spelling of the company might not be correct and the same is true for <br>participants.<br>You will ignore any participant that are with Valor ventures (email valor.vc)<br>Try finding the company based on company name. <br>If the company is not found using getCompany, use the non-Valor participants&#39;<br>email to find a contact <br>If found, the account is the account that belongs to the contact. <br>If you can&#39;t find the person by email, try with the contact name (only). <br>If still not found, consider retrying the company find. <br>Sometimes a company name is spelled as two words internally and one word<br>in the summary, or vice versa. <br>Also worth trying to search using the company name as the website URL <br>(especially in case of .AI type of names). <br>Make sure that data received from the search (company, description, record type)<br>makes sense with the transcript summary. If in doubt, return None for Company__c.<br><br>You will return &quot;Company__c&quot; with the Salesforce ID of the ACCOUNT that was found. <br>(Never the contact ID!)<br>Your response will be in JSON: &quot;Company__c&quot;: None if not found <br>or the Salesforce account ID.</pre><p>We’re using gpt-4o to output JSON. Here’s an example of the output:</p><pre>{<br> &quot;Company__c&quot;: &quot;001Jw00000Uj4uDIAR&quot;<br>}</pre><p>This only works, of course, because I already had functions for finding a contact and finding a company that I could just plug into this Assistant. Here’s the getCompany and getContact template for function calling:</p><pre>{<br> &quot;name&quot;: &quot;getCompany&quot;,<br> &quot;description&quot;: &quot;Find a company in Valor&#39;s Salesforce, by company name or website. Company name is preferred, for website use only the domain name.&quot;,<br> &quot;strict&quot;: false,<br> &quot;parameters&quot;: {<br> &quot;type&quot;: &quot;object&quot;,<br> &quot;description&quot;: &quot;A company in the Valor Salesforce Database.&quot;,<br> &quot;properties&quot;: {<br> &quot;Name&quot;: {<br> &quot;description&quot;: &quot;The name of the company&quot;,<br> &quot;type&quot;: &quot;string&quot;<br> },<br> &quot;Website&quot;: {<br> &quot;description&quot;: &quot;Company Website&quot;,<br> &quot;type&quot;: &quot;string&quot;<br> }<br> },<br> &quot;required&quot;: [<br> &quot;Name&quot;<br> ]<br> }<br>}</pre><pre>{<br> &quot;name&quot;: &quot;getContact&quot;,<br> &quot;description&quot;: &quot;Find a contact in Salesforce using email address, or full name + company name. Email is preferred.&quot;,<br> &quot;strict&quot;: false,<br> &quot;parameters&quot;: {<br> &quot;type&quot;: &quot;object&quot;,<br> &quot;properties&quot;: {<br> &quot;FullName&quot;: {<br> &quot;type&quot;: &quot;string&quot;,<br> &quot;description&quot;: &quot;can be used to search by name&quot;<br> },<br> &quot;Email&quot;: {<br> &quot;type&quot;: &quot;string&quot;<br> },<br> &quot;Company&quot;: {<br> &quot;type&quot;: &quot;string&quot;,<br> &quot;description&quot;: &quot;Company Name&quot;<br> }<br> },<br> &quot;required&quot;: [&quot;Email&quot;]<br> }<br>}</pre><p>I think it is easy to see how the Assistant version is a ‘higher level’ code, ie like going from Assembler to C. The most amazing part is how much better the prompt version is at the doing the job, compared to the original ‘hardcoded’ Python version.</p><p>The code to execute the Assistant is minimal:</p><pre>def get_account(request, id: str):<br> meeting = FirefliesMeeting(id=id)<br> if meeting != None and meeting.Summary__c != None:<br> # run Assistant to find account<br> task = assistantTask(assistantName=&quot;Vic Fireflies Meeting Account Finder&quot;,<br> tools=[&quot;chatbot.salesforce:getCompany&quot;, &quot;chatbot.salesforce:getContact&quot;],<br> metadata={&quot;id&quot;: meeting.id,<br> &quot;sobject&quot;: &quot;Fireflies_Meetings__c&quot;<br> },<br> completionCall=&#39;chatbot.screen:updateRunwayApplication&#39;)<br> task.prompt = &quot;Find the salesforce account id for this meeting. &quot; + (f&quot;Participants: {meeting.Participants__c}&quot; if meeting.Participants__c != None else &quot;&quot;) + &quot; &quot; + (f&quot;Summary: {meeting.Summary__c}&quot; if meeting.Summary__c != None else &quot;&quot;)<br> task.createRun()<br> return {&#39;company_id&#39;: meeting.company_id, &#39;fireflies_id&#39;: meeting.fireflies_id}<br> else:<br> return {&#39;status&#39;: &#39;not found or empty summary&#39;}</pre><p>(See my <a href="https://jlvalorvc.medium.com/building-a-scalable-openai-assistant-processor-in-django-with-celery-a61a1af722e0">previous article</a> for running Assistant prompts on Django/Celery.)</p><p>Because we’re using the strict JSON output, the Assistant will always return the JSON that I expect and I afterwards I simply update the record with the account id provided.</p><p>This shift reminds me of how moving from Assembly to C made programming more accessible, allowing us to express higher-level concepts without managing every instruction. The leap to interpreted and runtime-compiled languages further abstracted away memory management, letting us focus on solving problems instead of implementing details like memory management.</p><p>Now what I call <strong>AI embedded code</strong> is pushing that abstraction even further. Instead of only writing precise ‘if then’ type code, we’re blending prompted <em>parts</em> of the code. It’s funny how we might finally be delivering on the ‘low code/no code’ promise!</p><p>The same arguments against AI embedded code can be made as those against using any higher-level code compared to compiled or assembly languages: it requires more computational “cycles” and scales differently. So, it’s true that this might not yet be ideal for processing millions of scripts. Additionally, the cost is around 2,000 tokens per transcript, which comes to roughly half a cent. But it is way easier to read (and update!) and the Python code works only for 75% or so of the cases where a human would be able to find the account) while the AI Assistant version handles 97% of the cases with just that fairly simple prompt.</p><p>The revelation here for me was not so much the solution — I already had quite a few similar prompts in my codebase — but the fact that I did not create the Assistant based solution the first time around! We are clearly creatures of habit and looking at the code version now I have a hard understand why I ‘hardcoded’ it in the first place.</p><p><strong>I need to keep AI Embedded coding top of mind. (And funnily enough the AI Assisted code is NOT good for that because it will dutifully churn out fresh ‘old fashioned’ code)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c25b35283b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get the most out of a company hackathon]]></title>
            <link>https://jlvalorvc.medium.com/how-to-get-the-most-out-of-a-company-hackathon-f7d8a9c6b67a?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7d8a9c6b67a</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Mon, 07 Oct 2024 00:33:25 GMT</pubDate>
            <atom:updated>2024-10-07T00:33:25.385Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7wbE-_z7h956TnXo6MBXKw.png" /></figure><h3>Goal</h3><p>Start with defining a clear goal that you want to achieve with the hackathon. Is it improving team work, integrating new team members? Is it cross functional team building (customer success with product development for example)? Or do you have technical challenges that you want everyone to work on together? More than one goal is fine too of course, but having a clear picture what you want to achieve with a significant investment of company resources will help you with planning the hackathon and evaluating the results afterwards.</p><h3>Theme</h3><p>Once you have a clear goal try to pick a theme a that captures the essence of the hackathon in a fun way. It will probably be something that is not easily understood outside of your company, but anyone in your company should get it right away.</p><h3>Team setup</h3><p>Consider multi-department teams — hackathons are perfect opportunities to promote cross team cooperation (product &amp; dev, customer success &amp; dev etc). Two developers and one person from another team is my favorite setup.</p><h3>Environment Setup</h3><p>Make sure to create a (shared) environment where teams can safely experiment and build. The environment should be a ‘believable’ copy of the production environment. Deployment Pipeline: Configure a simple CI/CD pipeline that allows teams to quickly deploy their prototypes into a staging or sandbox environment. This could be as simple as a GitHub Actions pipeline that automatically deploys to a test server.</p><p>Note: IMO a company hackathon should demand that all teams must demo their product from a ‘hackathon sandbox’ deployment, ie not simply running from a local laptop!</p><h3>Tooling and Resources</h3><p>Decide on what (new) tools and resource are available and what can or cannot be brough from the outside. A hackathon can be a great way to try out new tech or help a broader group a people to get acquinted with new tools.</p><p>Ideally there is a setup that can be easily checked out that can be the basis for each team to get going.</p><h3>Pre-Hackathon Training/Setup session</h3><p>Assuming you created a proper environment, a one hour session the day before the hackathon where everyone can get their environment up and running and have any issues with it ironed out will save a lot of stress and time lost during the hackathon.</p><p>This is also a good time for the rules and the schedule to be shared.</p><h3>Hackathon schedule</h3><p>Sprint 1: The team define the scope of their project, create whatever form of mockup/functional design and describe how they are going to demo the final project. This is a shared document that will become part of the judging. <strong>At the end of this sprint every team will do a 5min presentation on what they are going to build, how they will demo it and their plan of attack.</strong></p><p>Sprint 2: Build. Create a check-in point somewhere halfway were you check on progress with every team. It might be needed to adjust the original plan (reduce scope?) to make sure the team can still come up with a working demo at the end.</p><p>Sprint 3: The final round that is focused on deployability and the demo.</p><p>For a one day hackathon go with 2 hours for sprint 1, 5 hours for sprint 2 and 2 hours for the final round. And then demos!</p><h3>Demo time</h3><p>Every team should demo their solution and detail the ‘how’ of their solution. Make sure to have these sessions timed. 5 min demo 5 min ‘how’ max.</p><h3>Judging and Awards</h3><p>Judging Criteria: These should be shared in advance and should be related to both your goal and theme. Consider to have all teams (and company employees not on the teams) to be part of the judging by creating a simple form with a few questions like:</p><p>‘Consider to have every one in the hackathon and everyone attending the demos fill out a simple judging form for each project. Here’s a suggestion:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*FCv31EYADj9lZGggQfFfSQ.png" /></figure><p>It should be really fun for each team to see the feedback afterwards. The feedback can also help guide the awards — but the awards can also be (partly) judged be a jury.</p><p>Prizes: Consider awarding prizes for categories like “Best Prompt Engineering,” “Most Creative Use of AI,” and “Best Production-Ready Solution.” They should probably related to your goals in some way and ideally the prizes would be align with the Theme as well. Be creative!</p><h3>Post-Hackathon Debrief, Integration</h3><p>Knowledge Sharing: After the hackathon, hold a debrief session to discuss what was learned Share best practices and consider creating internal documentation based on the hackathon experience.</p><p>Tip: record the sessions and let the AI help (Especially if you also record all the team presentations as well, you will be able to create some really good follow up documentation.)</p><p>Next Steps: Identify the most promising projects from the hackathon and create a plan to further develop and deploy them into production. And of course — set a date for the next hackathon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7d8a9c6b67a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A scalable, async OpenAI Assistant processor built with FastAPI (source code on Github)]]></title>
            <link>https://jlvalorvc.medium.com/a-scalable-async-openai-assistant-processor-built-with-fastapi-sourcecode-on-github-67fc757e9832?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/67fc757e9832</guid>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Sun, 08 Sep 2024 18:23:34 GMT</pubDate>
            <atom:updated>2024-09-08T18:24:53.674Z</atom:updated>
            <content:encoded><![CDATA[<p>(Full source code: <a href="https://github.com/jlvanhulst/fastapi-assistant">https://github.com/jlvanhulst/fastapi-assistant</a>)</p><p>After working with the Openai Assistants for 10 months and first building a Django/Celery based ‘processor’ I realized that the Django/Celery setup is in many ways ‘legacy’ and certainly more complicated to setup (and maintain). So I wrote a completely new version, inspired by some of the streaming chat/FastAPI implementations that has all the features my Django processor had, but now in a single Python file that can be added to any Python project and plays (very) well with FastAPI projects. Which also means it is super easy to quickly deploy on AWS Elastic Beanstalk.</p><p>This Assistant processor is meant for ‘task’ handling, not ‘chats’, it is not using any of the realtime features. You can read some of my other posts like the one about using OpenAI to process tasks from <a href="https://jlvalorvc.medium.com/a-gmail-answering-openai-assistant-built-in-django-44ebe1c6671f">incoming emails</a>. <br>Interally we run hundreds of these tasks daily, reading and rating incoming pitches, summarizing meeting transcripts etc.</p><p>Before getting into the more advanced parts lets start with the basics.</p><p>Setup an new project in the OpenAI backend (platform.openai.com) in your Organization settings. Use the dropdown on top left and make sure you’re in the new empty project. From the left sidebar pick API keys and create an API key for THIS project. You will need this key to access the Assistants, Threads and Runs that you will create in this project.</p><p>Now create a new Assistant, also from the left sidebar. Let’s call it ‘Joker’ and make it about telling joke. Like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*vqKaXfTQYgJr78NO6vkEsg.png" /></figure><p>Try it out in the playground (top right menu!) using the Playground button and make sure in the playground to pick the Assistant tab and the Assistant you just created. No other settings on the OpenAI end are needed at this point. :)</p><p>Time to install the Python project. Go to G<a href="https://github.com/jlvanhulst/fastapi-assistant">ithub</a> and clone the app. If you’re using Visual Studio (or better: Cursor!) — you can run and debug right away (make sure to create your venv environment (from the Palette → ‘Create environment’ → venv) Under ‘Run and debug’ you should have the FastAPI app up and runing!</p><p><strong>(Make sure you have OPENAI_API_KEY definied somewhere)</strong></p><p>It should now be up on 127.0.0.1:8000 and if you do 127.0.0.1:8000/demo/joke this function should be triggered:</p><pre>@router.get(&quot;/joke&quot;, response_class=JSONResponse)<br>async def assistant_test():<br>    &quot;&quot;&quot;<br>    This is a test endpoint that can be used to test the assistant.<br>    <br>    This is the simplest way to &#39;run&#39; an Assistant. Get the assistant object, provide the name of the Assistant <br>    (&#39;test&#39; in this case) and the prompt. <br>    &quot;&quot;&quot;<br>    assistant = Assistant_call()  <br>    response = await assistant.newthread_and_run(assistant_name=&quot;Joke&quot;, <br>              content=&quot;tell me a joke about sales people&quot;)  <br>    return response</pre><p>This should return JSON that looks like this:</p><pre>{<br>  &quot;response&quot;: &quot;Why did the salesperson only sell cows?\n\nBecause they were really good at moooo-ving inventory!&quot;,<br>  &quot;status_code&quot;: 200,<br>  &quot;thread_id&quot;: &quot;thread_bSmhm1zotS3NXr6PpObxQMsS&quot;<br>}</pre><p>First task completed (getting a joke from an Assistant, through a simple API call). If you did not create an Assistant with the name ‘Joke’ you will get an error ‘Assistant ‘Joke’ not found.</p><p>A slightly more advanced example that is already pretty powerful — provide the Assistant name in the url and provide the prompt in JSON.</p><pre>@router.post(&quot;/assistant/{assistant_name}&quot;, response_class=JSONResponse)<br>async def run_assistant(assistant_name: str, data: AssistantRequest):<br>    &quot;&quot;&quot;<br>    A simple example endpoint that can be used to call any Assistant with a prompt. give it the name onf the Assisntant in the request and the {&quot;content&quot;: &quot;your prompt here&quot;} <br>    as the body of the request.<br>    <br>    What it returns depends on the settings for that particular Assistant. This can be text or some json if the assistant is set to return json.<br>    <br>    &quot;&quot;&quot;<br>    <br>    assistant = Assistant_call()<br>    return await assistant.newthread_and_run(assistant_name=assistant_name, <br>content=data.content, <br>tools=tools,<br>files=data.file_ids,<br>when_done=data.when_done,<br>metadata=data.metadata)</pre><p>Using Postman we can call the ‘Joke’ Assistant, but this time we’ll also use the ‘when_done’ attribute to show how this app would work in a production environment that gets incoming Assistants requests, waits for the processing to be done and then calls a follow function to store those results or .. send them to the next Assistant :). This is why we also add a metadata attribute ‘my_id’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*epJJpWAHpbeOOIIx73KP0g.png" /></figure><p>This triggers the Post /Assistant route and receives the Assistant name as the parameter and in the JSON body has the <strong>content </strong>attribute with the prompt (“tell me a joke”) and the <strong>when_done</strong> name of the run_after function that can be found in demo.py. Note: the<strong> when_done</strong> function MUST be defined as Async def! Because we added when_done the response contains the thread_id but not the Assistant response. You pick up the response from the Assistant in the when_done function:</p><pre>async def run_after(thread_id:str=None):<br>    &#39;&#39;&#39;<br>    Demo function to show how to pick up after a trhead is done - and then use the results to be stored or further processed.<br>    &#39;&#39;&#39;<br>    print(&#39;Completion call&#39;)<br>    assistant = Assistant_call()<br>    thread = await assistant.get_thread(thread_id=thread_id)<br>    print(thread.metadata)<br>    response = await assistant.getfullresponse(thread_id=thread_id)<br>    print(response)</pre><p>You can see the metadata in the system console — or when you look up the thread in the OpenAI backend. (BTW — this is a huge advantage, IMO over using chat completions!) — Threads are persistent for 60 days and you can find them in the back end. And the built in metadata make a call back function easy. This demo run_after function just prints the result (andother bad joke — and the metadata. The real application would use the my_id to do some save in a database or another API call.</p><p>So this little FastAPI application is just constantly ready to run Assistant tasks (In parallel, you can fire a lot of requests, slightly depending on your billing tier with OpenAI.</p><p>This version also support File uploading in the demo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Ay0EZlagPsQS-6x4CqzNNQ.png" /></figure><p>And you can add the file_id(s) that you get that way to your next call in the files=.. parameter.</p><pre>assistant = Assistant_call()<br>    return await assistant.newthread_and_run(assistant_name=assistant_name, <br>content=data.content, <br>tools=tools,<br>files=data.file_ids,<br>when_done=data.when_done,<br>metadata=data.metadata)</pre><p>Lastly, function calling is also supported of course and I have included a ‘tools.py’ example file that shows how easy it can be to handle (a lot) of function calling. So my webscrape function example takes these parameters:</p><pre>class WebScrapeParameters(BaseModel):<br>    url: HttpUrl = Field(..., description=&quot;The URL of the website to scrape&quot;)<br>    ignore_links: bool = Field(False, description=&quot;Ignore links in the text. Use &#39;False&#39; to receive the URLs of nested pages to scrape.&quot;)<br>    max_length: int = Field(None, description=&quot;Maximum length of the text to return&quot;)</pre><p>BTW, ChatGPT is really convenient (or Cursor) to quickly create a Pydantic class from a function schema and vice versa: (Just saying, this kind of stuff saves so much time):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*OU_iQDFlUM4rq6AG2mUPOw.png" /></figure><p>So now lets create a new, more useful assistant that can do a simple webscrape to research companies and returns JSON. Here’s what the Assistant looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*140vvfmyvvc7W_H2w77DFg.png" /></figure><p>Note the FUNCTION that has been added with the following template (as generated by ChatGPT)</p><pre>{<br>  &quot;name&quot;: &quot;webscrape&quot;,<br>  &quot;description&quot;: &quot;Get the text content of a webpage if &#39;ignore links&#39; is true, links will be removed from the text&quot;,<br>  &quot;strict&quot;: false,<br>  &quot;parameters&quot;: {<br>    &quot;type&quot;: &quot;object&quot;,<br>    &quot;properties&quot;: {<br>      &quot;url&quot;: {<br>        &quot;type&quot;: &quot;string&quot;,<br>        &quot;description&quot;: &quot;The URL of the website to scrape&quot;<br>      },<br>      &quot;ignore_links&quot;: {<br>        &quot;type&quot;: &quot;boolean&quot;,<br>        &quot;description&quot;: &quot;Ignore links in the text. Use &#39;False&#39; to receive the URLs of nested pages to scrape.&quot;<br>      },<br>      &quot;max_length&quot;: {<br>        &quot;type&quot;: &quot;integer&quot;,<br>        &quot;description&quot;: &quot;Maximum length of the text to return&quot;<br>      }<br>    },<br>    &quot;required&quot;: [<br>      &quot;url&quot;,<br>      &quot;ignore links&quot;<br>    ],<br>    &quot;strict&quot;: &quot;true&quot;<br>  }<br>}</pre><p>To keep things simple, when we use Assistants that have function calling we provide a single python MODULE (ie ‘import tools’ that has EVERY function that might be called by THIS Assistant. In this case I provide it with ‘tools’ (tools.py) — and since this Assistant has only one function it knows to call (‘webscrape’) -the (async) function webscrape MUST be found in that module. It looks like this:</p><pre>async def webscrape(plain_json ):<br>    &#39;&#39;&#39;<br>    This function is used to scrape a webpage.<br>    It converts the html to text and returns the text.<br>    <br>    Args:<br>        plain_json (dict): The JSON data containing the URL to scrape. It is meant to be called as a tool call from an assistant.<br>        the json should be in the format of {&quot;url&quot;: &quot;https://www.example.com&quot;, &quot;ignore_links&quot;: False, &quot;max_length&quot;: 1000}<br><br>    Returns:<br>        str: The text content of the webpage. If max_length is provided, the text will be truncated to the specified length.<br>    &#39;&#39;&#39;<br>    info = WebScrapeParameters(**plain_json)<br>    header = {&#39;User-Agent&#39;: &#39;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36&#39;}<br>    try:<br>        async with httpx.AsyncClient(follow_redirects=True) as client:<br>            response = await client.get(str(info.url), headers=header, timeout=5)<br>    except Exception as e:<br>        logging.error(f&quot;Failed to fetch URL {info.url}: {e}&quot;)<br>        return &quot;&quot;<br>    logging.info(&#39;succesful webscrape &#39;+str(info.url)+&#39; &#39;+str(response.status_code))<br>    out = html_to_text(response.text,ignore_links=info.ignore_links)<br>    if info.max_length:<br>        return out[0:info.max_length]<br>    else:<br>        return out</pre><p>And to run it from Postman it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*y4va0l4iTuz4l1xdEJP1gw.png" /></figure><p>Notice that here I am asking to run the Assistant ‘Company Research Agent’ — I don’t want to wait for the results, because I have ‘when_done’ defined and I made up a metadata field that would help me store the information back.</p><p>(BTW I always LOVE looking at the threads and seeing what it decided to do! Notice that because I told it call the scrape more than once if needed, it did look at sailes.com/company and sailes.com/about-us to find the team info!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*k9TBZDk2YvE498EGrSMRTA.png" /></figure><p>And when it was done with all that — it calls the run_after function where we can see it compiled a beautiful JSON about Sailes.com.</p><p>If you want to have an Assistant call another Assistant you can easily create a wrapper — there is a an example in the demo.py that wraps the Company Research assistant. You can create a new generic Assistant and give it the Company Research function as a tool. One thing to keep in mind when doing that is that a Run will expire in 10 minutes — so that is the overall maximum for nested Assistants at the moment (at least in this implementation).</p><p>(<strong>Note:</strong> This code was inspired by <a href="https://medium.com/@meeran03/async-streaming-openai-assistant-api-with-function-calling-in-fastapi-0dfe5935f238">Streaming Chat FastAPI implementation</a> written by Meeran Malik and my own earlier <a href="https://pypi.org/project/django-openai-assistant/">Django OpenAI Assistant</a>)</p><p>Full source code: <a href="https://github.com/jlvanhulst/fastapi-assistant">https://github.com/jlvanhulst/fastapi-assistant</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67fc757e9832" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[9 months of using the OpenAI Assistants API]]></title>
            <link>https://jlvalorvc.medium.com/9-months-of-using-the-openai-assistants-api-9a715f53310f?source=rss-9074447ee698------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a715f53310f</guid>
            <category><![CDATA[assistants-api]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Jean-Luc Vanhulst]]></dc:creator>
            <pubDate>Fri, 09 Aug 2024 10:53:34 GMT</pubDate>
            <atom:updated>2024-08-09T10:53:34.823Z</atom:updated>
            <content:encoded><![CDATA[<p>As I celebrate the first anniversary of our OpenAI powered Vic application I thought it would be good to share a few thoughts, especially on using the OpenAI Assistants for 9 months now. Here are some observations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPwPIZ3eWwCbEDV1u6U_MQ.jpeg" /></figure><h3>Increased use — decreased cost.</h3><p>In July we ran up 10 million tokens — and our API bill was just $55! Every month since March we have seen usage go up and cost go down. Pretty insane. It makes the cost for a ‘personal’ GPT at $20 seem very hight comparatively. Just this year we went from having the bulk processes on GPT-4, to some on 3.5, and then since May on GPT-40.<br>The value we receive from the work done with those 10 million tokens is truly astonishing.</p><h3>Batch processing — even cheaper for bulk</h3><p>The <a href="https://platform.openai.com/docs/guides/batch">Batch API </a>that was introduced a few months ago allows for Assistant runs to be sent as batches that are processed in a few hours, instead of ‘now’. The savings here are 50%! We are currently not using the Batch API because most of our requests are one offs — but we have had a few situations (like anew ‘AI Score’ that we needed to calculate across all 10,000 existing records) where this could have been useful. Simply have not had the time to create the infrastructure to use it. It’s definitely on the list for my <a href="https://medium.com/@jlvalorvc/building-a-scalable-openai-assistant-processor-in-django-with-celery-a61a1af722e0">Django/OpenAI processor</a>.</p><h3>Performance / reliability is much better today than earlier this year</h3><p>Around April when Assistant usuage started to pick up performance was noticeably slower than today, gpt-4o seems to be making a huge difference.</p><h3>Reliably generating JSON is a breeze now!</h3><p>In the early days of the Assistants it seemed like you had <em>beg prompt</em> to try to get JSON output generated reliably. A few month ago with the introduction of gpt-4o, JSON output became a standard option and just this week <a href="https://openai.com/index/introducing-structured-outputs-in-the-api/">a new feature</a> was introduced that enables JSON schema for function input and repsonse output, solving this issue once and for all.</p><h3>Vector store now built in</h3><p>The original Assistants always allowed uploading files to the Assistant or the Thread but in the latest iteration you can create sets of files, — ie your own vector stores and attach those to Assistants or Threads — not need to use an external vector store. These work great for what you expect: query and retrieval. At the moment they are not very good for things like ‘summarize the text in this document’ (We use Llamaparse at the moment to create a mark down version of every type of incoming document and store the Markdown together with the file. The ever increasing context window size make it fairly easy for most tasks to simply use markdown versions of documents and add them to the thread as is). The implementation also hints at an upcoming feature where you will be able to indicate the purpose of a file / library — ie search or content to solve this problem.</p><h3>Vision is amazing!</h3><p>Vision built into the models is so helpful — <a href="https://medium.com/@jlvalorvc/a-gmail-answering-openai-assistant-built-in-django-44ebe1c6671f">my email processor</a> can now do the most amazings things with uploaded photos. One of the most amazing built in features is that when you provide it with graphs or charts — your output will be mark down tables, automatically. We use these for processing Pitch decks!</p><h3>Streaming</h3><p>Streaming has been available for 6 months or so in the Assistants API, needed for all those chat applications. In our situation most interactions are through email, so this was less of a thing for us. But …</p><h3>.. I can’t wait for streaming voice!</h3><p>This is going to be such a game changer. My users already email a lot that the Assistant then handles — but in terms of requests — talking (back end forth especially) in realtime will be a real game changer I believe.</p><h3>Model updates / Changes are sometimes challenging</h3><p>While most of the model updates have been positive, there are always slight changes. gpt-4o can be much more verbose for example in ‘explaining’ what it is doing vs gpt-4-turbo. Across the more than 30 different Assistants we run, keeping track of those subtle differences is an increasingly important task that screams for automation that I have not figured out yet.</p><h3>Conclusion</h3><p>9 Months of API has brought mostly great improvements and I don’t regret switching early (in December 2023) at all. I’m very excited for the next updates, especially streaming voice. Performance has increased, cost has tumbled and reliability has overall been great.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a715f53310f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>