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:
@@ -356,3 +356,4 @@ Modules with their own `pom.xml` that run plain Hibernate without the Spring Boo
|
||||
| [`enums`](enums/) | Enum mapping in Hibernate 7: `ORDINAL` vs `STRING` vs PostgreSQL native enum vs `AttributeConverter` vs JPA 3.2 `@EnumeratedValue`, the DDL each creates, what release 2 reads and writes after a constant is inserted, appended or renamed, `hbm2ddl=update` limits and the migration each change needs; plain Hibernate on H2 and PostgreSQL 18 (Hibernate `7.4.17.Final`) |
|
||||
| [`formula-filter`](formula-filter/) | `@Formula`, `@Filter` and `@SQLRestriction` in Hibernate 7: the SQL each one adds, `@Formula` staleness and the unqualified-column trap, where filters skip find-by-id, collections and loaded collections, `applyToLoadByKey`, `autoEnabled` tenant filters, and the removed `@Where`; plain Hibernate on H2 (Hibernate `7.4.17.Final`) |
|
||||
| [`embeddables`](embeddables/) | Records and value objects in Hibernate 7: `@Embeddable` records, null handling (all-null columns, partial nulls, compact constructors), collections of embeddables and the SQL for add/remove, record equality vs database equality, `@EmbeddedId` records, a DDD `Email` value object, and the failure modes; plain Hibernate on H2 (Hibernate `7.4.17.Final`) |
|
||||
| [`hibernate-vector`](hibernate-vector/) | pgvector similarity search with Hibernate 7 and Spring Data JPA 4.2: `float[]` to `vector`/`halfvec`, cosine and L2 in HQL and Criteria, `SearchResults` repository methods, HNSW index plans from `auto_explain` (five ways a query stops using the index), recall vs `hnsw.ef_search`, filtered-search row loss, and Spring AI `PgVectorStore` for comparison; PostgreSQL 16 + pgvector 0.8.7 (Hibernate `7.4.17.Final`, Spring Boot `4.2.0`) |
|
||||
|
||||
Reference in New Issue
Block a user