Skip to content

Commit

Permalink
Align file names in getting_started.md
Browse files Browse the repository at this point in the history
While running throught the tutorial
(https://docs.ray.io/en/latest/serve/getting_started.html#getting-started),
I was confused by the mismatch of the file names mentioned
in the markdown explanations and the file names stated in
the first line of the imported source files.
This tries to fix the mismatch by changing the markdown. Alternatively, the imported source files could be changed.

Signed-off-by: Alexander Junge <alexander.junge@gmail.com>
  • Loading branch information
JungeAlexander authored Jun 25, 2023
1 parent 303df6a commit a203421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/serve/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ To test locally, we run the script with the `serve run` CLI command. This comman
to our deployment formatted as `module:application`. Make sure to run the command from a directory containing a local copy of this script saved as `serve_quickstart.py`, so it can import the application:

```console
$ serve run serve_quickstart:translator_app
$ serve run serve_deployment:translator_app
```

This command will run the `translator_app` application and then block, streaming logs to the console. It can be killed with `Ctrl-C`, which will tear down the application.
Expand Down Expand Up @@ -223,10 +223,10 @@ We define the full application as follows:
deployment_graph = Summarizer.bind(Translator.bind())
```

Here, we bind `Translator` to its (empty) constructor arguments, and then we pass in the bound `Translator` as the constructor argument for the `Summarizer`. We can run this deployment graph using the `serve run` CLI command. Make sure to run this command from a directory containing a local copy of the `serve_quickstart_composed.py` code:
Here, we bind `Translator` to its (empty) constructor arguments, and then we pass in the bound `Translator` as the constructor argument for the `Summarizer`. We can run this deployment graph using the `serve run` CLI command. Make sure to run this command from a directory containing a local copy of the `graph.py` code:

```console
$ serve run serve_quickstart_composed:app
$ serve run graph:app
```

We can use this client script to make requests to the graph:
Expand Down

0 comments on commit a203421

Please sign in to comment.