Package ai.vectros.types
Class RagSearchResult
java.lang.Object
ai.vectros.types.RagSearchResult
-
Method Details
-
getDocumentId
- Returns:
- The stable identifier of the matched result (a document or a record).
-
getScore
public double getScore()- Returns:
- The combined relevance score from hybrid ranking. Higher is more relevant.
-
getTextScore
- Returns:
- The keyword (BM25) relevance score, from 0 to 1. Null when this match came from semantic search only.
-
getSemanticScore
- Returns:
- The cosine-similarity score from semantic (vector) search, from 0 to 1. Null when this match came from keyword search only.
-
getChunkText
- Returns:
- The specific chunk of text that matched the query — the narrowest snippet, useful for citation.
-
getContextText
- Returns:
- The wider surrounding passage supplied to the model as context — broader than
chunkTextto better ground the answer.
-
getSnippet
- Returns:
- A display-ready snippet with the matched query terms emphasized — suitable for search-result UIs.
-
getMetadata
- Returns:
- Metadata you supplied on the source document, such as its title, folder id, or custom tags.
-
getCreatedAt
- Returns:
- The result's creation timestamp, as an ISO-8601 UTC timestamp.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-