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

corrected worker_nodes to worker_node_urls #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions docs/Examples/BabyAGI.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ The BabyAGI multi-node workflow is made up of the following components, which yo
You can run the BabyAGI flow from the SDK using the following command:

```bash
naptha run babyagi -p "objective='Research the history of football'" --worker_nodes "http://node.naptha.ai:7001,http://node1.naptha.ai:7001"
naptha run babyagi -p "objective='Research the history of football'" --worker_node_urls "http://node.naptha.ai:7001,http://node1.naptha.ai:7001"
```

### Configuration Breakdown:
- `objective`: Your desired research or task objective
- `worker_nodes`: Comma-separated list of worker node URLs
- `worker_node_urls`: Comma-separated list of worker node URLs

This runs the flow across three nodes in total - one orchestrator node (whichever you have set as the ```NODE_URL``` in the .env file of the Naptha SDK),
and two worker nodes (that you have set using the ```--worker_nodes``` flag).
and two worker nodes (that you have set using the ```--worker_node_urls``` flag).

:::tip
Start with simple objectives to understand the workflow, then gradually increase complexity as you become familiar with the system.
Expand Down
6 changes: 3 additions & 3 deletions docs/Examples/MultiplayerChat.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ This multi-agent, multi-node workflow is made of the following components, which
You can run it using the Naptha SDK with the following command:

```bash
naptha run multiagent_chat -p "prompt='I would like to count up to ten, one number at a time. ill start. one.'" --worker_nodes "http://node.naptha.ai:7001,http://node1.naptha.ai:7001"
naptha run multiagent_chat -p "prompt='I would like to count up to ten, one number at a time. ill start. one.'" --worker_node_urls "http://node.naptha.ai:7001,http://node1.naptha.ai:7001"
```

### Configuration Breakdown:
- `prompt`: Your initial message to start the conversation
- `worker_nodes`: Comma-separated list of worker node URLs
- `worker_node_urls`: Comma-separated list of worker node URLs

:::note Node Distribution
This runs the flow across three nodes in total - one orchestrator node (whichever you have set as the ```NODE_URL``` in the .env file of the Naptha SDK),
and two worker nodes (that you have set using the ```--worker_nodes``` flag).
and two worker nodes (that you have set using the ```--worker_node_urls``` flag).
:::

## Example Conversation Starters
Expand Down
2 changes: 1 addition & 1 deletion docs/NapthaModules/2-orchestrators.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Under the hood, `call_orchestrator_func` makes a call to the orchestrator node v
You can deploy an orchestrator via CLI using:

```bash
naptha create orchestrator:multiagent_chat --orchestrator_node "https://node.naptha.ai" --worker_nodes "https://node.naptha.ai:7001,https://node1.naptha.ai:7001" --environment_node "https://node.naptha.ai:7001"
naptha create orchestrator:multiagent_chat --orchestrator_node "https://node.naptha.ai" --worker_node_urls "https://node.naptha.ai:7001,https://node1.naptha.ai:7001" --environment_node "https://node.naptha.ai:7001"
```

You can call an orchestrator module via CLI using:
Expand Down