Skip to content

Vector dimension for code index only accepts 1536Β #5562

@mkdir700

Description

@mkdir700

App Version

v3.23.6

API Provider

Google Gemini

Model Used

text-embedding-004

Roo Code Task Links (Optional)

No response

πŸ” Steps to Reproduce

  1. setup(macOS, roo code v3.23.6)
  2. Select Google Gemini as the embedding model provider
  3. Choose text-embedding-004 as the embedding model
  4. Qdrant can be selected locally or in the cloud
  5. Save and start building the index
  6. The number of discoveries is normal, but the number of completed ones remains at 0.

πŸ’₯ Outcome Summary

I tried both the ollama and Google Gemini embedding models, but both failed. Checking the logs revealed that the vector dimension was required to be 1536. Eventually, I switched to OpenAI's text-embedding-3-small model, and everything worked fine.

I hope to use other embedding modes instead of being limited to models with a vector dimension of 1536.

πŸ“„ Relevant Logs or Errors (Optional)

Qdrant Logs:


2025-07-10T13:39:33.516083Z  WARN collection::shards::replica_set::update: Failed to update shard ws-7d00c287d41ff44f:0 on peer 4890243171819253, error: Wrong input: Vector dimension error: expected dim: 1536, got 768
2025-07-10T13:39:33.516336Z  INFO actix_web::middleware::logger: 192.168.65.1 "PUT /collections/ws-7d00c287d41ff44f/points?wait=true HTTP/1.1" 400 111 "-" "Roo-Code" 0.012018
2025-07-10T13:39:33.734444Z  WARN collection::collection_manager::collection_updater: Update operation declined: Wrong input: Vector dimension error: expected dim: 1536, got 768
2025-07-10T13:39:33.734513Z  WARN collection::shards::replica_set::update: Failed to update shard ws-7d00c287d41ff44f:0 on peer 4890243171819253, error: Wrong input: Vector dimension error: expected dim: 1536, got 768
2025-07-10T13:39:33.734693Z  INFO actix_web::middleware::logger: 192.168.65.1 "PUT /collections/ws-7d00c287d41ff44f/points?wait=true HTTP/1.1" 400 111 "-" "Roo-Code" 0.008853
2025-07-10T13:39:33.754102Z  WARN collection::collection_manager::collection_updater: Update operation declined: Wrong input: Vector dimension error: expected dim: 1536, got 768
2025-07-10T13:39:33.754166Z  WARN collection::shards::replica_set::update: Failed to update shard ws-7d00c287d41ff44f:0 on peer 4890243171819253, error: Wrong input: Vector dimension error: expected dim: 1536, got 768
2025-07-10T13:39:33.754347Z  INFO actix_web::middleware::logger: 192.168.65.1 "PUT /collections/ws-7d00c287d41ff44f/points?wait=true HTTP/1.1" 400 110 "-" "Roo-Code" 0.008354

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions