add new examples
English | 中文 | Español | 日本語 | Deutsch | Русский | Português | Français | 한국어
Pocket Flow is a 100-line minimalist LLM framework
Lightweight: Just 100 lines. Zero bloat, zero dependencies, zero vendor lock-in.
Expressive: Everything you love—(Multi-)Agents, Workflow, RAG, and more.
Agentic Coding: Let AI Agents (e.g., Cursor AI) build Agents—10x productivity boost!
Get started with Pocket Flow:
pip install pocketflow
Current LLM frameworks are bloated… You only need 100 lines for LLM Framework!
The 100 lines capture the core abstraction of LLM frameworks: Graph!
From there, it’s easy to implement popular design patterns like (Multi-)Agents, Workflow, RAG, etc.
👀 Want to see other tutorials for dummies? Create an issue!
🚀 Through Agentic Coding—the fastest LLM App development paradigm-where humans design and agents code!
✨ Below are examples of more complex LLM Apps:
Want to learn Agentic Coding?
Check out my YouTube for video tutorial on how some apps above are made!
Want to build your own LLM App? Read this post! Start with this template!
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
English | 中文 | Español | 日本語 | Deutsch | Русский | Português | Français | 한국어
Pocket Flow is a 100-line minimalist LLM framework
Lightweight: Just 100 lines. Zero bloat, zero dependencies, zero vendor lock-in.
Expressive: Everything you love—(Multi-)Agents, Workflow, RAG, and more.
Agentic Coding: Let AI Agents (e.g., Cursor AI) build Agents—10x productivity boost!
Get started with Pocket Flow:
pip install pocketflowor just copy the source code (only 100 lines).Why Pocket Flow?
Current LLM frameworks are bloated… You only need 100 lines for LLM Framework!
(e.g., QA, Summarization)
(e.g., OpenAI, Pinecone, etc.)
(e.g., FileReadTool, SerperDevTool)
(e.g., OpenAI, Anthropic, Pinecone, etc.)
(e.g., CodeAgent, VisitWebTool)
(e.g., DuckDuckGo, Hugging Face, etc.)
(e.g., Semantic Search)
(e.g., PostgresStore, SqliteSaver, etc.)
(e.g., Tool Agent, Chat Agent)
(e.g., OpenAI, Pinecone, etc.)
(core-only)
(core-only)
How does Pocket Flow work?
The 100 lines capture the core abstraction of LLM frameworks: Graph!
From there, it’s easy to implement popular design patterns like (Multi-)Agents, Workflow, RAG, etc.
✨ Below are basic tutorials:
👀 Want to see other tutorials for dummies? Create an issue!
How to Use Pocket Flow?
🚀 Through Agentic Coding—the fastest LLM App development paradigm-where humans design and agents code!
✨ Below are examples of more complex LLM Apps:
Turn your website into a 24/7 customer support genius
Medium
RAG
Forget the Turing test. Danganronpa, the ultimate AI experiment!
Advanced
Agent
Life’s too short to stare at others’ code in confusion
Medium
We’ll reach the singularity soon …
Advanced
Ask AI Paul Graham, in case you don’t get in
Medium
Map Reduce
TTS
Explain YouTube Videos to you like you’re 5
Beginner
Instant icebreakers that turn cold leads hot
Beginner
Web Search
Want to learn Agentic Coding?
Check out my YouTube for video tutorial on how some apps above are made!
Want to build your own LLM App? Read this post! Start with this template!