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:
@@ -0,0 +1,11 @@
|
||||
# Two failures: Spring Data's Vector as an entity attribute, and an HNSW index from @Index
|
||||
# Hibernate ORM 7.4.17.Final (on the classpath), PostgreSQL 16.15, pgvector 0.8.7, JDK 25
|
||||
|
||||
== 1. @JdbcTypeCode(SqlTypes.VECTOR) @Array(length = 4) Vector embedding (org.springframework.data.domain.Vector)
|
||||
ClassCastException: class org.hibernate.type.descriptor.java.spi.UnknownBasicJavaType cannot be cast to class org.hibernate.type.descriptor.java.BasicPluralJavaType (org.hibernate.type.descriptor.java.spi.UnknownBasicJavaType and org.hibernate.type.descriptor.java.BasicPluralJavaType are in unnamed module of loader 'app')
|
||||
|
||||
== 2. @Table(indexes = @Index(columnList = "embedding vector_cosine_ops")) with hbm2ddl create
|
||||
SchemaManagementException: Halting on error : Error executing DDL "create index broken_idx on broken_indexed ("embedding vector_cosine_ops")" via JDBC [ERROR: column "embedding vector_cosine_ops" does not exist]
|
||||
caused by CommandAcceptanceException: Error executing DDL "create index broken_idx on broken_indexed ("embedding vector_cosine_ops")" via JDBC [ERROR: column "embedding vector_cosine_ops" does not exist]
|
||||
caused by PSQLException: ERROR: column "embedding vector_cosine_ops" does not exist
|
||||
index created: 0
|
||||
Reference in New Issue
Block a user