Record Class SourceLoader.LoadedDocument
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.SourceLoader.LoadedDocument
- Record Components:
id- stable identifier (used as vector-store entry id; must be unique within a Role's binding)content- the textual content to embed + retrieve againstorigin- human-readable label for retrieval-time attribution (file path, URL, …)
- Enclosing interface:
SourceLoader
public static record SourceLoader.LoadedDocument(String id, String content, String origin)
extends Record
One document loaded by a
SourceLoader — the unit ingested
into the vector store.-
Constructor Summary
ConstructorsConstructorDescriptionLoadedDocument(String id, String content, String origin) Creates an instance of aLoadedDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord 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.origin()Returns the value of theoriginrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-