HNHacker News
TopNewBestAskShowJobs

bediashpreet

45 karma · joined January 28, 2024

Building AI Agents: https://github.com/agno-agi/agno
submissionscomments
bediashpreet··on [dead]
After reading hundreds of papers on agentic memory and trying out every possible tool, I came to the simple conclusion that maybe we're looking at memory wrong.

Memory is just... learning. Learning about the user, the task at hand, learning insights and patterns, learning from decisions - good and bad, the feedback received. Learning from every interaction. Everything else is integration (how the agent uses these learnings) and curation (decay, pruning, deduplication).

So I built Learning Machines: A system that helps agents continuously learn from every interaction.

I started working on it dec 31, and got a basic working version yesterday. Here's the PR for those interested: [learning-machine-v0](https://github.com/agno-agi/agno/pull/5897)

This post digs into the technical details.

bediashpreet··on WTF Are Agents?
WTF are Agents?

> Are they workflows or are they graphs? > Are they LLMs in a loop or expensive while loops? > Are they deterministic, autonomous, or confused?

Let's cut through the noise and understand how they work.

bediashpreet··on Show HN: Agno – A full-stack framework for building Multi-Agent Systems
In general we instantiate one or even multiple agents per request (to limit data and resource access). At moderate scale, like 10,000 requests per minute, even small delays can impact user experience and resource usage.

Another example: there a large, fortune 10 company that has built an agentic system to sift through data in spreadsheets, they create 1 agent per row to validate everything in that row. You might be able to see how that would scale to thousands of agents per minute.

bediashpreet··on Show HN: Agno – A full-stack framework for building Multi-Agent Systems
You’re right, inference is typically the bottleneck and it’s reasonable to think the framework’s performance might not be critical. But here’s why we care deeply about it:

- High Performance = Less Bloat: As a software engineer, I value lean, minimal-dependency libraries. A performant framework means the authors have kept the underlying codebase lean and simple. For example: with Agno, the Agent is the base class and is 1 file, whereas with LangChain you'll get 5-7 layers of inheritance. Another example: when you install crewai, it installs the kubernetes library (along with half of pypi). Agno comes with a very small (i think <10 required dependencies).

- While inference is one part of the equation, parallel tool executions, async knowledge search and async memory updates improve the entire system's performance. Because we're focused on performance, you're guaranteed top of the line experience without thinking about it, its a core part of our philosophy.

- Milliseconds Matter: When deploying agents in production, you’re often instantiating one or even multiple agents per request (to limit data and resource access). At moderate scale, like 10,000 requests per minute, even small delays can impact user experience and resource usage.

- Scalability and Cost Efficiency: High-performance frameworks help reduce infrastructure costs, enabling smoother scaling as your user base grows.

I'm not sure why you would NOT want a performant library, sure inference is a part of it (which isn't in our control) but I'd definitely want to use libraries from engineers that value performance.

bediashpreet··on Show HN: Agno – A full-stack framework for building Multi-Agent Systems
Thank you for the feedback and the kind words.

Agree that the cookbooks have gotten messy. Not an excuse but sharing the root case behind it: we're building very, very fast and putting examples out for users quickly. We maintain backwards compatibility so sometimes you see 2 examples doing the same thing.

I'll make it a point to clean up the cookbooks and share more examples under this comment. Here are 2 to get started:

- Content creator team: https://github.com/agno-agi/agno/blob/main/cookbook/examples...

- Blog post generator workflow: https://github.com/agno-agi/agno/blob/main/cookbook/workflow...

Both are easily extensible. Always available for feedback at ashpreet[at]agno[dot]com

bediashpreet··on Show HN: Agno – A full-stack framework for building Multi-Agent Systems
Thank you for using Agno and the kind words!
bediashpreet··on Show HN: Agno – A full-stack framework for building Multi-Agent Systems
<3
bediashpreet··on Show HN: Agno – A full-stack framework for building Multi-Agent Systems
Thank you for the kind words <3
bediashpreet··on Show HN: Agno – A full-stack framework for building Multi-Agent Systems
Thank you for the kind words <3
bediashpreet··on Agno: Model-agnostic library for building Agents
Author here, happy to answer questions on design goals, performance trade-offs, or use cases.
bediashpreet··on My journey building a popular Agent Library
Hi HN,

I’m Ashpreet, creator of Agno, one of the most widely used libraries for building Agentic Systems. Today, we announced General Availability, and I wanted to share some insights and lessons from my 2-year journey building Agentic Systems.

I’d love your feedback and I’m happy to answer any questions!

Thank you for reading, Ashpreet

bediashpreet··on Agno: Agent framework 10,000x faster than LangChain
7B is the sweet spot
bediashpreet··on Agno: Agent framework 10,000x faster than LangChain
Wrong, actual code and tests provided than show 10000x speed up. Users can run it themselves and have been seeing better results.

Appreciate if you didn’t make up stuff.

bediashpreet··on [dead]
code used in the video: https://github.com/phidatahq/phidata/tree/main/cookbook/mist...
bediashpreet··on Phidata: Build AI Assistants using function calling
Thanks, yes we're seeing a lot of use cases being unlocked by function calling.

To answer you first question, function calling models are trained to detect when a function should to be called (depending on the input) and to respond with JSON that adheres to the function signature.

A thoughtful prompt and a loop where they parse outputs and check if it corresponds to the arguments of the function is the ReAct model of building agents, which I've found starts to deteriorate in quality after about 5 tools.

Whereas with function calling, because the LLM is trained to detect/call functions it can work very well up-to 30-40 functions -- after which we need to start using techniques like delegation.

bediashpreet··on Ask HN: What are some actual use cases of AI Agents right now?
Almost all the AI Apps we build for our clients now use Autonomous Assistants.

They're simply better than naive RAG, especially when you need to access APIs, format content or compare different sections of the knowledge base.

Here are a few demos we have in the open:

> HackerNews AI: Interacts with the hackernews API - https://hn.aidev.run

> ArXiv AI: Reads, summarizes and compares arxiv papers - https://arxiv.aidev.run

(love that it can give you a comparison between 2 papers)

These use cases can only be possible using agents (or whatever that means)

bediashpreet··on Chat with PDFs using function calling
Hi HN, chat with PDFs is the first AI App everyone builds but quickly we realize that basic prompt stuffing doesn’t work. So I put together a PDF AI that uses function calling: https://pdf.aidev.run

It intelligently figures out if:

> The question needs retrieval or web search

> If it needs retrieval, does it need to search the latest doc, a specific doc or all docs

> Produces an answer with context.

Give it a spin at: https://pdf.aidev.run and let me know what you think. Its a prototype so expect flaws, but if you share feedback i'll make sure to improve it.

If you’re interested: - Here’s the code: https://github.com/phidatahq/ai-cookbook/tree/main/pdf_ai - I used phidata to build this: https://github.com/phidatahq/phidata

bediashpreet··on Show HN: Hacker News AI built using function calling
Implemented another item from feedback, ability to summarize a user profile.

Add your username to the `Ask about a user` input and the AI should summarize your hackernews profile

bediashpreet··on Show HN: Hacker News AI built using function calling
Also added ability to search the web as people wanted to ask questions that had basic context on the web and then use that context to search HN
bediashpreet··on Show HN: Hacker News AI built using function calling
I received feedback that the AI should be able to tell the user about their account/top posts, so I've added that functionality

If you ask, "tell me about the user pg" or click on the "what are my top posts" button it will fetch user details from the hackernews API