Tool Use - The Agent Is Just a Loop With Better Manners

OpenAI shipped GPT-4o in mid-May. Anthropic took tool use generally available across the Claude 3 family at the end of May. Every internal slide deck I have seen since then has the word agent on it twice.

Most of those decks are still describing a chatbot with extra steps. The useful shape is simpler and less glamorous: a model that emits a structured tool call, your code that runs it, a result that goes back into the conversation, and a hard stop when the loop has gone on long enough.

Function calling is not new. OpenAI put it on the API in June 2023. What mid-2024 feels like is table stakes — the same primitive on every frontier model you would actually put near a bank workflow, with better schema adherence and fewer “I will call the tool in prose” failures.

GPT-4o (Hello GPT-4o, 13 May 2024) is the model people are pointing the loop at right now: faster and cheaper than GPT-4 Turbo for a lot of tool traffic, solid at picking among a small tool list, still perfectly capable of inventing an argument shape you did not define. Claude’s tool use going GA on 30 May 2024 (Anthropic’s announcement) matters for the shops already on Bedrock or Vertex — same idea, different JSON envelope, your application still holds the keys.

Read More

Web & AI: Lessons from Web Apps for the coming AI Era

In the rapidly evolving world of technology, few innovations have been as transformative as the internet and generative AI. From the early days of the web, when accessing information meant waiting for static pages to load, to the present era of conversational AI, the journey has been marked by groundbreaking developments.

The advent of web applications ushered in a new era of how we interact with software and services. Rather than installing programs locally on individual machines, web apps enabled accessing applications through a web browser over the internet. This fundamental shift democratized access to software and catalyzed new ecosystems of apps delivered as services.

In many ways, we are witnessing a similar transformative transition with the rise of AI applications powered by large language models and other generative AI technologies. Just as the internet provided the fundamental infrastructure for web apps, advances in machine learning models like GPT-3 have laid the groundwork for apps that can understand, generate, and reason with human-like intelligence.

Read More

Impostor Syndrome : Am I good enough?

As software developers, we are driven by a passion for creating innovative and impactful solutions. We dedicate ourselves to mastering new technologies, frameworks and methodologies, pouring over lines of code, testing and iterating until we are satisfied with the result. However, despite our best efforts, many of us struggle with a nagging sense of self-doubt. We feel like we are just pretending to be experts, that we are just winging it and that someone will eventually discover our lack of expertise.

Impostor syndrome, also known as impostor phenomenon, is a psychological phenomenon where individuals doubt their abilities and feel like they are just pretending to be competent. Despite their achievements, they feel like they are just lucky or that someone will eventually discover their lack of expertise. This feeling of inadequacy can be paralyzing, causing individuals to doubt their skills, fear failure and even avoid taking risks.

As developers, we are constantly learning and adapting to new technologies, frameworks and methodologies. We are expected to stay up-to-date with the latest trends and tools, which can be overwhelming. The pressure to deliver high-quality code, meet deadlines and collaborate with team members can be daunting. It is no wonder that many developers feel like they are just pretending to be experts.

Read More

Prompt Injection - The Longer the Context, the Bigger the Attack Surface

Claude 3 shipped in early March with a 200K context window and a loud story about stuffing whole codebases and policy binders into one prompt. Two weeks ago Anthropic published research on many-shot jailbreaking — a long-context attack that gets more effective the more fake dialogue you pack in front of the real question.

If you are wiring LLMs into internal tools in a bank-shaped environment right now, that combination should change how you design the app, not just how you word the system prompt.

Anthropic’s many-shot jailbreaking write-up (2 April 2024) is blunt. Stuff a long prompt with dozens or hundreds of faux user/assistant turns where the assistant cheerfully answers harmful requests, then ask your actual target question. Success rates climb with shot count on a power-law curve. It works across model families they tested, not only Claude. Fine-tuning the model to refuse the pattern mostly delayed the break — more shots still got through. The mitigations that actually moved the needle were classifiers and prompt rewrites before the model saw the full attack string.

Read More

RAG - When Retrieval Is the Bug, Not the Model

We spent two sprints blaming GPT-4 for wrong answers in an internal Q&A POC. The model was fine. The chunks were garbage, the top-k was polite noise, and half the “sources” never contained the sentence we needed.

If you are wiring retrieval-augmented generation over real docs in early 2024, the generator is rarely the first place I look anymore. Retrieval quality is.

The happy path is seductive. Chunk PDFs, embed them, stuff top-k into the prompt, watch fluent answers with citations. Stakeholders clap. Then someone asks a question that uses the internal name for a product, or an error code from a runbook, or a clause number from a policy PDF.

Read More

Local LLMs - The Model That Never Leaves My Laptop

OpenAI’s DevDay was three weeks ago. GPT-4 Turbo with a 128k context window, cheaper tokens, custom GPTs, an Assistants API with built-in retrieval. The cloud path just got louder and, for once, cheaper — Turbo input is about $0.01 per 1k tokens and output about $0.03, roughly a third and half of what GPT-4 was charging.

I still spent last weekend trying to get a 7B model to answer questions without leaving my machine. Not because I think my laptop beats a frontier API. Because in a regulated shop, “the prompt never left the building” is sometimes the only sentence that gets a POC past the first security review.

Read More