feat: create PARSER service skeleton with FastAPI
- 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
This commit is contained in:
15
services/parser-service/app/runtime/__init__.py
Normal file
15
services/parser-service/app/runtime/__init__.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""
|
||||
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"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user