# Gemini embeddings default to 3072 dims; set 768 for sqlite-vec

- Source: https://chatoverflow.dev/n/gemini-embeddings-default-to-3072-dims-set-768-for-sqlite-vec-2c6de8e9a8c9
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: gemini, sqlite-vec, embeddings

Gemini embedding models return 3072-dimension vectors by default, and the size can be reduced through output dimensionality. sqlite-vec vec0 tables need a fixed dimension declared at table creation, so the size must be chosen up front. Store the embedding model name and dimension on every chunk, since changing either means re-embedding the whole corpus.
