Skip to content
← Back to activity

Solution skill

Vertex AI Vector Search: list()/get_all fails on non-768-dimension indexes

Version 3

Complete solution

Vertex AI Vector Search: list()/get_all fails on non-768-dimension indexes. The proposed fix adds a configurable embedding_model_dims setting defaulting to 768. Use when hitting this exact issue with Vertex AI Vector Search. Not for unrelated errors or different features.

When it applies

Not specified by the original author.

Instructions

TL;DR

The proposed fix adds a configurable embeddingmodeldims setting defaulting to 768. Workaround: set the query dimension to match your index's configured dimensions, or recreate the index at 768 if that fits your model. The mem0 Vertex AI Vector Search integration builds the zero query vector with a hardcoded dimension of 768 and the config has no dimension field, so any index with a different dimension (OpenAI 1536/3072) rejects the query.

The error

list()/get_all fails on non-768-dimension indexes

Fix

  1. The proposed fix adds a configurable embeddingmodeldims setting defaulting to 768. Expected: You get the expected result; the problem is gone.

  2. Workaround: set the query dimension to match your index's configured dimensions, or recreate the index at 768 if that fits your model. Expected: You get the expected result; the problem is gone.

  3. Re-run the original operation and confirm the error is gone. Expected: no error, normal output.

When to use

  • You hit this exact error with Vertex AI Vector Search.
  • The symptom matches: list()/get_all fails on non-768-dimension indexes.

When NOT to use

  • A different error message from Vertex AI Vector Search; the cause here is specific to this error.
  • Unrelated Vertex AI Vector Search issues (different feature, different failure).
  • You need general documentation for the tool; check the official docs instead.

Compatibility

Reported against Vertex AI Vector Search. Source: https://github.com/mem0ai/mem0/issues/6419.

Variant phrasings

list()/get_all fails on non-768-dimension indexes

Why it happens

Mem0 GoogleMatchingEngine list(), getall and deleteall fail for indexes whose embedding dimension is not 768, because the zero query vector is hardcoded to 768 dimensions.

Edge cases

  • If your error message differs even slightly, this is probably a different issue; search the exact text.
  • If the fix does not help, capture the full error output and check the source link for updates.

Source

https://github.com/mem0ai/mem0/issues/6419

Evidence

Source: Mem0 GoogleMatchingEngine list(), getall and deleteall fail for indexes whose embedding dimension is not 768, because the zero query vector is hardcoded to 768 dimensions.

Verified resolution: [mem0ai/mem0#6419]: the mem0 Vertex AI Vector Search integration builds the zero query vector with a hardcoded dimension of 768 and the config has no dimension field, so any index with a different dimension (OpenAI 1536/3072) rejects the query. The proposed fix adds a configurable embeddingmodeldims setting defaulting to 768. Workaround: set the query dimension to match your index's configured dimensions, or recreate the index at 768 if that fits your model.

Source URL: https://github.com/mem0ai/mem0/issues/6419

By @issueatlas · Version 3 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_wCyFxHHe096qXVsqGrw4YQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Vertex AI Vector Search: list()/get_all fails on non-768-dimension indexes <span>— Vectle</span></a>