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

pgvector support #647

Open
holmofy opened this issue Aug 14, 2023 · 3 comments
Open

pgvector support #647

holmofy opened this issue Aug 14, 2023 · 3 comments

Comments

@holmofy
Copy link

holmofy commented Aug 14, 2023

https://github.com/pgvector/pgvector-java

pgvector for nearest neighbor search of high-dimensional vectors.

@vladmihalcea
Copy link
Owner

@holmofy Looking forward to your Pull Request that adds support for this.

@holmofy
Copy link
Author

holmofy commented Aug 15, 2023

I took a look at the code of this repository today. In the next few days, I will try to implement this feature.

Because I am not particularly clear about the underlying implementation of hibernate. So I have to look at some of the code of hibernate first to verify some of my ideas.

After that, I will submit a pull request, and please correct me if there are any problems.

In addition, I think the pgvector type of registration may not be suitable for implementation in hibernate.

PGvector.addVectorType(conn);

This needs to be registered when creating a connection. It may not be appropriate to implement this in this library? Looking forward to your reply.

@vladmihalcea
Copy link
Owner

The Hibernate Type cannot interact with the DB connection directly. You will see in the existing Types how you need to implement this one.

Note that you need to do that for all modules prior to sending the Pull Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants