Add hibernate-vector module: pgvector similarity search with Hibernate 7.4.17.Final and Spring Data JPA 4.2.0 (float[] to vector/halfvec, cosine and L2 in HQL and Criteria, SearchResults methods, HNSW plans from auto_explain and five ways a query stops using the index, recall vs hnsw.ef_search, filtered-search row loss, Spring AI PgVectorStore comparison; PostgreSQL 16.15, pgvector 0.8.7)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
This commit is contained in:
Claude
2026-11-26 21:04:05 +05:30
parent 4c795e8b50
commit a12a47ae74
43 changed files with 2149 additions and 0 deletions
+63
View File
@@ -0,0 +1,63 @@
Manifest-Version: 1.0
Automatic-Module-Name: org.hibernate.orm.vector
Bundle-DocURL: https://hibernate.org/orm/releases/7.4
Bundle-ManifestVersion: 2
Bundle-Name: hibernate-vector
Bundle-SymbolicName: org.hibernate.orm.vector
Bundle-Vendor: Hibernate.org
Bundle-Version: 7.4.17.Final
Export-Package: org.hibernate.vector;version="7.4.17.Final",org.hibern
ate.vector.internal;version="7.4.17.Final";uses:="org.hibernate.boot.
model,org.hibernate.dialect,org.hibernate.engine.jdbc,org.hibernate.m
etamodel.mapping,org.hibernate.metamodel.model.domain,org.hibernate.q
uery.sqm.function,org.hibernate.query.sqm.produce.function,org.hibern
ate.query.sqm.produce.function.internal,org.hibernate.query.sqm.sql,o
rg.hibernate.query.sqm.tree,org.hibernate.service,org.hibernate.sql.a
st,org.hibernate.sql.ast.spi,org.hibernate.sql.ast.tree,org.hibernate
.sql.ast.tree.expression,org.hibernate.tool.schema.extract.spi,org.hi
bernate.type,org.hibernate.type.descriptor,org.hibernate.type.descrip
tor.java,org.hibernate.type.descriptor.jdbc,org.hibernate.type.descri
ptor.jdbc.spi,org.hibernate.type.descriptor.sql.internal,org.hibernat
e.type.spi,org.hibernate.vector"
Hibernate-JpaVersion: 3.2
Hibernate-VersionFamily: 7.4
Implementation-Title: hibernate-vector
Implementation-Url: https://hibernate.org/orm
Implementation-Vendor: Hibernate.org
Implementation-Vendor-Id: org.hibernate
Implementation-Version: 7.4.17.Final
Import-Package: java.lang,java.lang.invoke,java.lang.reflect,java.lang
.runtime,java.math,java.nio.charset,java.sql,java.util,java.util.func
tion,microsoft.sql;version="[13.2,14)",oracle.sql,org.hibernate;versi
on="[7.4,8)",org.hibernate.boot.model;version="[7.4,8)",org.hibernate
.boot.registry.classloading.spi;version="[7.4,8)",org.hibernate.diale
ct;version="[7.4,8)",org.hibernate.engine.jdbc;version="[7.4,8)",org.
hibernate.engine.jdbc.spi;version="[7.4,8)",org.hibernate.engine.spi;
version="[7.4,8)",org.hibernate.internal.util.collections;version="[7
.4,8)",org.hibernate.metamodel.mapping;version="[7.4,8)",org.hibernat
e.metamodel.model.domain;version="[7.4,8)",org.hibernate.query.sqm;ve
rsion="[7.4,8)",org.hibernate.query.sqm.function;version="[7.4,8)",or
g.hibernate.query.sqm.produce.function;version="[7.4,8)",org.hibernat
e.query.sqm.produce.function.internal;version="[7.4,8)",org.hibernate
.query.sqm.sql;version="[7.4,8)",org.hibernate.query.sqm.tree;version
="[7.4,8)",org.hibernate.query.sqm.tree.domain;version="[7.4,8)",org.
hibernate.query.sqm.tree.expression;version="[7.4,8)",org.hibernate.s
ervice;version="[7.4,8)",org.hibernate.sql.ast;version="[7.4,8)",org.
hibernate.sql.ast.spi;version="[7.4,8)",org.hibernate.sql.ast.tree;ve
rsion="[7.4,8)",org.hibernate.sql.ast.tree.expression;version="[7.4,8
)",org.hibernate.tool.schema.extract.spi;version="[7.4,8)",org.hibern
ate.type;version="[7.4,8)",org.hibernate.type.descriptor;version="[7.
4,8)",org.hibernate.type.descriptor.converter.spi;version="[7.4,8)",o
rg.hibernate.type.descriptor.java;version="[7.4,8)",org.hibernate.typ
e.descriptor.java.spi;version="[7.4,8)",org.hibernate.type.descriptor
.jdbc;version="[7.4,8)",org.hibernate.type.descriptor.jdbc.spi;versio
n="[7.4,8)",org.hibernate.type.descriptor.sql;version="[7.4,8)",org.h
ibernate.type.descriptor.sql.internal;version="[7.4,8)",org.hibernate
.type.descriptor.sql.spi;version="[7.4,8)",org.hibernate.type.spi;ver
sion="[7.4,8)",org.hibernate.vector;version="[7.4,8)",javax.transacti
on;version="[1.1,2)"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=17))"
Specification-Title: hibernate-vector
Specification-Vendor: Hibernate.org
Specification-Version: 7.4.17.Final