Supported file formats and parsing capabilities
mainThe nlm-ingestor provides RAG-friendly parsers for several formats:
Uses a rule-based parser leveraging text coordinates (bounding boxes), graphics, and font data from a modified version of Apache Tika. Key features include:
- Extraction of sections, subsections, and their levels.
- Paragraph reconstruction (combining lines).
- Links between sections and paragraphs.
- Table extraction with section context.
- List and nested list detection.
- Joining content across page boundaries.
- Removal of repeating headers, footers, and watermarks.
- OCR support via
apply_ocr.
HTML
A layout-aware parser that creates blocks designed to improve RAG performance through higher quality chunking.
Text
A parser that identifies lists, tables, and headers purely from text content without relying on visual or font metadata.
DOCX, PPTX, and other Apache Tika formats
These files are processed by converting them to HTML via Tika and then passing the output through the HTML parser.