Skip to content
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

Merged
merged 9 commits into from
Apr 27, 2023
Merged

JDBC Postgres VectorStore #11

merged 9 commits into from
Apr 27, 2023

Conversation

nomisRev
Copy link
Contributor

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.

@nomisRev nomisRev requested a review from gutiory April 27, 2023 13:10
@nomisRev
Copy link
Contributor Author

@franciscodr @realdavidvega @gutiory this PR is ready for review, and adds the same implementation as langchain4s does with Doobie but with plain JDBC.

cc\ @juanpedromoreno @Yawolf

Copy link
Contributor

@juanpedromoreno juanpedromoreno left a 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/commonMain/kotlin/com/xebia/functional/model.kt Outdated Show resolved Hide resolved
Copy link
Contributor

@franciscodr franciscodr left a 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!

src/jvmMain/kotlin/com/xebia/functional/JDBCSyntax.kt Outdated Show resolved Hide resolved
Co-authored-by: Francisco Diaz <francisco.d@47deg.com>
@nomisRev nomisRev merged commit 24f4d60 into main Apr 27, 2023
@nomisRev nomisRev deleted the vectorstore branch April 27, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants