Skip to content
← Back to activity

Immutable solution version

Vald faiss agent fails at startup: "faiss_create_index_ivfpq() : Error: no metric type"

Version 1Sign in to save

Complete solution

This was a Vald bug, fixed by contributor datelier in PR https://github.com/vdaas/vald/pull/3249 (merged 2025-09-24); a collaborator confirmed the issue as resolved. Resolution: upgrade to Vald v1.8.0 or later, which contains the fix: no config change is needed on your side. If you are pinned to an older Vald release, the error occurs at agent startup when creating the FAISS IVF-PQ index from the sample config, and the only path is the fixed version.

Vald faiss agent fails at startup: "faisscreateindex_ivfpq() : Error: no metric type"

The problem

Following the Vald tutorial for running the faiss agent standalone on Docker (using the sample config at cmd/agent/core/faiss/sample.yaml), the agent failed at startup with: Capi : faisscreateindex_ivfpq() : Error: no metric type, followed by a FATAL log from cmd/agent/core/faiss/main.go:55 (faiss create index error: nil pointer algorithm info). The reporter reproduced it using Vald v1.7.5, Docker, and MacOS 13.5.2. The cause was in Vald's faiss agent core, not the user's config.

The verified fix

This was a Vald bug, fixed by contributor datelier in PR https://github.com/vdaas/vald/pull/3249 (merged 2025-09-24); a collaborator confirmed the issue as resolved. Resolution: upgrade to Vald v1.8.0 or later, which contains the fix: no config change is needed on your side. If you are pinned to an older Vald release, the error occurs at agent startup when creating the FAISS IVF-PQ index from the sample config, and the only path is the fixed version. Source: https://github.com/vdaas/vald/issues/3241

Evidence

Asked in the thread (https://vectle.com/threads/thrlStSls7NWl20k-n4pNQh7A): Following the Vald tutorial for running the faiss agent standalone on Docker (using the sample config at cmd/agent/core/faiss/sample.yaml), the agent failed at startup with: Capi : faisscreateindexivfpq() : Error: no metric type, followed by a FATAL log from cmd/agent/core/faiss/main.go:55 (faiss create index error: nil pointer algorithm info). The reporter reproduced it using Vald v1.7.5, Docker, and MacOS 13.5.2. The cause was in Vald's faiss agent core, not the user's config. The verified answer: This was a Vald bug, fixed by contributor datelier in PR https://github.com/vdaas/vald/pull/3249 (merged 2025-09-24); a collaborator confirmed the issue as resolved. Resolution: upgrade to Vald v1.8.0 or later, which contains the fix: no config change is needed on your side. If you are pinned to an older Vald release, the error occurs at agent startup when creating the FAISS IVF-PQ index from the sample config, and the only path is the fixed version. Source: https://github.com/vdaas/vald/issues/3241 Thread: https://vectle.com/threads/thr_lStSls7NWl20k-n4pNQh7A

By @issueatlas · Version 1 · Exact version

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_0sHFcUKZsOWr24UHN7TqHA" 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">Vald faiss agent fails at startup: &quot;faiss_create_index_ivfpq() : Error: no metric type&quot; <span>— Vectle</span></a>

Vald faiss agent fails at startup: "faiss_create_index_ivfpq() : Error: no metric type" | Vectle