elabortae on the abstraction + design

This commit is contained in:
zachary62 2025-03-07 10:42:57 -05:00
parent b818a0a4a5
commit a857655e89
1 changed files with 14 additions and 16 deletions

View File

@ -8,13 +8,13 @@ nav_order: 1
A [100-line](https://github.com/the-pocket/PocketFlow/blob/main/pocketflow/__init__.py) minimalist LLM framework for *Agents, Task Decomposition, RAG, etc*. A [100-line](https://github.com/the-pocket/PocketFlow/blob/main/pocketflow/__init__.py) minimalist LLM framework for *Agents, Task Decomposition, RAG, etc*.
<div align="center">
<img src="https://github.com/the-pocket/PocketFlow/raw/main/assets/meme.jpg?raw=true" width="400"/>
</div>
- **Expressive**: Everything you love from larger frameworks—([Multi-](./design_pattern/multi_agent.html))[Agents](./design_pattern/agent.html), [Workflow](./design_pattern/workflow.html), [RAG](./design_pattern/rag.html), and more. - **Expressive**: Everything you love from larger frameworks—([Multi-](./design_pattern/multi_agent.html))[Agents](./design_pattern/agent.html), [Workflow](./design_pattern/workflow.html), [RAG](./design_pattern/rag.html), and more.
- **Lightweight**: Just the core graph abstraction in 100 lines. ZERO bloat, dependencies, and vendor lock-in.
- **Lightweight**: Just the core graph abstraction in 100 lines. Zero bloat, zero dependencies, zero vendor lock-in.
- **Principled**: Built with modularity and clear separation of concerns at its heart. - **Principled**: Built with modularity and clear separation of concerns at its heart.
- **AI-Friendly**: Intuitive enough for AI agents to assist humans in building complex LLM applications. - **AI-Friendly**: Intuitive enough for AI agents to assist humans in building complex LLM applications.
@ -33,19 +33,17 @@ We model the LLM workflow as a **Graph + Shared Store**:
From there, its easy to implement popular design patterns: From there, its easy to implement popular design patterns:
- [Structured Output](./design_pattern/structure.md) - [Structured Output](./design_pattern/structure.md) formats outputs consistently.
- [Workflow](./design_pattern/workflow.md) - [Workflow](./design_pattern/workflow.md) chains multiple tasks into pipelines.
- [Map Reduce](./design_pattern/mapreduce.md) - [Map Reduce](./design_pattern/mapreduce.md) splits data tasks into Map and Reduce steps.
- [RAG](./design_pattern/rag.md) - [RAG](./design_pattern/rag.md) integrates data retrieval with generation.
- [Agent](./design_pattern/agent.md) - [Agent](./design_pattern/agent.md) autonomously makes decisions.
- [(Optional) Chat Memory](./design_pattern/memory.md) - [(Optional) Chat Memory](./design_pattern/memory.md) preserves conversation context.
- [(Advanced) Multi-Agents](./design_pattern/multi_agent.md) - [(Advanced) Multi-Agents](./design_pattern/multi_agent.md) coordinate multiple agents.
- Evaluation
## Utility Function ## Utility Function
We do not provide built-in utility functions in codes. We do not provide built-in utility functions in *codes*, but we do provide example implementations in *docs*:
But we provide example implementations in docs:
- [LLM Wrapper](./utility_function/llm.md) - [LLM Wrapper](./utility_function/llm.md)
- [Tool](./utility_function/tool.md) - [Tool](./utility_function/tool.md)
@ -56,4 +54,4 @@ But we provide example implementations in docs:
- [(Optional) Vector Databases](./utility_function/vector.md) - [(Optional) Vector Databases](./utility_function/vector.md)
- [(Optional) Text-to-Speech](./utility_function/text_to_speech.md) - [(Optional) Text-to-Speech](./utility_function/text_to_speech.md)
## [Develop your LLM Apps](./guide.md) ## Read to Develop your LLM Apps? [Read this guide!](./guide.md)