# The study behind "Moving DriveIQ's search from Qdrant to Cloudflare Vectorize" # https://ry-ops.dev/posts/2026-11-14-moving-driveiq-search-from-qdrant-to-cloudflare-vectorize/ # # Evidence labeled kind: run was captured live on 2026-11-13 by Claude Code on the # author's Mac, against the author's DriveIQ deployment (read-only commands). # Evidence labeled kind: formatted came from an authenticated browser session # against DriveIQ's own API on 2026-11-14, while both stores were still live; the # comparison script prints counts and ranks only, never document text. Evidence labeled kind: transcript # was copied from the 2026-11-09/10 Claude Code session in which the outage was # found and the move was made; it was not re-run. # Nothing that identifies the vehicle or its owner is in this study: document # names are reduced to counts wherever the author's own uploads would appear. [study] title = "Moving DriveIQ's search from Qdrant to Cloudflare Vectorize" date = "2026-11-14" tester = "Claude Code, on the author's Mac and in the author's browser, against the author's DriveIQ deployment" platform = "macOS on a Mac mini; wrangler 4.158.0; DriveIQ's Cloudflare Worker (driveiq-cloud at commit 1b575dd), its D1 database, its Vectorize index and its Qdrant Cloud collection" setup = "Nothing was installed for the captures. Both stores were live on 2026-11-13: search read from Vectorize, and every write was still mirrored to Qdrant until its retirement." not_tested = "Vectorize's behaviour after long idle periods (it has only been in use since 2026-11-10); re-ingesting documents straight into Vectorize from PDFs (the move reused Qdrant's stored vectors); the Qdrant clean-up itself, which happened after these captures on 2026-11-14." url = "https://ry-ops.dev/posts/2026-11-14-moving-driveiq-search-from-qdrant-to-cloudflare-vectorize/" [redact] "/private/tmp/claude-501/-Users-ryandahlberg-Projects/893e862e-7f47-49c9-a3a9-39e190952a29/scratchpad" = "~/ry-ops/scratch" "~/Projects" = "~/ry-ops/projects" "~" = "~/ry-ops" [[subject]] id = "qdrant" name = "Qdrant Cloud (before)" version = "managed cluster, collection driveiq_manual_v1" site = "https://qdrant.tech/documentation/cloud/" color = "#94a3b8" [[subject]] id = "vectorize" name = "Cloudflare Vectorize (after)" version = "index driveiq-docs, 768 dimensions, cosine" site = "https://developers.cloudflare.com/vectorize/" color = "#f6821f" # ---------------------------------------------------------------- capability map [[capability]] id = "same-results" label = "Gives Aiana the same search results" [capability.cells] qdrant = { status = "tested", note = "The baseline: 18 questions, top 8 results each, the same call Aiana makes.", evidence = ["007", "008"] } vectorize = { status = "tested", note = "Identical top-8 results for 17 of 18 questions, mean score difference 0.0000 over 143 shared results. The 18th differs by one result.", evidence = ["007", "008"], excerpt = "identical top-8 sets: 17" } [[capability]] id = "answer-page" label = "Finds the manual page that answers the question" [capability.cells] qdrant = { status = "tested", note = "Same rank as Vectorize for all 13 labeled questions; the wiper-blade pages weren't in either store's top 8.", evidence = ["008"] } vectorize = { status = "tested", note = "Same rank as Qdrant for all 13 labeled questions.", evidence = ["008"], excerpt = "labeled questions with the same first-answering-page rank: 13/13" } [[capability]] id = "all-chunks" label = "Holds every chunk of every document" [capability.cells] qdrant = { status = "tested", note = "All 1,174 points were read out of Qdrant during the copy (session transcript, not re-run).", evidence = ["006"], excerpt = "{\"copied\":1174,\"pages\":12,\"finished\":true,\"error\":null}" } vectorize = { status = "tested", note = "1,174 vectors at 768 dimensions, matching the 1,174 chunks DriveIQ's documents table lists for 9 documents.", evidence = ["001", "002"], excerpt = "\"chunks\": 1174" } [[capability]] id = "no-extra-account" label = "No separate account, URL or API key" [capability.cells] qdrant = { status = "not-found", note = "The Worker needs QDRANT_URL and QDRANT_API_KEY and sends the key on every request.", looked = "DriveIQ's env.ts and qdrant.ts at 1b575dd", evidence = ["004"] } vectorize = { status = "tested", note = "A binding on the Worker, declared in wrangler.jsonc; the comparison queries reached it with no key.", evidence = ["003", "004", "008"], excerpt = "1b575dd:src/worker/env.ts:19: VECTORIZE: Vectorize;" } [[capability]] id = "stays-reachable" label = "Stays reachable when the app sits idle" [capability.cells] qdrant = { status = "not-found", note = "On 2026-11-09 the cluster had been suspended while idle and every search failed until it was restored (session transcript, not re-run).", looked = "DriveIQ's search during the 2026-11-09 outage", evidence = ["005"] } vectorize = { status = "documented", note = "Runs on Cloudflare's platform with no cluster to suspend. Not tested over a long idle stretch here: it has only been in use since 2026-11-10.", source = "https://developers.cloudflare.com/vectorize/" } [[capability]] id = "mirrored-writes" label = "New uploads reach both stores during the move" [capability.cells] qdrant = { status = "tested", note = "In the test, an upload written to Vectorize is also sent to Qdrant's points endpoint. Tested against stand-ins for both stores, not the live ones.", evidence = ["003", "010"], excerpt = "writes to Vectorize when active, and mirrors to Qdrant when configured" } vectorize = { status = "tested", note = "Search reads from Vectorize and every write and delete goes there first.", evidence = ["003", "010"], excerpt = "1b575dd:wrangler.jsonc:42: \"SEARCH_BACKEND\": \"vectorize\"" } [[capability]] id = "live-answer" label = "Aiana answers from it" [capability.cells] qdrant = { status = "tested", note = "Aiana's answers came from Qdrant until 2026-11-10; the outage on 2026-11-09 is when they stopped.", evidence = ["005"] } vectorize = { status = "tested", note = "A live answer on 2026-11-14: 6.6 qt with the filter, citing Owner's Manual p.465.", evidence = ["009"], excerpt = "The engine takes **6.6 quarts (6.2 L) with the filter**" } # ---------------------------------------------------------------- quotes [[quote]] text = "all within the Workers platform, and without standing up additional infrastructure" url = "https://developers.cloudflare.com/vectorize/" [[quote]] text = "an asynchronous job needs to read the current index files from R2" url = "https://developers.cloudflare.com/vectorize/best-practices/insert-vectors/" # ---------------------------------------------------------------- replay steps # The move, in the order it happened. [[step]] title = "Search stops working" sub = "2026-11-09: every search returns 404 while the Qdrant cluster is unreachable" evidence = ["005"] excerpt = "\"status\": 404," [[step]] title = "Add Vectorize next to Qdrant" sub = "a binding on the Worker, no new account or key" evidence = ["003", "004"] excerpt = "1b575dd:wrangler.jsonc:50: \"index_name\": \"driveiq-docs\"" [[step]] title = "Copy Qdrant's vectors across" sub = "2026-11-10: 1,174 points in 12 pages, reusing the stored vectors" evidence = ["006"] excerpt = "{\"copied\":1174,\"pages\":12,\"finished\":true,\"error\":null}" [[step]] title = "Wait for Vectorize to catch up" sub = "writes become searchable a little later: the count went from 100 to 1,174 in 26 seconds" evidence = ["006"] excerpt = "07:06:52 vectorCount=1174" [[step]] title = "Switch reads, keep writing to both" sub = "SEARCH_BACKEND = vectorize; uploads and deletes still reach Qdrant" evidence = ["003", "010"] excerpt = "Mirror write to ${other} failed:" [[step]] title = "Compare both stores on the same questions" sub = "17 of 18 identical top-8 sets, 13 of 13 answering pages at the same rank" evidence = ["008"] excerpt = "mean |score difference| for shared results: 0.0000 over 143 results" [[step]] title = "Ask Aiana" sub = "6.6 qt with the filter, Owner's Manual p.465" evidence = ["009"] excerpt = "Owner's Manual p.465 lists both figures."