__init__.py 773 B

123456789101112131415161718192021222324252627282930313233
  1. """LightRAG Sidecar writer infrastructure.
  2. Spec: ``docs/LightRAGSidecarFormat-zh.md``.
  3. This package owns the *single executable specification* of the LightRAG Sidecar
  4. file format. Parser engines (native / mineru / docling) hand it an
  5. ``IRDoc`` (intermediate representation) describing the document; the writer
  6. emits the spec-compliant ``*.parsed/`` directory.
  7. See :func:`lightrag.sidecar.writer.write_sidecar` for the entry point.
  8. """
  9. from lightrag.sidecar.ir import (
  10. AssetSpec,
  11. IRBlock,
  12. IRDoc,
  13. IRDrawing,
  14. IREquation,
  15. IRPosition,
  16. IRTable,
  17. )
  18. from lightrag.sidecar.writer import write_sidecar
  19. __all__ = [
  20. "AssetSpec",
  21. "IRBlock",
  22. "IRDoc",
  23. "IRDrawing",
  24. "IREquation",
  25. "IRPosition",
  26. "IRTable",
  27. "write_sidecar",
  28. ]