0PricingLogin
Vector Databases: Pinecone, Weaviate & pgvector · Lesson

Storing Vectors in PostgreSQL

Learn to create tables with vector columns and insert embedding data directly into your PostgreSQL database.

Storing Vectors in PostgreSQL

Welcome back! In the previous lesson, we set up pgvector. Now, let's get practical and learn how to store actual vector embeddings in your PostgreSQL database.

This lesson covers creating tables with vector columns and inserting embedding data.

PostgreSQL Tables Reminder

Before storing vectors, let's quickly recall how tables work in PostgreSQL. You use the CREATE TABLE statement to define your table's structure, including column names and their data types.

With pgvector installed, we gain a new, powerful data type!

All lessons in this course

  1. Setting Up pgvector Extension
  2. Storing Vectors in PostgreSQL
  3. Performing Similarity Queries
  4. Choosing Distance Metrics in pgvector
← Back to Vector Databases: Pinecone, Weaviate & pgvector