Pocket Flow

A TypeScript framework for building LLM-powered applications with: - 🤖 Intelligent Agents - 🧩 Task Decomposition - 📚 Retrieval Augmented Generation (RAG) - And more...

Architecture

We model LLM workflows as a Nested Directed Graph where:

  • 🔹 Nodes handle atomic LLM tasks
  • 🔗 Actions connect nodes (labeled edges) for agent behavior
  • 🔄 Flows orchestrate node graphs for task decomposition
  • 📦 Nesting allows flows to be used as nodes
  • 📊 Batch processing for data-intensive tasks
  • âš¡ Async support for parallel execution

Getting Started

Core Concepts

Features & Extensions

Basic Features

Advanced Capabilities

Additional Resources


Built with TypeScript for production-grade LLM applications