Record Class RagDiagnostics.SourceSnapshot
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.RagDiagnostics.SourceSnapshot
- Record Components:
name- declared source nametype- declaredKnowledge.TypedeclaredFormat- declaredformatmemberdetectedFormats- distinct formats written onto ingested chunksdocumentCount- distinct files (or origins) ingestedchunkCount- indexed chunksfingerprints- distinct ingest fingerprints
- Enclosing class:
RagDiagnostics
public static record RagDiagnostics.SourceSnapshot(String name, com.tnsai.annotations.Knowledge.Type type, String declaredFormat, List<String> detectedFormats, int documentCount, int chunkCount, List<String> fingerprints)
extends Record
Ingest snapshot for one declared knowledge source.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechunkCountrecord component.Returns the value of thedeclaredFormatrecord component.Returns the value of thedetectedFormatsrecord component.intReturns the value of thedocumentCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintsrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.com.tnsai.annotations.Knowledge.Typetype()Returns the value of thetyperecord component.
-
Constructor Details
-
SourceSnapshot
public SourceSnapshot(String name, com.tnsai.annotations.Knowledge.Type type, String declaredFormat, List<String> detectedFormats, int documentCount, int chunkCount, List<String> fingerprints) Creates an instance of aSourceSnapshotrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentdeclaredFormat- the value for thedeclaredFormatrecord componentdetectedFormats- the value for thedetectedFormatsrecord componentdocumentCount- the value for thedocumentCountrecord componentchunkCount- the value for thechunkCountrecord componentfingerprints- the value for thefingerprintsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
public com.tnsai.annotations.Knowledge.Type type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
declaredFormat
Returns the value of thedeclaredFormatrecord component.- Returns:
- the value of the
declaredFormatrecord component
-
detectedFormats
Returns the value of thedetectedFormatsrecord component.- Returns:
- the value of the
detectedFormatsrecord component
-
documentCount
public int documentCount()Returns the value of thedocumentCountrecord component.- Returns:
- the value of the
documentCountrecord component
-
chunkCount
public int chunkCount()Returns the value of thechunkCountrecord component.- Returns:
- the value of the
chunkCountrecord component
-
fingerprints
Returns the value of thefingerprintsrecord component.- Returns:
- the value of the
fingerprintsrecord component
-