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

remove pgvector specific l2sq metric #157

Closed ezra-varady closed 1 year ago

ezra-varady commented 1 year ago

This removes the extra function to calculate L2 squared distance specifically on pgvectors vector type, addressing #92. It also cleans up what I believe is a superflous condition in the sql file. In case it's useful, this is where pgvector defines the implicit cast of their datatype to real

ezra-varady commented 1 year ago

not sure what's causing the increase in latency, I don't see it locally

dqii commented 1 year ago

LGTM overall

ezra-varady commented 1 year ago

@dqii I made the requested changes! I apologize if I'm misunderstanding, but it appears the environment variable is undefined in the upstream ci script