mtrofficus 3 days ago

I wanted to share a GitHub repository I've started a couple of months ago where I'm implementing, from scratch, the 4 agentic patterns as defined by Andrew Ng: Reflection pattern, Tool pattern, Planning pattern and Multiagent pattern.

  • tcdent 7 hours ago

    You put more work into the README than you did the entire codebase.

    • someoneontenet 7 hours ago

      The readme was the most important part for me!

      • mtrofficus 7 hours ago

        glad you find it useful :)

    • mtrofficus 7 hours ago

      peace man xD I mean, I didn't want to make a new framework, just try to offer some educational value. But sure, the code needs a refactor! :)

joeblubaugh 7 hours ago

Is it me, or are the patterns somewhat tautological?

  • MPSimmons 6 hours ago

    I think the Tool Use is. It would be more accurate and enlightening if it were clear that there were a single agent making the decision on which tool to use, rather than making it look like you're calling one of four tool agents (or if you ARE calling four agents, then the discriminating agent in front of them is being left out).

    • mtrofficus 5 hours ago

      hey! I thought the diagram was clear, but I can see it's not. Thanks for the advise!! I'll try to change it so that it's clear we are using just one agent :)

asaph 6 hours ago

typo in title: “patters” should be “patterns”.

  • mtrofficus 6 hours ago

    ups, you're right. Sorry for that.

throwaway314155 7 hours ago

Why Groq?

edit: I'm dumb. Thought Groq was the Elon thing.

  • mtrofficus 7 hours ago

    They offer a lot of top LLMs for free. That's the reason why. I mean, I'm using llama3.1 fine tuned for tools completely free. That's the reasoning behind haha But you could choose any other. At first I was thinking about Ollama, but Groq came as a great choice.

  • NitpickLawyer 7 hours ago

    Fast (suited for agents) and generous free tier (14k req/day for 70B models) would be my guess.

    • mtrofficus 7 hours ago

      Much better explained than my own comment xD

  • talldayo 7 hours ago

    [flagged]

    • mtrofficus 7 hours ago

      I'm using Groq, not Grok xD

    • throwaway314155 7 hours ago

      CyberTruck*

      • talldayo 7 hours ago

        [flagged]

        • makk 7 hours ago

          Aren’t they a reference to Heinlein? Seems “grok” is on point for what it does.

          • mtrofficus 7 hours ago

            That's from Groq documentation:

            "In fact, our name comes from the word “grok” which means the ability “to understand profoundly and intuitively.”"

        • mtrofficus 7 hours ago

          hahahha wow, that's hard: "pseudointellectual names". I mean, didn't reflect about the naming. Just the fact that it offered a lot of LLMs for free xD