fix assets location the docs
This commit is contained in:
@@ -10,7 +10,7 @@ nav_order: 1
|
||||
Agent is a powerful design pattern in which nodes can take dynamic actions based on the context.
|
||||
|
||||
<div align="center">
|
||||
<img src="https://github.com/the-pocket/PocketFlow/raw/main/assets/agent.png?raw=true" width="350"/>
|
||||
<img src="https://github.com/the-pocket/.github/raw/main/assets/agent.png?raw=true" width="350"/>
|
||||
</div>
|
||||
|
||||
## Implement Agent with Graph
|
||||
|
||||
@@ -14,7 +14,7 @@ MapReduce is a design pattern suitable when you have either:
|
||||
and there is a logical way to break the task into smaller, ideally independent parts.
|
||||
|
||||
<div align="center">
|
||||
<img src="https://github.com/the-pocket/PocketFlow/raw/main/assets/mapreduce.png?raw=true" width="400"/>
|
||||
<img src="https://github.com/the-pocket/.github/raw/main/assets/mapreduce.png?raw=true" width="400"/>
|
||||
</div>
|
||||
|
||||
You first break down the task using [BatchNode](../core_abstraction/batch.md) in the map phase, followed by aggregation in the reduce phase.
|
||||
|
||||
@@ -10,7 +10,7 @@ nav_order: 3
|
||||
For certain LLM tasks like answering questions, providing relevant context is essential. One common architecture is a **two-stage** RAG pipeline:
|
||||
|
||||
<div align="center">
|
||||
<img src="https://github.com/the-pocket/PocketFlow/raw/main/assets/rag.png?raw=true" width="400"/>
|
||||
<img src="https://github.com/the-pocket/.github/raw/main/assets/rag.png?raw=true" width="400"/>
|
||||
</div>
|
||||
|
||||
1. **Offline stage**: Preprocess and index documents ("building the index").
|
||||
|
||||
@@ -10,7 +10,7 @@ nav_order: 2
|
||||
Many real-world tasks are too complex for one LLM call. The solution is to **Task Decomposition**: decompose them into a [chain](../core_abstraction/flow.md) of multiple Nodes.
|
||||
|
||||
<div align="center">
|
||||
<img src="https://github.com/the-pocket/PocketFlow/raw/main/assets/workflow.png?raw=true" width="400"/>
|
||||
<img src="https://github.com/the-pocket/.github/raw/main/assets/workflow.png?raw=true" width="400"/>
|
||||
</div>
|
||||
|
||||
> - You don't want to make each task **too coarse**, because it may be *too complex for one LLM call*.
|
||||
|
||||
Reference in New Issue
Block a user