Files
AIRegulation-DocAnalysis/backend/app/services/embedding/__init__.py

19 lines
514 B
Python
Raw Normal View History

"""Initialize the app.services.embedding package."""
# Keep package boundaries explicit so backend imports stay predictable.
2026-05-14 15:07:34 +08:00
__all__ = ["RegulationChunker", "BGEM3Embedder"]
def __getattr__(name: str):
"""Handle getattr for this module."""
if name == "RegulationChunker":
from .text_chunker import RegulationChunker
return RegulationChunker
if name == "BGEM3Embedder":
from .bge_m3_embedder import BGEM3Embedder
return BGEM3Embedder
raise AttributeError(name)