Class VectorIndexAttributes.Builder
java.lang.Object
com.oracle.database.selectai.model.VectorIndexAttributes.Builder
- Enclosing class:
VectorIndexAttributes
Builder for
VectorIndexAttributes.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the vector index attribute payload.chunkOverlap(Integer chunkOverlap) Sets the overlap between text chunks.Sets the text chunk size.enableSources(Boolean enableSources) Sets whether source citations are enabled.Sets the source document location.matchLimit(Integer matchLimit) Sets the retrieval match limit.objectStorageCredentialName(String objectStorageCredentialName) Sets the credential used to read object storage content.pipelineName(String pipelineName) Sets the pipeline name for update payloads.profileName(String profileName) Sets the Select AI profile used by the vector index.refreshRate(Integer refreshRate) Sets the refresh interval in minutes.similarityThreshold(Double similarityThreshold) Sets the retrieval similarity threshold.vectorDbProvider(String vectorDbProvider) Sets the vector database provider.vectorDimension(Integer vectorDimension) Sets the vector dimension.vectorDistanceMetric(String vectorDistanceMetric) Sets the vector distance metric.vectorTableName(String vectorTableName) Sets the backing vector table name.
-
Method Details
-
chunkSize
Sets the text chunk size.- Parameters:
chunkSize- chunk size- Returns:
- this builder instance
-
chunkOverlap
Sets the overlap between text chunks.- Parameters:
chunkOverlap- chunk overlap- Returns:
- this builder instance
-
enableSources
Sets whether source citations are enabled.- Parameters:
enableSources- source citation flag- Returns:
- this builder instance
-
location
Sets the source document location.- Parameters:
location- object storage or file location- Returns:
- this builder instance
-
matchLimit
Sets the retrieval match limit.- Parameters:
matchLimit- match limit- Returns:
- this builder instance
-
objectStorageCredentialName
public VectorIndexAttributes.Builder objectStorageCredentialName(String objectStorageCredentialName) Sets the credential used to read object storage content.- Parameters:
objectStorageCredentialName- object storage credential name- Returns:
- this builder instance
-
pipelineName
Sets the pipeline name for update payloads.pipeline_nameis generated by the database during vector index creation and cannot be supplied in create payloads.- Parameters:
pipelineName- DBMS_CLOUD_PIPELINE pipeline name- Returns:
- this builder instance
- Throws:
IllegalArgumentException- when used with the create builder
-
profileName
Sets the Select AI profile used by the vector index.- Parameters:
profileName- Select AI profile name- Returns:
- this builder instance
-
refreshRate
Sets the refresh interval in minutes.- Parameters:
refreshRate- refresh interval- Returns:
- this builder instance
-
similarityThreshold
Sets the retrieval similarity threshold.- Parameters:
similarityThreshold- similarity threshold- Returns:
- this builder instance
-
vectorDistanceMetric
Sets the vector distance metric.- Parameters:
vectorDistanceMetric- distance metric name- Returns:
- this builder instance
-
vectorDbProvider
Sets the vector database provider.- Parameters:
vectorDbProvider- vector database provider name- Returns:
- this builder instance
-
vectorDimension
Sets the vector dimension.- Parameters:
vectorDimension- vector dimension- Returns:
- this builder instance
-
vectorTableName
Sets the backing vector table name.- Parameters:
vectorTableName- vector table name- Returns:
- this builder instance
-
build
Builds the vector index attribute payload.- Returns:
- immutable VectorIndexAttributes built from validated builder state
-