File size: 678 Bytes
d17ca40
 
 
 
 
 
 
 
b6beb2d
d17ca40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""Swappable extraction backends behind the ``ExtractionBackend`` interface.

The public interface and factory are re-exported here for convenience. Concrete
adapters (the stub, and later Gemini/Ollama) are intentionally *not* imported at
package load: they are built lazily by the factory so selecting one backend
never imports another's dependencies.
"""

from docfield.backends.base import (
    BackendBuilder,
    BackendResult,
    DocumentPayload,
    ExtractionBackend,
    available_backends,
    create_backend,
)

__all__ = [
    "BackendBuilder",
    "BackendResult",
    "DocumentPayload",
    "ExtractionBackend",
    "available_backends",
    "create_backend",
]