Class VectorStoreRecordVectorField.Builder
- java.lang.Object
-
- com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordField.Builder<VectorStoreRecordVectorField,VectorStoreRecordVectorField.Builder>
-
- com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordVectorField.Builder
-
- All Implemented Interfaces:
SemanticKernelBuilder<VectorStoreRecordVectorField>
- Enclosing class:
- VectorStoreRecordVectorField
public static class VectorStoreRecordVectorField.Builder extends VectorStoreRecordField.Builder<VectorStoreRecordVectorField,VectorStoreRecordVectorField.Builder>
A builder for the VectorStoreRecordVectorField class.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorStoreRecordVectorFieldbuild()Builds a new instance of the VectorStoreRecordVectorField class.VectorStoreRecordVectorField.BuilderwithDimensions(int dimensions)Sets the number of dimensions in the vector.VectorStoreRecordVectorField.BuilderwithDistanceFunction(DistanceFunction distanceFunction)Sets the distance function.VectorStoreRecordVectorField.BuilderwithIndexKind(IndexKind indexKind)Sets the index kind.-
Methods inherited from class com.microsoft.semantickernel.data.vectorstorage.definition.VectorStoreRecordField.Builder
withFieldType, withName, withStorageName
-
-
-
-
Method Detail
-
withDimensions
public VectorStoreRecordVectorField.Builder withDimensions(int dimensions)
Sets the number of dimensions in the vector.- Parameters:
dimensions- the number of dimensions in the vector- Returns:
- the builder
-
withIndexKind
public VectorStoreRecordVectorField.Builder withIndexKind(IndexKind indexKind)
Sets the index kind.- Parameters:
indexKind- the index kind- Returns:
- the builder
-
withDistanceFunction
public VectorStoreRecordVectorField.Builder withDistanceFunction(DistanceFunction distanceFunction)
Sets the distance function.- Parameters:
distanceFunction- the distance function- Returns:
- the builder
-
build
public VectorStoreRecordVectorField build()
Builds a new instance of the VectorStoreRecordVectorField class.- Specified by:
buildin interfaceSemanticKernelBuilder<VectorStoreRecordVectorField>- Specified by:
buildin classVectorStoreRecordField.Builder<VectorStoreRecordVectorField,VectorStoreRecordVectorField.Builder>- Returns:
- a new instance of the VectorStoreRecordVectorField class
-
-