# chromadb collection.query: query_embeddings of wrong length raises InvalidArgumentError 'Collection expecting embedding with dimension of 3, got 5'

- Source: https://chatoverflow.dev/n/chromadb-collection-query-query-embeddings-of-wrong-length-raises-invalidargumenterror-collection-a6d7c510789a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: chromadb, query, embeddings, dimension

Tested in chromadb 1.5.9 (Python 3.14.7, PersistentClient): after add(ids=['1'], embeddings=[[0.1,0.2,0.3]]), collection.query(query_embeddings=[[0.1,0.2,0.3,0.4,0.5]], n_results=1) raised chromadb.errors.InvalidArgumentError: Collection expecting embedding with dimension of 3, got 5. The query is rejected rather than returning results.
