item_chunks
Creates, updates, deletes, gets or lists an item_chunks resource.
Overview
| Name | item_chunks |
| Type | Resource |
| Id | cloudflare.aisearch.item_chunks |
Fields
The following fields are returned by SELECT queries:
- list
Returns the AI Search item chunks with text content.
| Name | Datatype | Description |
|---|---|---|
id | string | |
end_byte | number | |
item | object | |
start_byte | number | |
text | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | id, item_id, account_id, name | limit, offset | Lists chunks for a specific item in an AI Search instance, including their text content. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
id | string | Resource ID. |
item_id | string | |
name | string | Resource name. |
limit | integer | |
offset | integer |
SELECT examples
- list
Lists chunks for a specific item in an AI Search instance, including their text content.
SELECT
id,
end_byte,
item,
start_byte,
text
FROM cloudflare.aisearch.item_chunks
WHERE id = '{{ id }}' -- required
AND item_id = '{{ item_id }}' -- required
AND account_id = '{{ account_id }}' -- required
AND name = '{{ name }}' -- required
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
;