-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDBC Postgres VectorStore #11
Conversation
@franciscodr @realdavidvega @gutiory this PR is ready for review, and adds the same implementation as langchain4s does with Doobie but with plain JDBC. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! In general, LGTM! Added a minor question, though. Let's wait for Kotliners reviewers nonetheless :)
src/commonTest/kotlin/com/xebia/functional/config/ConfigSpec.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/com/xebia/functional/embeddings/OpenAIEmbeddings.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/com/xebia/functional/vectorstores/VectorStore.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a final message :p Looks good to me, @nomisRev Thanks!
Co-authored-by: Francisco Diaz <francisco.d@47deg.com>
I created a JDBC implementation for Postgres VectorStore.
The common stuff like the queries live inside Kotlin KMP, so we can re-use them to add implementations for different platforms such as Native using https://github.com/hfhbd/postgres-native-sqldelight.
We could easily do the same for NodeJS by relying on a NodeJS Postgres driver.