SemanticRetrieverChunk

@Serializable
data class SemanticRetrieverChunk(val source: String, val chunk: String)

Represents a chunk of data retrieved by a semantic retriever, containing both the source from which the chunk was extracted and the chunk content itself.

Constructors

Link copied to clipboard
constructor(source: String, chunk: String)

Properties

Link copied to clipboard
val chunk: String

The actual content of the chunk extracted from the source. This is typically a subset of the content, selected based on semantic relevance or other criteria used by the retriever.

Link copied to clipboard
val source: String

The origin or source identifier from which this chunk of data was retrieved. This could be a document ID, URL, or any other form of source identification.