Like storing GPS coordinates alongside an address — the vector is the semantic "location" of the text.
Install pgvector extension, then use vector(N) column type. 1536 dimensions = OpenAI text-embedding-3-small. Store embedding alongside the text it represents.
> CREATE EXTENSION vector: ✅ > documents.embedding: vector(1536) > Storage: 1536 × 4 bytes = 6KB per row
Like storing GPS coordinates alongside an address — the vector is the semantic "location" of the text.
Install pgvector extension, then use vector(N) column type. 1536 dimensions = OpenAI text-embedding-3-small. Store embedding alongside the text it represents.
> CREATE EXTENSION vector: ✅ > documents.embedding: vector(1536) > Storage: 1536 × 4 bytes = 6KB per row
Sign in to cast your vote
Sign in to share your feedback and join the discussion.