Skip to content

Commit

Permalink
Additional PR edits
Browse files Browse the repository at this point in the history
  • Loading branch information
dehume committed Jan 23, 2025
1 parent 42e0224 commit 2ae6df3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ last_update:
sidebar_position: 40
---

With an output in our desired schema, we can use the NREL API to lookup nearby alternative fuel stations. The NREL API is a standard REST API. In Dagster, we will create a resource with a single method to retrieve fuel stations. This method (`alt_fuel_stations`) will take in the three parameters from our prompt engineering asset (latitude, longitude, and fuel type).
With an output in our desired schema, we can use the [NREL](https://www.nrel.gov/) API to lookup nearby alternative fuel stations. The NREL API is a standard REST API. In Dagster, we will create a resource with a single method to retrieve fuel stations. This method (`alt_fuel_stations`) will take in the three parameters from our prompt engineering asset (latitude, longitude, and fuel type).
<CodeExample path="project_prompt_eng/project_prompt_eng/resources.py" language="python" lineStart="4" lineEnd="27"/>

Now we can use our custom resource in another asset (`nearest_fuel_station`) and query the API. The [reponse of the API](https://developer.nrel.gov/docs/transportation/alt-fuel-stations-v1/nearest/#fuel-station-record-fields) gives some very rich data about these fuel stations. One field that would be particularly interesting for the user is `access_days_time` which shows when the fuel station is open.

Check failure on line 12 in docs/docs-beta/docs/tutorials/category-two/prompt-engineering/custom-resource.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Vale.Avoid] Avoid using 'very'. Raw Output: {"message": "[Vale.Avoid] Avoid using 'very'.", "location": {"path": "docs/docs-beta/docs/tutorials/category-two/prompt-engineering/custom-resource.md", "range": {"start": {"line": 12, "column": 238}}}, "severity": "ERROR"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sidebar_position: 10
In this tutorial, you'll build a pipeline with Dagster that:

- Takes an input question
- Generates prompts to use with Anthropic
- Generates prompts to use with [Anthropic](https://www.anthropic.com/)
- Validates outputs of AI models and passes outputs across assets

<details>
Expand All @@ -27,7 +27,7 @@ To follow the steps in this guide, you'll need:

First, set up a new Dagster project.

1. Within the Dagster repo, navigate to the project:
1. Clone the the [Dagster repo](https://github.com/dagster-io/dagster) and navigate to the project:

Check failure on line 30 in docs/docs-beta/docs/tutorials/category-two/prompt-engineering/index.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Dagster.repeated-words] 'the' is repeated! Raw Output: {"message": "[Dagster.repeated-words] 'the' is repeated!", "location": {"path": "docs/docs-beta/docs/tutorials/category-two/prompt-engineering/index.md", "range": {"start": {"line": 30, "column": 10}}}, "severity": "ERROR"}

Check failure on line 30 in docs/docs-beta/docs/tutorials/category-two/prompt-engineering/index.md

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Vale.Repetition] 'the' is repeated! Raw Output: {"message": "[Vale.Repetition] 'the' is repeated!", "location": {"path": "docs/docs-beta/docs/tutorials/category-two/prompt-engineering/index.md", "range": {"start": {"line": 30, "column": 10}}}, "severity": "ERROR"}

```bash
cd examples/project_prompt_eng
Expand Down

0 comments on commit 2ae6df3

Please sign in to comment.