Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Update documentation

davidmezzetti01b4ca0fabad
diff --git a/docs/workflows/service.md b/docs/workflows/service.md
index be2a135b..158c0fb6 100644
--- a/docs/workflows/service.md
+++ b/docs/workflows/service.md
@@ -2,4 +2,9 @@
Task that runs content against a http service.
+```python
+workflow = Workflow([ServiceTask(url="https://service.url/action)])
+workflow(["parameter"])
+```
+
::: txtai.workflow.ServiceTask.__init__
diff --git a/docs/workflows/storage.md b/docs/workflows/storage.md
index 2602ada0..9d4ed836 100644
--- a/docs/workflows/storage.md
+++ b/docs/workflows/storage.md
@@ -2,4 +2,9 @@
Task that expands a local directory or cloud storage bucket into a list of URLs to process.
+```python
+workflow = Workflow([StorageTask()])
+workflow(["s3://path/to/bucket", "local://local/directory"])
+```
+
::: txtai.workflow.StorageTask.__init__
diff --git a/docs/workflows/workflow.md b/docs/workflows/workflow.md
index 8bb0d56d..ef61f624 100644
--- a/docs/workflows/workflow.md
+++ b/docs/workflows/workflow.md
@@ -1,3 +1,10 @@
## Workflow Task
Task that runs a Workflow. Allows creating workflows of workflows.
+
+```python
+workflow = Workflow([WorkflowTask(workflow)])
+workflow(["input data"])
+```
+
+::: txtai.workflow.WorkflowTask.__init__