AI Search (2)·续31

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options%20%3E%20(property)%20use_browser_rendering">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_options">Link to this property</a>

<details>

<summary>

parse_type: optional "sitemap"or "discover"

How the crawler finds URLs. ‘sitemap’ reads XML sitemaps; ‘discover’ follows links recursively and requires the source to belong to a Verified zone on this account.

</summary>

One of the following:

"sitemap"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%200">Link to this property</a>

"discover"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler%20%3E%20(property)%20parse_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params%20%3E%20(property)%20web_crawler">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_params">Link to this property</a>

status: optional string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

sync_interval: optional 900or 1800or 3600or 5 more

Interval between automatic syncs, in seconds. Allowed values: 900 (15min), 1800 (30min), 3600 (1h), 7200 (2h), 14400 (4h), 21600 (6h), 43200 (12h), 86400 (24h). Defaults to 21600 (6h); instances crawling a domain outside the account may be set to 86400.

</summary>

One of the following:

900

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%200">Link to this property</a>

1800

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%201">Link to this property</a>

3600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%202">Link to this property</a>

7200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%203">Link to this property</a>

14400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%204">Link to this property</a>

21600

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%205">Link to this property</a>

43200

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%206">Link to this property</a>

86400

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval%20%3E%20(member)%207">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20sync_interval">Link to this property</a>

token_id: optional string

formatuuid

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

<details>

<summary>

type: optional "r2"or "web-crawler"

Source type. When omitted or null with a non-blank source, HTTP(S) URLs infer web-crawler and existing R2 bucket names infer r2. A missing or blank source without a type uses managed upload-only storage.

</summary>

One of the following:

"r2"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"web-crawler"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_delete_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

Link to this property

<details>

<summary>

InstanceStatsResponse object {completed, degraded, engine, 8 more }

</summary>

completed: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20completed">Link to this property</a>

degraded: optional boolean

True when the API cannot compute status counts (e.g. the legacy stats query exceeded the D1 statement-size limit). The response omits counts in this case.

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20degraded">Link to this property</a>

<details>

<summary>

engine: optional object {r2, vectorize }

Engine-specific metadata. Present only for managed (v3) instances.

</summary>

<details>

<summary>

r2: optional object {metadataSizeBytes, objectCount, payloadSizeBytes }

R2 bucket storage usage in bytes.

</summary>

metadataSizeBytes: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2%20%3E%20(property)%20metadataSizeBytes">Link to this property</a>

objectCount: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2%20%3E%20(property)%20objectCount">Link to this property</a>

payloadSizeBytes: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2%20%3E%20(property)%20payloadSizeBytes">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20r2">Link to this property</a>

<details>

<summary>

vectorize: optional object {dimensions, vectorsCount }

Vectorize index metadata (dimensions, vector count).

</summary>

dimensions: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20vectorize%20%3E%20(property)%20dimensions">Link to this property</a>

vectorsCount: number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20vectorize%20%3E%20(property)%20vectorsCount">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine%20%3E%20(property)%20vectorize">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20engine">Link to this property</a>

error: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20error">Link to this property</a>

file_embed_errors: optional map[unknown]

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20file_embed_errors">Link to this property</a>

index_source_errors: optional map[unknown]

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20index_source_errors">Link to this property</a>

last_activity: optional string

formatdate-time

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20last_activity">Link to this property</a>

outdated: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20outdated">Link to this property</a>

queued: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20queued">Link to this property</a>

running: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20running">Link to this property</a>

skipped: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_stats_response%20%3E%20(schema)%20%3E%20(property)%20skipped">Link to this property</a>

</details>

Link to this property

<details>

<summary>

InstanceSearchResponse object {chunks, query_kind, search_query }

</summary>

<details>

<summary>

chunks: array of object {id, score, text, 6 more }

</summary>

id: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

score: number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

text: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20text">Link to this property</a>

type: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

item: optional object {key, metadata, timestamp }

</summary>

key: string

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20key">Link to this property</a>

metadata: optional map[unknown]

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20metadata">Link to this property</a>

timestamp: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item%20%3E%20(property)%20timestamp">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20item">Link to this property</a>

media_end_ms: optional number

Audio/video transcript chunks only: end, in milliseconds from the start of the media (whole seconds), of the last transcript section the matched chunk covers. Describes the matched chunk before any context expansion, not the expanded <code>text</code>.

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20media_end_ms">Link to this property</a>

media_start_ms: optional number

Audio/video transcript chunks only: start, in milliseconds from the start of the media (whole seconds), of the transcript section the matched chunk begins in. Describes the matched chunk before any context expansion, not the expanded <code>text</code>.

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20media_start_ms">Link to this property</a>

<details>

<summary>

scoring_details: optional object {fusion_method, keyword_rank, keyword_score, 3 more }

</summary>

<details>

<summary>

fusion_method: optional "rrf"or "max"

</summary>

One of the following:

"rrf"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20fusion_method%20%3E%20(member)%200">Link to this property</a>

"max"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20fusion_method%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20fusion_method">Link to this property</a>

keyword_rank: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20keyword_rank">Link to this property</a>

keyword_score: optional number

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20keyword_score">Link to this property</a>

reranking_score: optional number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20reranking_score">Link to this property</a>

vector_rank: optional number

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20vector_rank">Link to this property</a>

vector_score: optional number

maximum1

minimum0

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details%20%3E%20(property)%20vector_score">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20scoring_details">Link to this property</a>

<details>

<summary>

source_media_type: optional "audio"or "video"

Audio/video transcript chunks only: type of the source media file. Omitted for all other chunks.

</summary>

One of the following:

"audio"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20source_media_type%20%3E%20(member)%200">Link to this property</a>

"video"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20source_media_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks%20%3E%20(items)%20%3E%20(property)%20source_media_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20chunks">Link to this property</a>

<details>

<summary>

query_kind: "text"or "image"or "multimodal"

</summary>

One of the following:

"text"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind%20%3E%20(member)%200">Link to this property</a>

"image"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind%20%3E%20(member)%201">Link to this property</a>

"multimodal"

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_search.instances%20%3E%20(model)%20instance_search_response%20%3E%20(schema)%20%3E%20(property)%20query_kind">Link to this property</a>