Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install PostgreSQL:
brew install postgresql@17
Start PostgreSQL service:
brew services start postgresql@17
Install pgvector extension:
brew install pgvector
Verify installation:
psql --version
sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
Then restart your terminal.Docker provides an easy way to run PostgreSQL with pgvector pre-installed. See the Docker Installation Guide for detailed instructions.
After installation, proceed to: