Class BetaFileSearchTool.RankingOptions.HybridSearch
-
- All Implemented Interfaces:
public final class BetaFileSearchTool.RankingOptions.HybridSearchWeights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaFileSearchTool.RankingOptions.HybridSearch.BuilderA builder for HybridSearch.
-
Method Summary
Modifier and Type Method Description final DoubleembeddingWeight()The weight of the embedding in the reciprocal ranking fusion. final DoubletextWeight()The weight of the text in the reciprocal ranking fusion. final JsonField<Double>_embeddingWeight()Returns the raw JSON value of embeddingWeight. final JsonField<Double>_textWeight()Returns the raw JSON value of textWeight. final Map<String, JsonValue>_additionalProperties()final BetaFileSearchTool.RankingOptions.HybridSearch.BuildertoBuilder()final BetaFileSearchTool.RankingOptions.HybridSearchvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaFileSearchTool.RankingOptions.HybridSearch.Builderbuilder()Returns a mutable builder for constructing an instance of HybridSearch. -
-
Method Detail
-
embeddingWeight
final Double embeddingWeight()
The weight of the embedding in the reciprocal ranking fusion.
-
textWeight
final Double textWeight()
The weight of the text in the reciprocal ranking fusion.
-
_embeddingWeight
final JsonField<Double> _embeddingWeight()
Returns the raw JSON value of embeddingWeight.
Unlike embeddingWeight, this method doesn't throw if the JSON field has an unexpected type.
-
_textWeight
final JsonField<Double> _textWeight()
Returns the raw JSON value of textWeight.
Unlike textWeight, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaFileSearchTool.RankingOptions.HybridSearch.Builder toBuilder()
-
validate
final BetaFileSearchTool.RankingOptions.HybridSearch validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaFileSearchTool.RankingOptions.HybridSearch.Builder builder()
Returns a mutable builder for constructing an instance of HybridSearch.
The following fields are required:
.embeddingWeight() .textWeight()
-
-
-
-