Skip to content

Commit 37a641a

Browse files
committed
binding fix and changelog addition
1 parent 01d7ec0 commit 37a641a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/content/docs/autorag/get-started.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ To create and upload objects to your bucket from the Cloudflare dashboard:
2525
2. Select Create bucket, name the bucket, and select **Create bucket**.
2626
3. Choose to either drag and drop your file into the upload area or **select from computer**.
2727

28+
If you need inspiration for what document to use to make your first AutoRAG, try downloading and uploading the [Cloudflare Changelog](/changelog/rss/index.xml).
29+
2830
## 2. Create an AutoRAG
2931

3032
To create a new AutoRAG:

src/content/docs/autorag/tutorial/brower-rendering-autorag-tutorial.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Once you’re happy with the results in the Playground, you can integrate AutoRA
171171
Then, query your AutoRAG instance from your Worker code by calling the `aiSearch()` method.
172172

173173
```javascript
174-
const answer = await env.AI.AutoRAG("my-rag").aiSearch({
174+
const answer = await env.AI.autorag("my-rag").aiSearch({
175175
query: "What is AutoRAG?",
176176
});
177177
```

src/content/docs/autorag/usage/workers-binding.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ binding = "AI" # i.e. available in your Worker on env.AI
3434
This method searches for relevant results from your data source and generates a response using your default model and the retrieved context, for an AutoRAG named `my-autorag`:
3535

3636
```js
37-
const answer = await env.AI.AutoRAG("my-autorag").aiSearch({
37+
const answer = await env.AI.autorag("my-autorag").aiSearch({
3838
query: "How do I train a llama to deliver coffee?",
3939
model: "@cf/meta/llama-3.3-70b-instruct-sd",
4040
rewrite_query: true,
@@ -61,7 +61,7 @@ This is the response structure without `stream` enabled.
6161
This method searches for results from your corpus and returns the relevant results, for the AutoRAG instance named `my-autorag`:
6262

6363
```js
64-
const answer = await env.AI.AutoRAG("my-autorag").search({
64+
const answer = await env.AI.autorag("my-autorag").search({
6565
query: "How do I train a llama to deliver coffee?",
6666
rewrite_query: true,
6767
max_num_results: 2,

0 commit comments

Comments
 (0)