pub struct RagIngestRequest {
pub collection: String,
pub content: String,
pub title: Option<String>,
pub source: Option<String>,
pub tags: Vec<String>,
pub chunking_strategy: Option<String>,
}Expand description
Request to ingest a document into the RAG system.
Fields§
§collection: StringCollection name to ingest into.
content: StringThe text content to ingest.
title: Option<String>Optional document title.
source: Option<String>Optional source URL or path.
Optional tags for categorization.
chunking_strategy: Option<String>Chunking strategy to use.
Trait Implementations§
Source§impl Debug for RagIngestRequest
impl Debug for RagIngestRequest
Source§impl<'de> Deserialize<'de> for RagIngestRequest
impl<'de> Deserialize<'de> for RagIngestRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RagIngestRequest
impl RefUnwindSafe for RagIngestRequest
impl Send for RagIngestRequest
impl Sync for RagIngestRequest
impl Unpin for RagIngestRequest
impl UnsafeUnpin for RagIngestRequest
impl UnwindSafe for RagIngestRequest
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