- Create parser-service/ with full structure - Add FastAPI app with endpoints (/parse, /parse_qa, /parse_markdown, /parse_chunks) - Add Pydantic schemas (ParsedDocument, ParsedBlock, ParsedChunk, etc.) - Add runtime module with model_loader and inference (with dummy parser) - Add configuration, Dockerfile, requirements.txt - Update TODO-PARSER-RAG.md with completed tasks - Ready for dots.ocr model integration
16 lines
310 B
Python
16 lines
310 B
Python
"""
|
|
PARSER Runtime module
|
|
Handles model loading and inference for dots.ocr
|
|
"""
|
|
|
|
from app.runtime.inference import parse_document, dummy_parse_document
|
|
from app.runtime.model_loader import load_model, get_model
|
|
|
|
__all__ = [
|
|
"parse_document",
|
|
"dummy_parse_document",
|
|
"load_model",
|
|
"get_model"
|
|
]
|
|
|