Building reliable agentic AI systems

(martinfowler.com)

82 points | by sarangk90 4 hours ago

11 comments

  • bob1029 2 hours ago
    The most important part is the database that the agent can see and how clean the data is. I pitched a custom enterprise agent to a client thinking it would be maybe 50/50 time on data vs agent tuning, but it's more like 99/1.

    The alignment process goes very quickly once you have all the fish in exactly one barrel. I think pulling data dynamically from the source systems is where this turns into a game of whack-a-mole.

    The problem with dynamic fetch is that you don't get any kind of persistent or compounding gains. There are queries that you simply cannot run because you'd chew through your GitHub, et. al., API quotas. It takes over 48h to fully hydrate the database for GitHub items on my current project. But, once that process is complete I can query across things like issue comments and do crosscutting joins with the state of other vendor systems in milliseconds.

    I am finding the MSSQL dialect to be quite agreeable to the OAI models. With absolutely no prompting they will bootstrap off information schema and extended description properties every single time. If you design the schema for your audience, the amount of "Jesus prompting" you will require is much better controlled.

    • dbuxton 1 hour ago
      The problem with this is that you have a consistency problem if you want to take action. The only way of making your agents read-write rather than read-only in practice is to use the underlying systems rather than try and pool information in a data lake.

      But that does make it more complex to build simple information retrieval use cases.

      • cpinto 4 minutes ago
        I’m trying to solve this problem and would love to get some feedback: https://entidade.wls-labs.com
      • bob1029 1 hour ago
        You definitely need multiple paths. It's not one vs the other. The data warehouse is immutable to the agent. There are separate tools that handle any updates to business state.
    • Tanxsinxlnx 1 hour ago
      [flagged]
  • smallnix 2 hours ago
    What was the main driver for a dynamic workflow with loops vs a rigid forward running only workflow. The non-deterministic nature of these loops with LLM decision points doesn't mesh well with the transparency requirement imho
  • AJRF 28 minutes ago
    Two paragraph section on Evaluation after 30 paragraphs explaining the most bog standard rag system you've ever heard of.

    Hmm...

  • ThePhysicist 46 minutes ago
    I think for mostly search-focused use case like the one presented here AI is great as you don't ask it to build stuff or invent new drugs, you just want to retrieve relevant documents with laser precision, and agents can do that.

    I think right now I'm mostly disappointed with agents writing code as they always degrade the quality of the codebase after a while, and the same goes for writing in general which just requires a ton of editing and mostly just sounds good but doesn't have a lot of substance in the end. I think you can really tell that these systems are trained to just produce plausible streams of text, especially in longer artefacts you notice that locally the inner consistency of what they produce is great but globally it really falls apart, it's like seeing the limits of their "intelligence".

    For search however I really like AI, it has improved information retrieval so much for me where before I had to think about which keywords to use and combine and which filters to apply, describing what I'm looking for in plain text and then having the AI find it for me feels magical. Recently I wanted to find an artist that I heard in some old episode of the KEXP runcast (a running podcast), and I didn't remember anything except that it was rap with a kind of monotone voice a fast beat and a strong accent. Googles' agent asked a few clarifying questions and after a few rounds it found the artist for me, Genesis Uwusu. That's why I think Google will win in the AI assisted search market, they just have the best integration between fast and reasonably "smart" agents and high quality search data. Claude or ChatGPT are too slow and don't have fast enough data retrieval it seems, using them for search feels quite sluggish in comparison.

  • Littice 2 hours ago
    The part about context discipline feels underrated. Larger context windows don’t remove the need to decide what the model shouldn’t see.
  • altmanaltman 2 hours ago
    > The author used AI assistance during the writing of this article. AI tools were used for brainstorming ideas, creating outlines, and reviewing drafts to polish language and improve clarity.

    The first sentence makes it seem like they just used to improve sentence structure etc but the second line makes it seem like they used it for 90% of the work. Which one is true?

    • ares623 2 hours ago
      Your question answered it I think. The first sentence aims to mislead. The second sentence covers their ass.

      I'd love to see the number of man hours that led to that sentence, and how proud they were to have come up with it.

  • padolsey 2 hours ago
    These vast multi-agentic systems with roles like 'Researcher', 'Writer' (with a review loop), 'Reflection agent', seem to ~feel~ mostly right but lack evals as to the merit of agent decomposition. So it forms a satisfying enough flowchart but I see no evidence these authors actually tried other approaches or agent roles. And let's be honest: an agent is just a system prompt and output contracts, and these rich architectures seem to be pontificating beyond their worth. It all feels a bit vibe-y.
    • flir 0 minutes ago
      I've been wondering lately if old-school cybernetics might help there.

      But my off-the-cuff, uninformed opinion is that the precise structure doesn't matter too much, and the impact these structures really have is More Tokens for the Token Furnace.

    • niyikiza 1 hour ago
      What would the benefit be? A mega agent that does everything?

      There are some well documented advantages of decomposition...that's why the industry favours microservices over monoloths.

      • mattmanser 0 minutes ago
        Bad architects favour microservices over monoliths.

        YAGNI almost always applies to microservices, and the coordination overhead and boilerplate they add introduces immense costs, especially for smaller companies.

  • marsven_422 3 hours ago
    You cannot
  • ai_slop_hater 2 hours ago
    Why is comment from padolsey dead? Seriously, something fishy is going on on this website.
  • ai_slop_hater 2 hours ago
    > Sarang Kulkarni is a Principal Consultant at Thoughtworks

    > teaches an O’Reilly course on building production-ready RAG applications

    isn't this basically saying that you are a scammer? or am I paranoid?