ingestion.file_ingestor¶
chunktuner.ingestion.file_ingestor
¶
Load documents from filesystem paths.
FileIngestor
¶
Load Document records from filesystem paths (single file or directory tree).
strip_patterns: regexes removed (MULTILINE) from every document at ingest time,
so Document.content is already the stripped text that chunk offsets refer to.
Source code in src/chunktuner/ingestion/file_ingestor.py
ingest_path
¶
Ingest a single file or expand a directory via ingest_dir.
Source code in src/chunktuner/ingestion/file_ingestor.py
ingest_dir
¶
Walk path with glob and ingest every file with a supported extension.