# DocuWeave

Layout-aware document parser that converts PDFs into structured, hierarchical, LLM-ready JSON.

## Features

- Deterministic layout-based parsing
- Hierarchical section detection
- Token-aware smart chunking
- Embedding-ready JSON export
- RAG pipeline optimized

## Installation

```bash
pip install docuweave

from docuweave import parse

doc = parse("sample.pdf")

doc.to_chunks(max_tokens=500)
doc.save_json("output.json")

{
  "metadata": {...},
  "sections": [...],
  "chunks": [...]
}



We’ll improve this later.

---
