Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 28s
CI / test-go-edu-search (push) Successful in 28s
CI / test-python-klausur (push) Failing after 2m22s
CI / test-python-agent-core (push) Successful in 21s
CI / test-nodejs-website (push) Successful in 23s
korrektur/ zeugnis/ admin/ compliance/ worksheet/ training/ metrics/ 52 shims, relative imports, RAG untouched. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
927 B
Python
37 lines
927 B
Python
"""
|
|
PostgreSQL Metrics Database Service — Barrel Re-export
|
|
|
|
Split into:
|
|
- metrics_db_core.py — Pool, feedback, metrics, relevance
|
|
- metrics_db_schema.py — Table initialization (DDL)
|
|
- metrics_db_zeugnis.py — Zeugnis source/document/stats operations
|
|
|
|
All public names are re-exported here for backward compatibility.
|
|
"""
|
|
|
|
# Schema: table initialization
|
|
from .db_schema import init_metrics_tables # noqa: F401
|
|
|
|
# Core: pool, feedback, search logs, metrics, relevance
|
|
from .db_core import ( # noqa: F401
|
|
DATABASE_URL,
|
|
get_pool,
|
|
store_feedback,
|
|
log_search,
|
|
log_upload,
|
|
calculate_metrics,
|
|
get_recent_feedback,
|
|
get_upload_history,
|
|
store_relevance_judgment,
|
|
calculate_precision_recall,
|
|
)
|
|
|
|
# Zeugnis operations
|
|
from .db_zeugnis import ( # noqa: F401
|
|
get_zeugnis_sources,
|
|
upsert_zeugnis_source,
|
|
get_zeugnis_documents,
|
|
get_zeugnis_stats,
|
|
log_zeugnis_event,
|
|
)
|