DriveIQ is the app I keep my truck in: service history, reminders, and the manuals. Its assistant, Aiana, answers questions like “how much oil does it take?” by searching those manuals first and citing the page. That search used to live in a Qdrant Cloud cluster. As of this week it lives in Cloudflare Vectorize, next to everything else DriveIQ already runs on.

This is how the move went, why it happened, and how I know it didn’t change the answers. Claude Code did the work with me, in four steps over five days.

Every claim in this post has receipts. Receipts: DriveIQ’s Move to Vectorize, Behind the Scenes shows what was run, what came from the session where the move happened, and what’s only documented, with the ledger and every piece of evidence published.

The day the manuals disappeared

On November 9 I asked Aiana a simple oil question and got nothing useful back. Every search DriveIQ ran came back 404, which in DriveIQ meant “No documents ingested yet”. The documents were fine. The Qdrant Cloud cluster that held them wasn’t answering: idle clusters get suspended, and a personal app is idle most of the time.

Two things were wrong, and only one of them was Qdrant’s:

  • DriveIQ hid the outage. “Can’t reach the search store” and “nothing has been uploaded” came out as the same 404, so Aiana told me my manuals didn’t cover something they clearly did. That got fixed first: an unreachable store is now a 503 with a plain message, and Aiana says search is down instead of guessing.
  • Search depended on a second account. Everything else in DriveIQ (the Worker, the database, the PDF storage, the embedding model) runs on Cloudflare. Search was the one piece that needed a separate account, a cluster URL, an API key and a scheduled job to keep it awake.

Once the cluster was restored, the question was whether to keep it that way.

Why Vectorize

Vectorize is Cloudflare’s vector database, and for DriveIQ the case was short:

  • It’s a binding, not a connection. The Worker gets env.VECTORIZE, declared in wrangler.jsonc. No URL, no key, no second login. Cloudflare’s own docs describe it as “all within the Workers platform, and without standing up additional infrastructure.”
  • There’s no cluster to go idle. Nothing to keep warm, so the keep-awake job can go too.
  • The embeddings already matched. DriveIQ embeds text with Workers AI’s bge-base-en-v1.5: 768 dimensions, cosine similarity. A Vectorize index with the same shape could take Qdrant’s stored vectors as they were.

That last point mattered most. Re-embedding 9 documents from their PDFs would have meant re-chunking them too, and any difference in the results would have been impossible to pin on the store. Copying the exact vectors meant the only thing changing was where they lived.

The move, in four steps

1. Add Vectorize next to Qdrant. A new index, driveiq-docs, with the same 768 dimensions and cosine metric, and a binding on the Worker. One difference needed design work: Vectorize deletes by id only. Qdrant can delete “every chunk where the document is X”; Vectorize can’t. So every chunk now gets a predictable id, a short hash of the document’s name plus the chunk’s number, and a small documents table in D1 remembers how many chunks each document has. Deleting a document means rebuilding its ids and deleting those.

2. Copy the vectors across. A temporary endpoint read Qdrant’s points 100 at a time and wrote each one into Vectorize with its stored vector and its text. 12 pages later: {"copied":1174,"pages":12,"finished":true,"error":null}.

Vectorize applies writes asynchronously, and its docs explain why: “an asynchronous job needs to read the current index files from R2” before new vectors show up in queries. Watching the index count, it went from 100 to all 1,174 in 26 seconds. For DriveIQ that means a document I upload becomes searchable a little after the upload finishes, not at the same moment.

3. Switch reads, keep writing to both. One variable, SEARCH_BACKEND = "vectorize", moved every search over. Uploads and deletes kept going to Qdrant as well, so if something looked wrong I could switch back without losing anything.

4. Retire Qdrant. On November 14, after one last side-by-side check, the Qdrant code, the copy endpoint, the keep-awake job and the Qdrant settings came out of DriveIQ: about 430 lines, gone. Then the cluster was deleted. Search now goes straight to Vectorize, and the only secret DriveIQ still keeps is the Anthropic key.

Did the answers change?

Step 3 was only safe if the search results were the same, so before switching for good we compared them. The same 18 questions went to both stores through DriveIQ’s own search API, asking for the 8 results Aiana is given:

What was compared Result
Questions with the same top 8 results 17 of 18
Questions with the same top 8 in the same order 16 of 18
Labeled questions where the page that answers it ranks the same 13 of 13
Average score difference for results both stores returned 0.0000 (over 143 results)

Thirteen of the questions were labeled ahead of time with the Owner’s Manual pages that answer them, like page 465 for oil capacity. Both stores put that page at the same rank in all 13. The one question that differed (“how big is the fuel tank?”) had one result that differed, and its answering page was still first in both.

The comparison also found something that isn’t the store’s fault: neither store put a wiper-blade page in its top 8 for “how do I replace the wiper blades?”. That’s about how the manual is chunked and embedded, and moving the vectors as they were means it moved too. It’s on DriveIQ’s roadmap.

And Aiana, through Vectorize, today:

The engine takes 6.6 quarts (6.2 L) with the filter on a drain-and-refill. Without the filter, the capacity is 6.0 quarts. […] Owner’s Manual p.465 lists both figures.

The page both stores ranked for it, now served from Vectorize.

What I’d tell someone doing the same move

  • Copy the vectors, don’t re-embed them, if the model and dimensions match. It’s the only way a side-by-side comparison means anything.
  • Plan for delete-by-id. If your old store deleted by metadata filter, you need predictable ids and somewhere to remember how many there are.
  • Expect writes to land a little later. Fine for a manual you upload once. Worth knowing before you test right after an upload and get no results.
  • Keep writing to both until you’re sure. The extra copy took a few lines of code and made step 3 something I could undo.
  • Make “can’t reach it” different from “it’s empty”. That’s what turned a confusing afternoon into an obvious fix, and it’s worth doing whichever store you use.

What’s next

DriveIQ has always been a personal app. With search on Vectorize, every piece of it now runs on Cloudflare, which makes the next step possible: a public version you can deploy to your own Cloudflare account with one button. That gets its own post.