# OpenAI text-embedding-ada-002 & Google text-embedding-004 Migration Playbook

> Teams migrating off legacy OpenAI text-embedding-ada-002 (1536d, $0.10/1M, 61.0 MTEB) or deprecated Google text-embedding-004 (768d) face mandatory full-corpus re-indexing because vector spaces are mathematically incompatible across models. Instead of re-indexing into another single-stage cosine API, cut over in one base_url line to Voxell Forge ($0 Turbo 1024d, $0.25/1M Pro, or 0.8849 nDCG@10 full-stack RAG).

Canonical URL: https://voxell.ai/compare/text-embedding-ada-002-to-v3-or-forge-migration/


## Forced Re-Indexing Is an Opportunity to Delete Three Legacy Layers

Whether you are finally retiring **`OpenAI text-embedding-ada-002`** (`1536d`, `$0.10 / 1M` tokens, `61.0` MTEB English mean) or responding to Google Vertex AI's deprecation schedule for **`textembedding-gecko`** and **`text-embedding-004`** (`768d`), one mathematical rule governs the cutover: **every stored vector must be recomputed.**

Even when a newer encoder supports Matryoshka dimension matching (`dimensions=1536` or `dimensions=768`), cosine similarity across two different model families is meaningless. That means doing a lateral migration to `text-embedding-3-large` (`$0.13 / 1M`) or `gemini-embedding-001` (`$0.15 / 1M`) spends engineering sprint cycles re-embedding the same flawed 512-token chunks into the same standalone vector DB with zero structural gain.

## OpenAI text-embedding-ada-002 vs text-embedding-3-large vs Voxell Forge Matrix

| Migration Dimension | Lateral OpenAI (`ada-002` -> `3-large`) | Lateral Google (`004` -> `gemini-embedding-001`) | Full-Value Cutover -> **Voxell Forge** |
| :--- | :--- | :--- | :--- |
| **Re-Embed Required?** | Yes (100% of corpus vectors) | Yes (100% of corpus vectors) | **Yes (once) via `/v1/embeddings` or full PDF/DOCX re-ingest** |
| **Zero-DDL Column Match** | `dimensions=1536` supported | `output_dimensionality=768` supported | **`Pro` Matryoshka `768d` / `1536d` / `2560d`**, or **`Turbo` `1024d`** |
| **Ongoing Token Price** | `$0.13 / 1M` (`+30%` over `ada-002`) | `$0.15 / 1M` (`+500%` over legacy `$0.025` rates) | **`Turbo`: $0 forever**; **`Pro`: $0.25 / 1M** |
| **Retrieval Quality Jump** | `61.0` -> `64.6` MTEB (still single-stage) | Single-stage bi-encoder only | **`99.04% Recall@20` (`C_corpus`) + `0.8849 nDCG@10` (`Max`)** |
| **Orphaned PDF Table Fix** | None (re-embeds old broken chunks) | None unless you add Document AI OCR | **Native `.pdf/.docx/.pptx` header stripping & column binding** |
| **Contradiction Hygiene** | None | None | **Run `POST /vqs` & `GET /conflicts` during migration audit** |
| **Deprecation Protection** | SaaS-only; subject to future OpenAI sunsets | SaaS-only; recurring 12-18 mo Vertex sunsets | **Pinned Cloud versions + self-hosted Forge Local VPC option** |

## Zero-Downtime Migration Playbook From ada-002 & text-embedding-004 to Voxell Forge

### Step 1: Audit Your Existing Corpus for Contradictions Before Re-Embedding (10 Seconds)

Before spending tokens re-embedding stale 2023 runbooks alongside 2026 specs, run a keyless X-Ray check:

```bash
curl -sS -X POST https://api.voxell.ai/api/v1/agent/xray \
  -H "Content-Type: application/json" \
  -d '{
    "documents": [
      {"name": "auth-runbook-2023.md", "text": "Service tokens rotate every 90 days via legacy vault-sync."},
      {"name": "auth-policy-2026.md", "text": "All service tokens must use workload identity federation with 1-hour TTL; vault-sync is decommissioned."}
    ]
  }'

# Register Zero-Install Remote HTTP MCP for coding-agent migration verification
claude mcp add --transport http voxell-forge https://api.voxell.ai/mcp/try
```

