Skip to content

Commit 44425b0

Browse files
aninibreadmaxvp
andauthored
How to set WAF rules to allowlist AutoRAG crawler (#25332)
* How to set WAF rules to allowlist AutoRAG crawler * update model in example * Apply suggestions from code review --------- Co-authored-by: Max Phillips <[email protected]>
1 parent 4b62c1c commit 44425b0

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

src/content/docs/autorag/configuration/data-source/website.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ When you connect a domain, the crawler looks for your website’s sitemap to det
2626

2727
Pages are visited, according to the `<priority>` attribute set on the sitemaps, if this field is defined.
2828

29+
## How to set WAF rules to allowlist AutoRAG crawler
30+
31+
If you have Security rules configured to block bot activity, you can add a rule to allowlist AutoRAG's crawler bot.
32+
33+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account and domain.
34+
2. Go to **Security** > **Security rules**.
35+
3. To create a new empty rule, select **Create rule** > **Custom rules**.
36+
4. Enter a descriptive name for the rule in **Rule name**, such as `Allow AutoRAG`.
37+
5. Under **When incoming requests match**, use the **Field** drop-down list to choose _Bot Detection ID_. For **Operator**, select _equals_. For **Value**, enter `122933950`.
38+
6. Under **Then take action**, in the **Choose action** dropdown, choose _Skip_.
39+
7. Under **Place at**, select the order of the rule in the **Select order** dropdown to be _First_. Setting the order as _First_ allows this rule to be applied before subsequent rules.
40+
8. To save and deploy your rule, select **Deploy**.
41+
2942
## Parsing options
3043
You can choose how pages are parsed during crawling:
3144

src/content/docs/autorag/usage/rest-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ curl https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/autorag/rags/{AU
4444
-H "Authorization: Bearer {API_TOKEN}" \
4545
-d '{
4646
"query": "How do I train a llama to deliver coffee?",
47-
"model": @cf/meta/llama-3.3-70b-instruct-sd,
47+
"model": @cf/meta/llama-3.3-70b-instruct-fp8-fast,
4848
"rewrite_query": false,
4949
"max_num_results": 10,
5050
"ranking_options": {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This method searches for relevant results from your data source and generates a
3636
```js
3737
const answer = await env.AI.autorag("my-autorag").aiSearch({
3838
query: "How do I train a llama to deliver coffee?",
39-
model: "@cf/meta/llama-3.3-70b-instruct-sd",
39+
model: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
4040
rewrite_query: true,
4141
max_num_results: 2,
4242
ranking_options: {

0 commit comments

Comments
 (0)