pub type ChunkSchema = Chunk;Aliased Type§
pub struct ChunkSchema {
pub data: String,
pub images: Vec<Uid>,
pub char_len: usize,
pub image_count: usize,
pub title: String,
pub summary: String,
pub source: ChunkSource,
pub uid: Uid,
pub build_info: ChunkBuildInfo,
pub timestamp: i64,
pub searchable: bool,
}Fields§
§data: String§images: Vec<Uid>§char_len: usize§image_count: usizeIt’s not always images.len(). If the same image appears twice,
it’s pushed only once to images but twice to image_count
title: String§summary: String§source: ChunkSource§uid: Uid§build_info: ChunkBuildInfo§timestamp: i64§searchable: boolChunks built from rag build are always searchable.
Some chunks (e.g. summary of the entire knowledge-base) have no
data and must be excluded in default RAG pipeline.