Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(cli): Misc fixes #1110

Merged
merged 5 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 24 additions & 20 deletions documentation/docs/advanced/types-of-task-steps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -204,39 +204,43 @@ Process collections in parallel:

```yaml YAML
# Simple map-reduce
- map_reduce:
over: _.urls
map:
- tool: fetch_content
arguments:
url: _
reduce: results + [_]
- over: _.urls
map:
tool: fetch_content
arguments:
url: _
reduce: results + [_]

# Map-reduce with parallelism
- map_reduce:
over: _.queries
map:
- tool: web_search
arguments:
query: _
parallelism: 5
- over: _.queries
map:
tool: web_search
arguments:
query: _
parallelism: 5 # Number of parallel steps to execute
```

<Note>
The `parallel` step is used to execute steps concurrently. The `reduce` step is used to combine the results of the parallel steps.
Moreover you can also mention `reduce` and `parallelism` after the `over` step.
</Note>

### Parallel Step

Execute steps concurrently:

```yaml YAML
# Parallel execution
- parallel:
- tool: task1
arguments:
param: "value1"
- tool: task2
arguments:
param: "value2"
tool: task1
arguments:
param: "value1"
```

<Note>
This step only runs the steps in parallel for a given value. Unlike the `map` step, it does not run the steps in parallel for all the values in the collection.
</Note>

## Conditional Steps

### If-Else Step
Expand Down
6 changes: 1 addition & 5 deletions documentation/guides/julepcli/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ The `julep` CLI provides a comprehensive command-line interface for interacting
## Installation

<CodeGroup>
```bash pipx
pipx install julep-cli
```

```bash pip
pip install julep-cli
```
Expand Down Expand Up @@ -107,7 +103,7 @@ To get started with the CLI, follow these steps:

<Step title="Re-Sync Project">
```bash
julep sync --source profiling-recommending --force-local
julep sync --force-local
```
After editing the project, you can re-sync the project with the Julep platform. This will update the `julep-lock.json` file with the latest state of the project on the Julep platform.
</Step>
Expand Down