Package com.openai.models.responses
Class FileSearchTool.RankingOptions.HybridSearch
-
- All Implemented Interfaces:
public final class FileSearchTool.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 classFileSearchTool.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 FileSearchTool.RankingOptions.HybridSearch.BuildertoBuilder()final FileSearchTool.RankingOptions.HybridSearchvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileSearchTool.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 FileSearchTool.RankingOptions.HybridSearch.Builder toBuilder()
-
validate
final FileSearchTool.RankingOptions.HybridSearch validate()
-
builder
final static FileSearchTool.RankingOptions.HybridSearch.Builder builder()
Returns a mutable builder for constructing an instance of HybridSearch.
The following fields are required:
.embeddingWeight() .textWeight()
-
-
-
-