AI Search supports D1 databases as a data source (beta)
changelog / Storage / AI Search, D1 / 2026/11/12 21:00 JST
AI SearchのデータソースにD1データベースが対応 (ベータ)。読み取り専用クエリの結果行をドキュメントとしてインデックス化し、定期同期で最新に保つ。ダッシュボード・REST API・Workersバインディングから作成可能。
AI Search can now use a D1 database as a data source. AI Search runs a read-only query that you provide and indexes each returned row as a separate document. Scheduled syncs keep the index current as rows are added, changed, or removed. Create D1-backed instances from the dashboard, the REST API, or the Workers binding. curl -X POST “https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/ai-search/namespaces/default/instances” \ -H “Authorization: Bearer <API_TOKEN>” \ -H “Content-Type: application/json” \ —data ’{ “id”: “help-center”, “type”: “d1”, “source”: “<D1_DATABASE_ID>”, “token_id
出典: 公式ページ