Class FileSearchTool.RankingOptions.HybridSearch.Builder
-
- All Implemented Interfaces:
public final class FileSearchTool.RankingOptions.HybridSearch.BuilderA builder for HybridSearch.
-
-
Method Summary
-
-
Method Detail
-
embeddingWeight
final FileSearchTool.RankingOptions.HybridSearch.Builder embeddingWeight(Double embeddingWeight)
The weight of the embedding in the reciprocal ranking fusion.
-
embeddingWeight
final FileSearchTool.RankingOptions.HybridSearch.Builder embeddingWeight(JsonField<Double> embeddingWeight)
Sets Builder.embeddingWeight to an arbitrary JSON value.
You should usually call Builder.embeddingWeight with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
textWeight
final FileSearchTool.RankingOptions.HybridSearch.Builder textWeight(Double textWeight)
The weight of the text in the reciprocal ranking fusion.
-
textWeight
final FileSearchTool.RankingOptions.HybridSearch.Builder textWeight(JsonField<Double> textWeight)
Sets Builder.textWeight to an arbitrary JSON value.
You should usually call Builder.textWeight with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final FileSearchTool.RankingOptions.HybridSearch.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileSearchTool.RankingOptions.HybridSearch.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileSearchTool.RankingOptions.HybridSearch.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileSearchTool.RankingOptions.HybridSearch.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileSearchTool.RankingOptions.HybridSearch.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FileSearchTool.RankingOptions.HybridSearch build()
Returns an immutable instance of HybridSearch.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.embeddingWeight() .textWeight()
-
-
-
-