Package ai.vectros.types
Class SearchResponse
java.lang.Object
ai.vectros.types.SearchResponse
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchResponse.Builderbuilder()booleaninthashCode()toString()
-
Method Details
-
getResults
- Returns:
- The matched content chunks, ordered from most to least relevant.
-
getTotalResults
- Returns:
- The total number of items that matched the query (the size of the matching pool). This may be larger than the number of results returned in this response, which is capped by
limit.
-
getSearchTimeMs
- Returns:
- How long the search took to run, in milliseconds.
-
getDegraded
- Returns:
- True when one of the two search engines was unavailable and these results came from the surviving engine only (for example, keyword search fell back to semantic-only during an outage). When true, the results may be less complete than a healthy hybrid search. Set
requireCompleteto true on your request to receive a 503 instead of partial results.
-
getDegradedLegs
- Returns:
- Which search engines were unavailable for this response:
text(keyword) and/orvector(semantic). Empty when the search was not degraded.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-