parent page

This commit is contained in:
zachary62 2024-12-28 19:02:48 +00:00
parent 10f7464db3
commit 21dd0ac81b
6 changed files with 20 additions and 6 deletions

View File

@ -1,7 +1,7 @@
--- ---
layout: default layout: default
title: "Async" title: "Async"
parent: Core Abstraction parent: "Core Abstraction"
nav_order: 5 nav_order: 5
--- ---

View File

@ -1,7 +1,7 @@
--- ---
layout: default layout: default
title: "Batch" title: "Batch"
parent: Core Abstraction parent: "Core Abstraction"
nav_order: 4 nav_order: 4
--- ---

View File

@ -1,7 +1,7 @@
--- ---
layout: default layout: default
title: "Communication" title: "Communication"
parent: Core Abstraction parent: "Core Abstraction"
nav_order: 3 nav_order: 3
--- ---

14
docs/core_abstraction.md Normal file
View File

@ -0,0 +1,14 @@
---
layout: default
title: "Core Abstraction"
nav_order: 3
has_children: true
---
## Core Abstraction
- [Node](./node.md)
- [Flow](./flow.md)
- [Communication](./communication.md)
- [Batch](./batch.md)
- [Async](./async.md)

View File

@ -1,7 +1,7 @@
--- ---
layout: default layout: default
title: "Flow" title: "Flow"
parent: Core Abstraction parent: "Core Abstraction"
nav_order: 2 nav_order: 2
--- ---

View File

@ -1,7 +1,7 @@
--- ---
layout: default layout: default
title: "Node" title: "Node"
parent: Core Abstraction parent: "Core Abstraction"
nav_order: 1 nav_order: 1
--- ---
@ -10,7 +10,7 @@ nav_order: 1
A **Node** is the smallest building block of Mini LLM Flow. Each Node has three lifecycle methods: A **Node** is the smallest building block of Mini LLM Flow. Each Node has three lifecycle methods:
1. **`prep(shared)`** 1. **`prep(shared)`**
- Optionally preprocess data before calling your LLM or doing heavy computation. - Optionally preprocess data before calling your LLM or doing heavy computation.
- Often used for tasks like reading files, chunking text, or validation. - Often used for tasks like reading files, chunking text, or validation.
- Returns `prep_res`, which will be passed to both `exec()` and `post()`. - Returns `prep_res`, which will be passed to both `exec()` and `post()`.