Skip to content

[Discussion] The selection of Agentic/Taskflow frame #183

Closed
@imbajin

Description

@imbajin

Feature Description

Some Context Here:

Our goal at GraphRAG is to focus on providing better I/O capabilities related to LLM/RAG system. We need agentic but will not attempt to create a large and comprehensive (agent/rag) framework, so we tend to choose the highest performance/flexible workflow + agentic framework for integration(Any suggestions and feedback are welcome)

Below is a simplified summary table assisted by LLM. Currently, the focus is on the first 4 (CrewAI / Agno / LLamaIndex / Pydanic-AI), with prioritization to be determined. They generally have their own built-in workflow-like designs and have few dependencies (relatively lightweight).

Table:

Framework Core Features Documentation/Community Popularity Workflow Advantages Disadvantages GitHub ⭐️ Lightweight Notes
CrewAI Well-known multi-agent collaboration framework, supports sequential/hierarchical structures, dynamic workflow design, and dual-mode implementation of workflows High Crew + Flow design (the latter is event-driven) Few dependencies, provides both Crew (role collaboration) + Flows (process control) usage modes, many examples and documentation 1. Requires understanding of Crew/Flow architecture and YAML configuration 2. Some tools may depend on Rust/C++ underlying libraries 3. Performance is unclear 26.7k+ Medium Suitable for complex scenarios such as project management and strategic analysis, can be directly combined/compatible with LangChain/LLamaindex, disable info collection when using
Agno High-performance multimodal framework, supports text/image/audio/video, model-agnostic, extremely low memory footprint. Claims performance is X1000 times that of LangGraph High workflow no graph/no chain design, supports caching/persistence. Simply put, it does not provide syntactic sugar, the process is manually controlled, which is not very user-friendly Extremely fast startup speed, native multimodal support, knowledge base integration Low community maturity, relies on third-party model APIs 19k+ Medium-High Claims memory usage is only 1/50 of LangGraph, suitable for high-concurrency scenarios
Llamaindex High Event-driven workflow Classic and established 39k+ Medium-Low?
Pydanic-AI Produced by the Pydantic team, quality is relatively guaranteed, design should also be relatively good Low Classic Graph implementation New generation Officially stated to be in Beta, not perfect enough, API changes at any time, use with caution in production 6.5k+ Medium-High?
Lagent Domestic lightweight multi-Agent framework, communication based on AgentMessage, defaults to providing synchronous/asynchronous interfaces Low-Medium Chained through the call method Lightweight + good domestic model support Relatively basic functionality, limited multi-agent support, no official documentation link? 2k+ Medium-High Developed by Shanghai AI Laboratory, suitable for rapid experimentation
ControlFlow Agent implementation based on the Prefect scheduling framework, integrated with the LangChain ecosystem Medium Uses Prefect + Graph design Task granularity is controllable, supports hybrid orchestration of traditional workflows and Agents 1.2k+ Low Based on Prefect
Swarm OpenAI company open source, stateless lightweight design + Handoff (handoff mechanism), dynamic context management, automatic function generation, highest friendliness with OpenAI features Medium-High Unknown Based on OpenAI technology, high theoretical performance potential, engineering design and OpenAI integration should be very good Experimental version, less documentation and applications, low community participation, does not come with compatibility for other LLMs by default 18.7k+ Medium-High Mainly to see the design highlights

Heavyweight Agent Frameworks (omitted)

This section is not core, mainly listing common/well-known frameworks, which can also be studied for good ideas.

  • LangChain's LangGraph (9k+ ⭐️), its workflow design is relatively classic and the description is relatively complete (supports both Graph + Task/Function calling methods)
    • Note that in the latest version, LangGraph can be used independently and is no longer strongly coupled with LangChain (other differences can be roughly referenced in LLM QA)
    • So it can also be used as a reference, especially noting its performance (slow + high runtime overhead according to many user feedback)
  • Microsoft's AutoGen (40k+ ⭐️)
  • MetaGPT (46k+ ⭐️)
  • Dify/FastGPT/RAGFlow and other RAG frameworks also have Agent functions
  • AutoGPT (classic frame)
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions