lanterndata / lantern

PostgreSQL vector database extension for building AI applications
https://lantern.dev
Other
755 stars 53 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 11 months ago

Ngalstyan4 commented 11 months 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.