Record Class RankedDocsResults.RankedDoc

java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.inference.results.RankedDocsResults.RankedDoc
Record Components:
index - the index of the document when it was passed to the cohere rerank API
relevanceScore -
text -
All Implemented Interfaces:
Comparable<RankedDocsResults.RankedDoc>, Writeable, ToXContent, ToXContentObject
Enclosing class:
RankedDocsResults

public static record RankedDocsResults.RankedDoc(int index, float relevanceScore, String text) extends Record implements Comparable<RankedDocsResults.RankedDoc>, Writeable, ToXContentObject
A record representing a document that has been ranked by the cohere rerank API