Class ScaNNIndexQueryOptions.Builder
java.lang.Object
dev.langchain4j.community.store.embedding.alloydb.index.query.ScaNNIndexQueryOptions.Builder
- Enclosing class:
ScaNNIndexQueryOptions
Builder which configures and creates instances of
ScaNNIndexQueryOptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds anScaNNIndexQueryOptionsstore with the configuration applied to this builder.numLeavesToSearch(Integer numLeavesToSearch) preOrderingNumNeighbors(Integer preOrderingNumNeighbors)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numLeavesToSearch
- Parameters:
numLeavesToSearch- number of probes- Returns:
- this builder
-
preOrderingNumNeighbors
- Parameters:
preOrderingNumNeighbors- number of preordering neighbors- Returns:
- this builder
-
build
Builds anScaNNIndexQueryOptionsstore with the configuration applied to this builder.- Returns:
- A new
ScaNNIndexQueryOptionsinstance
-