// AI Platform Drift

AI Search adds D1 databases as data source in beta

Cloudflare developer changelog · published 2026-11-14 18:05 UTC
WORTH KNOWING VERIFY_ONLY API
WHAT CHANGEDCloudflare AI Search now supports D1 databases as a data source. The service runs a read-only query provided by the user and indexes each returned row as a separate document. Scheduled syncs keep the index current as rows change. D1-backed instances can be created via dashboard, REST API, or Workers binding.
WHY IT MATTERSTeams using Cloudflare AI Search can now index structured data directly from D1 databases without building a separate ETL pipeline. The scheduled sync mechanism means search indexes stay current with database changes automatically.
WHAT TO DOIf you use Cloudflare AI Search and have data in D1 databases, evaluate whether direct D1 indexing simplifies your current ingestion workflow. Test the beta with a read-only query against a non-production D1 database to verify sync behavior and query performance.
Model-reported confidence 85% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## AI Search, D1 - AI Search supports D1 databases as a data source (beta)
+https://developers.cloudflare.com/changelog/post/2026-11-12-d1-data-source/
+Thu, 12 Nov 2026 12:00:00 GMT
+
+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": "<SERVICE_TOKEN_ID>",
+"source_params": {
+"d1": {
+"query": "SELECT article_id AS id, title, content, category AS meta_category\nFROM articles\nWHERE published = 1"
+}
+}
+}'
+Learn more in D1 data source.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningNew data source integration expands AI Search capabilities and deployment options for engineering teams.
signalsnew integration capability: D1 databases as AI Search data source · new API endpoint for D1-backed instance creation · new deployment method: dashboard, REST API, Workers binding · beta feature announcement with concrete implementation details
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)