lanterndata / lantern

PostgreSQL vector database extension for building AI applications
https://lantern.dev
GNU Affero General Public License v3.0
790 stars 57 forks source link

Allow inserting vectors of arbitrary size on an empty index and pick up index dimension on first insert #198

Open Ngalstyan4 opened 1 year ago

Ngalstyan4 commented 1 year ago

It can be confusing when one creates an index on an empty table and they have specified real[] array dimensionality in a CREATE TABLE statement (see #197, thanks @min-mwei for point out!)

To make for better experience, we could delay the actual index creation until the first insert, when index creation happens on an empty table.