### Step 2: Shadow-Write `1536d` or `768d` Vectors with a 1-Line `base_url` Swap (Zero SQL DDL)

If you need an immediate drop-in replacement for `ada-002` (`1536d`) or `text-embedding-004` (`768d`) while keeping an existing `pgvector` or Pinecone table online during blue/green cutover:

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.voxell.ai/v1",
    api_key=FORGE_API_KEY,
)

# Match legacy ada-002 (1536d) or text-embedding-004 (768d) column widths with zero ALTER TABLE:
resp = client.embeddings.create(
    model="pro",
    dimensions=1536,  # or 768 for Vertex text-embedding-004 tables; omit for native 2560d
    input=["Section 4.2: Indemnification cap equals 12 months of preceding SaaS fees."],
)
```

Or switch any new `vector(1024)` shadow index to `model="turbo"` at **$0 forever**.

### Step 3: Retire the Chunker, Vector DB & Reranker Glue

Upload the original source PDFs, DOCX contracts, and Markdown repos directly to a Voxell Forge corpus (**Builder $39/mo** annual, **Team $199/mo** annual, or **Forge Local $9,995/yr** Dev VPC) to turn on `C_corpus` dialect conditioning, `0.8849 nDCG@10` Max reranking, cited answers, and `https://api.voxell.ai/mcp`.

## OpenAI ada-002 & Google text-embedding-004 Migration References

1. **OpenAI v3 Comparison:** [Migrate from OpenAI `text-embedding-3-large`](/compare/migrate-from-openai-text-embedding-3-large/) and [Voyage-3 vs OpenAI vs Forge](/compare/voyage-3-vs-openai-text-embedding-3-large/).
2. **Google Cloud Path:** [Cohere Embed v3/v4 vs `gemini-embedding-001`](/compare/cohere-embed-v3-vs-gemini-embedding-001/) and [Claude on Vertex & Google ADK Guide](/forge/guides/claude-on-vertex-google-adk-mcp/).
3. **API Contract & Pricing:** [Answers & MCP API Reference](/docs/answers-api-reference/) and [Voxell Forge Pricing](/pricing/).

## Frequently Asked Questions

### Can I query existing ada-002 or text-embedding-004 vectors with text-embedding-3-large or gemini-embedding-001?

No. Even if you truncate text-embedding-3-large to 1536 dimensions or gemini-embedding-001 to 768 dimensions so your SQL/HNSW column width matches, the learned coordinate spaces are completely orthogonal. Mixing old document vectors with new query vectors collapses recall toward random noise; every migration requires re-embedding the document corpus.

### How do I migrate from ada-002 (1536d) or text-embedding-004 (768d) without altering PostgreSQL or Pinecone schemas?

During Phase 1 shadow re-indexing, point your OpenAI SDK base_url at https://api.voxell.ai/v1 and pass model='pro' with dimensions=1536 (for ada-002 columns) or dimensions=768 (for text-embedding-004 columns), or switch 1024d indexes to model='turbo' at $0 forever. Once verified, Phase 2 retires the legacy chunker and vector DB completely via /v1/answers/{corpus}/query.

### Why upgrade to Voxell Forge during a forced re-index instead of moving laterally to OpenAI v3 or gemini-embedding-001?

Re-indexing is the one moment your engineering team already has to touch every document. Moving laterally to OpenAI v3 or gemini-embedding-001 leaves broken PDF table chunks, unguarded policy contradictions, and $2.00/1k reranker bills intact. Re-ingesting into Voxell Forge upgrades accuracy from ~0.61 MTEB legacy cosine to 0.8849 nDCG@10 and 75.93% Strict@1 while adding Coherence conflict holds and HTTP /mcp.

---

## Zero-Install Model Context Protocol (MCP) & Keyless Agent Verification

```bash
claude mcp add --transport http voxell-forge https://api.voxell.ai/mcp/try
```

- Keyless Retrieval Bake-Off: `POST https://api.voxell.ai/api/v1/agent/bakeoff`
- Keyless Contradiction X-Ray: `POST https://api.voxell.ai/api/v1/agent/xray`
- Machine-Readable Pricing JSON: `https://voxell.ai/api/v1/agent/pricing.json`
- Full LLM Authority Map: `https://voxell.ai/llms-full.txt`
