pub struct VectorStoreStaticFileChunkingStrategy {
pub chunk_overlap_tokens: Option<u64>,
pub max_chunk_size_tokens: Option<u64>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示静态分块策略配置。
Fields§
§chunk_overlap_tokens: Option<u64>chunk 重叠 token 数。
max_chunk_size_tokens: Option<u64>每个 chunk 的最大 token 数。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for VectorStoreStaticFileChunkingStrategy
impl Clone for VectorStoreStaticFileChunkingStrategy
Source§fn clone(&self) -> VectorStoreStaticFileChunkingStrategy
fn clone(&self) -> VectorStoreStaticFileChunkingStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for VectorStoreStaticFileChunkingStrategy
impl Default for VectorStoreStaticFileChunkingStrategy
Source§fn default() -> VectorStoreStaticFileChunkingStrategy
fn default() -> VectorStoreStaticFileChunkingStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VectorStoreStaticFileChunkingStrategy
impl<'de> Deserialize<'de> for VectorStoreStaticFileChunkingStrategy
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 VectorStoreStaticFileChunkingStrategy
impl RefUnwindSafe for VectorStoreStaticFileChunkingStrategy
impl Send for VectorStoreStaticFileChunkingStrategy
impl Sync for VectorStoreStaticFileChunkingStrategy
impl Unpin for VectorStoreStaticFileChunkingStrategy
impl UnsafeUnpin for VectorStoreStaticFileChunkingStrategy
impl UnwindSafe for VectorStoreStaticFileChunkingStrategy
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