Skip to content

Commit

Permalink
[D1] Updated D1 wrangler toml instructions (#10991)
Browse files Browse the repository at this point in the history
* Updated D1 wrangler toml instructions

* Update content/workers-ai/tutorials/build-a-retrieval-augmented-generation-ai.md

Co-authored-by: Maddy <130055405+Maddy-Cloudflare@users.noreply.github.com>

---------

Co-authored-by: Brendan Irvine-Broque <brendanib@gmail.com>
Co-authored-by: Maddy <130055405+Maddy-Cloudflare@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 29, 2023
1 parent 9d381de commit ea917a5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ Then, add the configuration details for your new D1 database to `wrangler.toml`:
```toml
# ... existing wrangler configuration

[[d1]]
binding = "DATABASE"
[[d1_databases]]
binding = "DB" # available in your Worker on env.DB
database_name = "database"
database_id = "abc-def-geh"
```

In this application, we'll create a `notes` table in D1, which will allow us to store notes and later retrieve them in Vectorize. To create this table, run a SQL command using `wrangler d1 execute`:
Expand Down

0 comments on commit ea917a5

Please sign in to comment.