Class SearchResultsEvent.Builder
- All Implemented Interfaces:
SearchResultsEvent._FinalStage,SearchResultsEvent.EventStage,SearchResultsEvent.SearchTimeMsStage,SearchResultsEvent.TotalResultsStage
- Enclosing class:
SearchResultsEvent
-
Method Summary
Modifier and TypeMethodDescriptionaddAllResults(List<RagSearchResult> results) The ranked results used to ground the model's answer.additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) addResults(RagSearchResult results) The ranked results used to ground the model's answer.build()True when one search backend was unavailable and these results came from the remaining engine only (for example, keyword search degraded to semantic-only during an outage).True when one search backend was unavailable and these results came from the remaining engine only (for example, keyword search degraded to semantic-only during an outage).degradedLegs(List<String> degradedLegs) Which retrieval legs were unavailable:text(keyword) and/orvector(semantic).degradedLegs(Optional<List<String>> degradedLegs) Which retrieval legs were unavailable:text(keyword) and/orvector(semantic).event(@NotNull SearchResultsEventEvent event) Backward-compatible alias oftype.from(SearchResultsEvent other) results(List<RagSearchResult> results) The ranked results used to ground the model's answer.searchTimeMs(long searchTimeMs) Wall-clock duration of the retrieval step, in milliseconds.totalResults(int totalResults) The total number of matches found, which may exceed the number ofresultsreturned when a result limit is applied.
-
Method Details
-
from
- Specified by:
fromin interfaceSearchResultsEvent.EventStage
-
event
Backward-compatible alias of
type. Alwayssearch_results.Backward-compatible alias of
type. Alwayssearch_results.- Specified by:
eventin interfaceSearchResultsEvent.EventStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalResults
The total number of matches found, which may exceed the number of
resultsreturned when a result limit is applied.The total number of matches found, which may exceed the number of
resultsreturned when a result limit is applied.- Specified by:
totalResultsin interfaceSearchResultsEvent.TotalResultsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
searchTimeMs
Wall-clock duration of the retrieval step, in milliseconds.
Wall-clock duration of the retrieval step, in milliseconds.
- Specified by:
searchTimeMsin interfaceSearchResultsEvent.SearchTimeMsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
degradedLegs
Which retrieval legs were unavailable:
text(keyword) and/orvector(semantic). Empty when retrieval was not degraded.- Specified by:
degradedLegsin interfaceSearchResultsEvent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
degradedLegs
Which retrieval legs were unavailable:
text(keyword) and/orvector(semantic). Empty when retrieval was not degraded.- Specified by:
degradedLegsin interfaceSearchResultsEvent._FinalStage
-
degraded
True when one search backend was unavailable and these results came from the remaining engine only (for example, keyword search degraded to semantic-only during an outage). The grounding context may be less complete in this case.
- Specified by:
degradedin interfaceSearchResultsEvent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
degraded
True when one search backend was unavailable and these results came from the remaining engine only (for example, keyword search degraded to semantic-only during an outage). The grounding context may be less complete in this case.
- Specified by:
degradedin interfaceSearchResultsEvent._FinalStage
-
addAllResults
The ranked results used to ground the model's answer. An empty array means nothing matched.
- Specified by:
addAllResultsin interfaceSearchResultsEvent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addResults
The ranked results used to ground the model's answer. An empty array means nothing matched.
- Specified by:
addResultsin interfaceSearchResultsEvent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
results
The ranked results used to ground the model's answer. An empty array means nothing matched.
- Specified by:
resultsin interfaceSearchResultsEvent._FinalStage
-
build
- Specified by:
buildin interfaceSearchResultsEvent._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceSearchResultsEvent._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceSearchResultsEvent._FinalStage
-