pub struct TrieveKnowledgeBaseChunkPlan {
pub file_ids: Option<Vec<String>>,
pub websites: Option<Vec<String>>,
pub target_splits_per_chunk: Option<f64>,
pub split_delimiters: Option<Vec<String>>,
pub rebalance_chunks: Option<bool>,
}
Fields§
§file_ids: Option<Vec<String>>
These are the file ids that will be used to create the vector store. To upload files, use the POST /files
endpoint.
websites: Option<Vec<String>>
These are the websites that will be used to create the vector store.
target_splits_per_chunk: Option<f64>
This is an optional field which allows you to specify the number of splits you want per chunk. If not specified, the default 20 is used. However, you may want to use a different number.
split_delimiters: Option<Vec<String>>
This is an optional field which allows you to specify the delimiters to use when splitting the file before chunking the text. If not specified, the default [.!?\n] are used to split into sentences. However, you may want to use spaces or other delimiters.
rebalance_chunks: Option<bool>
This is an optional field which allows you to specify whether or not to rebalance the chunks created from the file. If not specified, the default true is used. If true, Trieve will evenly distribute remainder splits across chunks such that 66 splits with a target_splits_per_chunk of 20 will result in 3 chunks with 22 splits each.
Implementations§
Source§impl TrieveKnowledgeBaseChunkPlan
impl TrieveKnowledgeBaseChunkPlan
pub fn new() -> TrieveKnowledgeBaseChunkPlan
Trait Implementations§
Source§impl Clone for TrieveKnowledgeBaseChunkPlan
impl Clone for TrieveKnowledgeBaseChunkPlan
Source§fn clone(&self) -> TrieveKnowledgeBaseChunkPlan
fn clone(&self) -> TrieveKnowledgeBaseChunkPlan
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TrieveKnowledgeBaseChunkPlan
impl Debug for TrieveKnowledgeBaseChunkPlan
Source§impl Default for TrieveKnowledgeBaseChunkPlan
impl Default for TrieveKnowledgeBaseChunkPlan
Source§fn default() -> TrieveKnowledgeBaseChunkPlan
fn default() -> TrieveKnowledgeBaseChunkPlan
Source§impl<'de> Deserialize<'de> for TrieveKnowledgeBaseChunkPlan
impl<'de> Deserialize<'de> for TrieveKnowledgeBaseChunkPlan
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>,
Source§impl PartialEq for TrieveKnowledgeBaseChunkPlan
impl PartialEq for TrieveKnowledgeBaseChunkPlan
Source§fn eq(&self, other: &TrieveKnowledgeBaseChunkPlan) -> bool
fn eq(&self, other: &TrieveKnowledgeBaseChunkPlan) -> bool
self
and other
values to be equal, and is used by ==
.