Build with AI

AI Frameworks

Compare agent orchestration, RAG, serving and training frameworks. Find the right foundation for your project.

LangChain

Python / JS· agent-orchestration
100,000active

The most widely used framework for composing LLM applications, with hundreds of integrations for models, vector stores and tools.

fast prototypingRAGintegrations
  • Huge integration library
  • Massive community
  • Rich docs
  • Abstraction overhead
  • Frequent breaking changes
View repository

AutoGen

Python / .NET· agent-orchestration
38,000active

Microsoft's framework for building multi-agent conversational systems with an event-driven, asynchronous architecture.

conversational agentsresearchcode execution
  • Strong multi-agent chat
  • Microsoft backing
  • Event-driven core
  • API churn between versions
  • Complex setup
View repository

LlamaIndex

Python / JS· rag
38,000active

A data framework for connecting custom data sources to LLMs, specialising in retrieval-augmented generation.

RAGdata connectorsknowledge agents
  • Best-in-class RAG
  • Many data loaders
  • Good indexing primitives
  • RAG-centric
  • Less general agent tooling
View repository

vLLM

Python· serving
35,000active

A high-throughput, memory-efficient inference and serving engine for LLMs, widely used for self-hosting open models.

high-throughput servingself-hostingproduction inference
  • PagedAttention speed
  • OpenAI-compatible API
  • Wide model support
  • GPU ops knowledge needed
  • Infra heavy
View repository

CrewAI

Python· agent-orchestration
30,000active

A framework for orchestrating role-playing autonomous AI agents that collaborate as a crew to complete tasks.

role-based agentsmulti-agent teamsquick start
  • Intuitive role/task model
  • Lightweight
  • Fast to learn
  • Less control than graphs
  • Younger ecosystem
View repository

Semantic Kernel

C# / Python / Java· agent-orchestration
23,000active

Microsoft's enterprise SDK for integrating LLMs into applications with plugins, planners and memory.

enterprise .NETpluginsMicrosoft stack
  • Enterprise-ready
  • Multi-language
  • Azure integration
  • Heavier
  • Microsoft-centric
View repository

DSPy

Python· prompt-optimization
20,000active

A framework from Stanford for programming — not prompting — language models, with automatic prompt and weight optimization.

prompt optimizationresearchcompound systems
  • Programmatic prompting
  • Auto-optimization
  • Strong research roots
  • Different mental model
  • Smaller community
View repository

Haystack

Python· rag
18,000active

An open-source framework by deepset for building production-ready RAG and search pipelines with LLMs.

production RAGsearch pipelinesenterprise
  • Composable pipelines
  • Production focus
  • Good docs
  • RAG-oriented
  • Less agent tooling
View repository

LangGraph

Python / JS· agent-orchestration
12,000active

A low-level orchestration framework for building stateful, multi-actor agent applications with cycles and checkpointing.

stateful agentshuman-in-the-loopproduction workflows
  • Graph-based control flow
  • Built-in persistence
  • Strong ecosystem
  • Steeper learning curve
  • Verbose for simple tasks
View repository

Pydantic AI

Python· agent-orchestration
9,000active

An agent framework from the Pydantic team bringing type-safe, structured outputs and validation to LLM applications.

type-safe agentsstructured outputPython devs
  • Type safety
  • Clean API
  • Great validation
  • Newer
  • Python only
View repository