From 9a7d3532f59a5f4540a083af69f72786073789fd Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 1 Apr 2023 19:32:26 -0700 Subject: [PATCH] Updated readme [skip ci] --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index bc7845c..4940840 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,18 @@ Note: `<#>` returns the negative inner product since Postgres only supports `ASC ## Storing +Create a new table with a vector column + +```sql +CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3)); +``` + +Or add a vector column to an existing table + +```sql +ALTER TABLE items ADD COLUMN embedding vector(3); +``` + Insert vectors ```sql