updated
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ fn find_pdf_files(input_dir: &Path) -> Result<Vec<PathBuf>> {
|
||||
const MAX_CHUNK_CHARS: usize = 10000;
|
||||
|
||||
/// Split large PDF text into manageable chunks while preserving whole paragraphs.
|
||||
fn split_text_into_chunks(text: &str, max_chars: usize) -> Vec<String> {
|
||||
pub fn split_text_into_chunks(text: &str, max_chars: usize) -> Vec<String> {
|
||||
let mut chunks = Vec::new();
|
||||
let mut current = String::new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user