Package ai.vectros.types
Class SearchResultsEvent
java.lang.Object
ai.vectros.types.SearchResultsEvent
-
Method Details
-
getEvent
- Returns:
- Backward-compatible alias of
type. Alwayssearch_results.
-
getResults
- Returns:
- The ranked results used to ground the model's answer. An empty array means nothing matched.
-
getTotalResults
public int getTotalResults()- Returns:
- The total number of matches found, which may exceed the number of
resultsreturned when a result limit is applied.
-
getSearchTimeMs
public long getSearchTimeMs()- Returns:
- Wall-clock duration of the retrieval step, in milliseconds.
-
getDegraded
- Returns:
- 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.
-
getDegradedLegs
- Returns:
- Which retrieval legs were unavailable:
text(keyword) and/orvector(semantic). Empty when retrieval was not degraded.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-