#[non_exhaustive]pub struct RagChunk {
pub text: String,
pub page_span: Option<PageSpan>,
/* private fields */
}Available on crate features
prediction-service or vertex-rag-service only.Expand description
A RagChunk includes the content of a chunk of a RagFile, and associated metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringThe content of the chunk.
page_span: Option<PageSpan>If populated, represents where the chunk starts and ends in the document.
Implementations§
Trait Implementations§
impl StructuralPartialEq for RagChunk
Auto Trait Implementations§
impl Freeze for RagChunk
impl RefUnwindSafe for RagChunk
impl Send for RagChunk
impl Sync for RagChunk
impl Unpin for RagChunk
impl UnwindSafe for RagChunk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more