kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

Kilo-provider indexing disabled: embedding catalog rejected because two models lack dimension

Open evanemolo opened this issue 2 weeks ago • 1 comments

Component

VS Code extension

Description

Codebase indexing with the Kilo embedding provider never initializes in 7.8.32. The status stays Disabled and the log shows:

WARN service=kilocode-indexing model=openai/text-embedding-3-small ignoring unsupported Kilo embedding model configuration INFO service=kilocode-indexing ... state=Disabled project indexing initialized

The warning is misleading. openai/text-embedding-3-small is present in the Kilo embedding catalog with dimension 1536. The actual failure is that the catalog response contains two models without a dimension field:

  • perplexity/pplx-embed-v2-context-0.6b
  • perplexity/pplx-embed-v2-context-9b

packages/kilo-gateway/src/api/embedding-models.ts validates every model with dimension: z.number().int().positive(). Because two of the 40 entries lack that field, catalog.safeParse rejects the entire response and fetchKiloEmbeddingModelCatalog returns EMPTY_KILO_EMBEDDING_MODEL_CATALOG.

packages/opencode/src/kilocode/indexing.ts model() then cannot resolve either the configured model or the default mistralai/mistral-embed-2312. It logs the warning and clears modelId/modelDimension. isConfigured() returns false, so the status is Disabled.

This affects any indexing.provider: "kilo" configuration, not just this model. The authenticated catalog request returns the same two entries, so it is not an auth problem. Removing indexing.model only suppresses the warning; the empty catalog still leaves modelId undefined and indexing disabled. The error is silent because model() does not pass onError to fetchKiloEmbeddingModelCatalog.

Suggested fix:

  • Parse the catalog leniently and filter out models without a valid positive dimension, or make dimension optional at the catalog boundary and skip those entries during selection.
  • Alternatively, add dimensions for the two Perplexity entries in the gateway response.
  • Pass an onError handler in packages/opencode/src/kilocode/indexing.ts model() so invalid catalog responses are logged and can be shown in the indexing status.
  • Add a regression test where one catalog model lacks dimension; assert that the valid models and the default model still resolve.

Plugins

No response

Kilo version

7.8.32

Steps to reproduce

  1. Configure kilo.json:
{
  "indexing": {
    "enabled": true,
    "provider": "kilo",
    "model": "openai/text-embedding-3-small"
  }
}
  1. Reload VS Code, or restart the Kilo CLI.
  2. Check the latest ~/.local/share/kilo/log/*.log: the warning and state=Disabled appear.
  3. Verify the catalog directly:
curl -s https://ai-gateway.kilo.ai/api/v1/embedding-models \
  | jq -r '.models[] | select(has("dimension")|not) | .id'

Expected output:

perplexity/pplx-embed-v2-context-0.6b
perplexity/pplx-embed-v2-context-9b
  1. Relevant source:
    • packages/kilo-gateway/src/api/embedding-models.ts lines 30-42 and 89-109
    • packages/opencode/src/kilocode/indexing.ts lines 102-138

Screenshot and/or share link

No response

Operating System

macOS 27.2.1

Terminal

No response

evanemolo avatar Nov 21 '26 14:11 evanemolo

Same here on 7.8.32 (VS Code extension, macOS arm64) with indexing.provider: "kilo", model: mistralai/mistral-embed-2312 and Qdrant: status stays Disabled with "ignoring unsupported Kilo embedding model configuration". The catalog at /api/gateway/embedding-models still lists perplexity/pplx-embed-v2-context-0.6b and -9b without dimension today (22 Nov 2026). The 7.8.27 CLI has the same strict dimension schema, so downgrading doesn't help; a server-side fix (adding the dimensions or dropping those two entries) would restore indexing for everyone without a release.

RR-Cadance avatar Nov 21 '26 22:11 RR-Cadance