Record Class EmbeddingBenchPair
java.lang.Object
java.lang.Record
com.tnsai.evaluation.rag.embedding.EmbeddingBenchPair
- Record Components:
id- pair identifierslice- language slicequery- retrieval querydocument- gold passagedocumentId- stable document key used as the hit target
public record EmbeddingBenchPair(String id, EmbeddingBenchSlice slice, String query, String document, String documentId)
extends Record
One query and its gold document inside a
EmbeddingBenchSlice.- Since:
- 0.14.0
-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddingBenchPair(String id, EmbeddingBenchSlice slice, String query, String document, String documentId) Creates an instance of aEmbeddingBenchPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondocument()Returns the value of thedocumentrecord component.Returns the value of thedocumentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.query()Returns the value of thequeryrecord component.slice()Returns the value of theslicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmbeddingBenchPair
public EmbeddingBenchPair(String id, EmbeddingBenchSlice slice, String query, String document, String documentId) Creates an instance of aEmbeddingBenchPairrecord class.- Parameters:
id- the value for theidrecord componentslice- the value for theslicerecord componentquery- the value for thequeryrecord componentdocument- the value for thedocumentrecord componentdocumentId- the value for thedocumentIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
slice
Returns the value of theslicerecord component.- Returns:
- the value of the
slicerecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
documentId
Returns the value of thedocumentIdrecord component.- Returns:
- the value of the
documentIdrecord component
-