qfa.adapters#
Driven adapter implementations.
Adapters in this package implement driven ports declared in
qfa.domain.ports and are the only modules in the codebase that
import third-party infrastructure libraries (LLM SDKs, anonymisation
engines, etc.). The application service layer (qfa.services) and
domain (qfa.domain) depend on the ports, never on these
implementations directly.
Submodules
Database engine, session factory, SQL schema, and auth adapter. |
|
Self-hosted ONNX embedding adapter (multilingual, dense-only). |
|
Environment-based authentication lookup adapter. |
|
LLM client adapter using LiteLLM for unified provider access. |
|
Presidio-based anonymisation adapter. |
|
LLM port decorator that records every call attempt for usage tracking. |
|
SQLAlchemy-backed usage repository. |