update images
This commit is contained in:
parent
4c364aa3aa
commit
5a8e6cab88
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Agent"
|
title: "Agent"
|
||||||
parent: "Design"
|
parent: "Design Pattern"
|
||||||
nav_order: 6
|
nav_order: 6
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Workflow"
|
title: "Workflow"
|
||||||
parent: "Design"
|
parent: "Design Pattern"
|
||||||
nav_order: 2
|
nav_order: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ nav_order: 1
|
||||||
|
|
||||||
## System Design Steps
|
## System Design Steps
|
||||||
|
|
||||||
1. **Project Requirements**
|
1. **Project Requirements**: Understand what the project is for and what are required.
|
||||||
- Identify the project's core entities, and provide a step-by-step user story.
|
|
||||||
- Define a list of both functional and non-functional requirements.
|
2. **Utility Functions**: LLM Systems are like the brain
|
||||||
|
|
||||||
|
|
||||||
2. **Utility Functions**
|
|
||||||
- Determine the utility functions on which this project depends (e.g., for LLM calls, web searches, file handling).
|
- Determine the utility functions on which this project depends (e.g., for LLM calls, web searches, file handling).
|
||||||
- Implement these functions and write basic tests to confirm they work correctly.
|
- Implement these functions and write basic tests to confirm they work correctly.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ We model the LLM workflow as a **Nested Directed Graph**:
|
||||||
- [(Advanced) Async](./async.md)
|
- [(Advanced) Async](./async.md)
|
||||||
- [(Advanced) Parallel](./parallel.md)
|
- [(Advanced) Parallel](./parallel.md)
|
||||||
|
|
||||||
## Utility Functions
|
## Utility Function
|
||||||
|
|
||||||
- [LLM Wrapper](./llm.md)
|
- [LLM Wrapper](./llm.md)
|
||||||
- [Tool](./tool.md)
|
- [Tool](./tool.md)
|
||||||
|
|
@ -48,7 +48,7 @@ We model the LLM workflow as a **Nested Directed Graph**:
|
||||||
{: .warning }
|
{: .warning }
|
||||||
|
|
||||||
|
|
||||||
## Design Patterns
|
## Design Pattern
|
||||||
|
|
||||||
- [Structured Output](./structure.md)
|
- [Structured Output](./structure.md)
|
||||||
- [Workflow](./decomp.md)
|
- [Workflow](./decomp.md)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "LLM Wrapper"
|
title: "LLM Wrapper"
|
||||||
parent: "Utility"
|
parent: "Utility Function"
|
||||||
nav_order: 1
|
nav_order: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Map Reduce"
|
title: "Map Reduce"
|
||||||
parent: "Design"
|
parent: "Design Pattern"
|
||||||
nav_order: 3
|
nav_order: 3
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Chat Memory"
|
title: "Chat Memory"
|
||||||
parent: "Design"
|
parent: "Design Pattern"
|
||||||
nav_order: 5
|
nav_order: 5
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "(Advanced) Multi-Agents"
|
title: "(Advanced) Multi-Agents"
|
||||||
parent: "Design"
|
parent: "Design Pattern"
|
||||||
nav_order: 7
|
nav_order: 7
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,11 @@ A **Node** is the smallest building block. Each Node has 3 steps `prep->exec->po
|
||||||
- Examples: *update DB, change states, log results*.
|
- Examples: *update DB, change states, log results*.
|
||||||
- **Decide the next action** by returning a *string* (`action = "default"` if *None*).
|
- **Decide the next action** by returning a *string* (`action = "default"` if *None*).
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://github.com/the-pocket/PocketFlow/raw/main/assets/node.png?raw=true" width="400"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
> **Why 3 steps?** To enforce the principle of *separation of concerns*. The data storage and data processing are operated separately.
|
> **Why 3 steps?** To enforce the principle of *separation of concerns*. The data storage and data processing are operated separately.
|
||||||
>
|
>
|
||||||
> All steps are *optional*. E.g., you can only implement `prep` and `post` if you just need to process data.
|
> All steps are *optional*. E.g., you can only implement `prep` and `post` if you just need to process data.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Design"
|
title: "Design Pattern"
|
||||||
nav_order: 4
|
nav_order: 4
|
||||||
has_children: true
|
has_children: true
|
||||||
---
|
---
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Utility"
|
title: "Utility Function"
|
||||||
nav_order: 3
|
nav_order: 3
|
||||||
has_children: true
|
has_children: true
|
||||||
---
|
---
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "RAG"
|
title: "RAG"
|
||||||
parent: "Design"
|
parent: "Design Pattern"
|
||||||
nav_order: 4
|
nav_order: 4
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Structured Output"
|
title: "Structured Output"
|
||||||
parent: "Design"
|
parent: "Design Pattern"
|
||||||
nav_order: 1
|
nav_order: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Tool"
|
title: "Tool"
|
||||||
parent: "Utility"
|
parent: "Utility Function"
|
||||||
nav_order: 2
|
nav_order: 2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: "Viz and Debug"
|
title: "Viz and Debug"
|
||||||
parent: "Utility"
|
parent: "Utility Function"
|
||||||
nav_order: 3
|
nav_order: 3
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue