Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Documentation update

davidmezzetti10ebd99cb424
diff --git a/docs/workflow/overview.md b/docs/workflow/overview.md
index 00e1e153..a2c6e61c 100644
--- a/docs/workflow/overview.md
+++ b/docs/workflow/overview.md
@@ -52,11 +52,8 @@ for _ in workflow(data):
Workflows can be defined using Python as described here but they can also be created as YAML configuration and run as shown below.
```python
-with open("workflow.yml") as config:
- workflow = yaml.safe_load(config)
-
# Create and run the workflow
-app = API(workflow)
+app = API("workflow.yml")
data = list(app.workflow("workflow", ["input text"]))
```