Interface VectorFieldTypeOptionsStep<S extends VectorFieldTypeOptionsStep<?,F>,F>
- Type Parameters:
S- The "self" type (the actual exposed type of this step).F- The type of field values.
- All Superinterfaces:
IndexFieldTypeConverterStep<S,,F> IndexFieldTypeFinalStep<F>,IndexFieldTypeOptionsStep<S,,F> SearchableProjectableIndexFieldTypeOptionsStep<S,F>
@Incubating
public interface VectorFieldTypeOptionsStep<S extends VectorFieldTypeOptionsStep<?,F>,F>
extends SearchableProjectableIndexFieldTypeOptionsStep<S,F>
The initial and final step in a "vector" index field type definition, where optional parameters can be set.
-
Method Summary
Modifier and TypeMethodDescriptionbeamWidth(int beamWidth) maxConnections(int maxConnections) vectorSimilarity(VectorSimilarity vectorSimilarity) Methods inherited from interface org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeConverterStep
dslConverter, projectionConverterMethods inherited from interface org.hibernate.search.engine.backend.types.dsl.IndexFieldTypeFinalStep
toIndexFieldTypeMethods inherited from interface org.hibernate.search.engine.backend.types.dsl.SearchableProjectableIndexFieldTypeOptionsStep
indexNullAs, projectable, searchable
-
Method Details
-
vectorSimilarity
- Parameters:
vectorSimilarity- Defines how vector similarity is calculated.- Returns:
this, for method chaining.
-
beamWidth
- Parameters:
beamWidth- Defines the size of the dynamic list used during k-NN graph creation.- Returns:
this, for method chaining.
-
maxConnections
- Parameters:
maxConnections- Defines the number of neighbors each node will be connected to in the HNSW graph.- Returns:
this, for method chaining.
-