Closed sbrunk closed 1 year ago
Skimming over the code this could be CustomType
I guess, but it's an external extension, not a core Postgres type of course.
Hey there!
It looks very doable with a custom type. If you can manage to pack the extension into the docker image I'm using I can give it a shot.
It was nice meeting you in person in Madrid BTW :)
Definitely likewise! :)
Wow that was fast! I'm just playing with it, pumping vectors into my test DB and it's working great so far. Thanks a lot @oyvindberg!
SQL driven development using the IntelliJ editor for prototyping your queries in conjunction with typo really feels next level to me :)
SQL driven development using the IntelliJ editor for prototyping your queries in conjunction with typo really feels next level to me :)
Glad to hear it, I feel it's such a great step forward. Spread the word when you have the chance :)
@oyvindberg I continue to stumble over super interesting new libraries from you. Just did a quick test applying typo to a schema and some queries and it looks quite nice.
In that project, I'm using as Postgres extension called https://github.com/pgvector/pgvector, that defines its own vector type meant for fast similarity computations.
typo obviously doesn't know the type, so it generates a
pgvector
already has a JDBC integration, It defines aPGvector
type that let's you map from and to arrays, i.e.See https://github.com/pgvector/pgvector-java/#jdbc-scala for details.
Is it possible to support such a custom type within typo and if so, what would be the recommended way to integrate it?
It was nice meeting you in person in Madrid BTW :)