Closed pthieu closed 7 months ago
figured it out, was able to do this in the SELECT
clause:
.select({
id: VideoTable.id,
uid: VideoTable.uid,
caption: VideoTable.caption,
distance: cosineDistance(VideoTable.embedding, embedding), // added this
})
I have a working SELECT statement using Drizzle ORM and pgvector-node:
I would like to also return the similarity or distance score, how would I do this? Does
pgvector-node
offer a select operator?