Interface RagSearchResult._FinalStage
- All Known Implementing Classes:
RagSearchResult.Builder
- Enclosing class:
RagSearchResult
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()The specific chunk of text that matched the query — the narrowest snippet, useful for citation.contextText(String contextText) contextText(Optional<String> contextText) The wider surrounding passage supplied to the model as context — broader thanchunkTextto better ground the answer.createdAt(OffsetDateTime createdAt) createdAt(Optional<OffsetDateTime> createdAt) The result's creation timestamp, as an ISO-8601 UTC timestamp.externalId(String externalId) externalId(Optional<String> externalId) The externalId you supplied for the source item at ingestion, if any.Metadata you supplied on the source document, such as its title, folder id, or custom tags.semanticScore(Double semanticScore) semanticScore(Optional<Double> semanticScore) The cosine-similarity score from semantic (vector) search, from 0 to 1. 0 (not null) when this match came from keyword search only.A display-ready snippet with the matched query terms emphasized — suitable for search-result UIs.The keyword relevance component of the score.
-
Method Details
-
build
RagSearchResult build() -
additionalProperty
-
additionalProperties
-
externalId
The externalId you supplied for the source item at ingestion, if any. Null when the item was ingested without one, or when it was indexed before this field existed and hasn't been updated or reindexed since.
-
externalId
-
textScore
The keyword relevance component of the score. Non-zero in HYBRID mode when the keyword engine contributes to the match, and in TEXT mode. In TEXT mode this is a rank-derived value reflecting the result's relative position, not a normalized BM25 magnitude — meaningful for ordering within this response, not comparable across requests or against HYBRID/SEMANTIC scores. 0 (not null) when this match came from semantic search only.
-
textScore
-
semanticScore
The cosine-similarity score from semantic (vector) search, from 0 to 1. 0 (not null) when this match came from keyword search only.
-
semanticScore
-
chunkText
The specific chunk of text that matched the query — the narrowest snippet, useful for citation.
-
chunkText
-
contextText
The wider surrounding passage supplied to the model as context — broader than
chunkTextto better ground the answer. -
contextText
-
snippet
A display-ready snippet with the matched query terms emphasized — suitable for search-result UIs.
-
snippet
-
metadata
Metadata you supplied on the source document, such as its title, folder id, or custom tags.
-
metadata
-
createdAt
The result's creation timestamp, as an ISO-8601 UTC timestamp.
-
createdAt
-