Pocket Flow is a minimalist LLM framework designed to be lightweight (approx. 100 lines of code) and expressive. It uses Graphs as its core abstraction, allowing you to implement various design patterns such as:
- Agents: Single or multi-agent systems.
- Workflows: Structured sequences of tasks.
- RAG: Retrieval-Augmented Generation processes.
Unlike larger frameworks (e.g., LangChain, CrewAI), Pocket Flow avoids heavy abstractions, application-specific wrappers, and vendor-specific wrappers, resulting in a significantly smaller footprint.