pgvector extension in PostgreSQL. Vectors are commonly used to store embeddings and other high-dimensional feature data.
Define a vector type
n is a positive integer specifying the number of dimensions (elements) in the vector. All elements are stored as real (float32) values, and they must be finite numbers,NULL, NaN, inf, and -inf are not allowed. Vectors are represented in SQL using a bracketed, comma-separated list format such as [1.0, 2.0, 3.0].