Create __init__.py
Browse files- __init__.py +45 -0
__init__.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Savant Engine SDK
|
| 3 |
+
=================
|
| 4 |
+
|
| 5 |
+
Deterministic geometric governance layer for embedding models.
|
| 6 |
+
|
| 7 |
+
This package provides:
|
| 8 |
+
- SavantWrapper: Geometry-owned embedding stabilizer
|
| 9 |
+
- GeometryAudit: Audit logging and forensic traceability
|
| 10 |
+
- rrf_safe_similarity: Numerically safe similarity functions for RRF pipelines
|
| 11 |
+
|
| 12 |
+
Design principles:
|
| 13 |
+
- Silent Math (zero-bias under nominal conditions)
|
| 14 |
+
- Deterministic manifold control
|
| 15 |
+
- Auditability for safety-critical systems
|
| 16 |
+
"""
|
| 17 |
+
|
| 18 |
+
# Versioning
|
| 19 |
+
__version__ = "0.1.0"
|
| 20 |
+
|
| 21 |
+
# Core wrapper
|
| 22 |
+
from .savant_wrapper import SavantWrapper
|
| 23 |
+
|
| 24 |
+
# Geometry audit & logging
|
| 25 |
+
from .geometry_audit import GeometryAudit, AuditEvent
|
| 26 |
+
|
| 27 |
+
# RRF-safe similarity primitives
|
| 28 |
+
from .rrf_safe_similarity import (
|
| 29 |
+
safe_cosine_similarity,
|
| 30 |
+
safe_euclidean_distance,
|
| 31 |
+
rrf_score_safe,
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
__all__ = [
|
| 35 |
+
"__version__",
|
| 36 |
+
# Core
|
| 37 |
+
"SavantWrapper",
|
| 38 |
+
# Audit
|
| 39 |
+
"GeometryAudit",
|
| 40 |
+
"AuditEvent",
|
| 41 |
+
# RRF-safe math
|
| 42 |
+
"safe_cosine_similarity",
|
| 43 |
+
"safe_euclidean_distance",
|
| 44 |
+
"rrf_score_safe",
|
| 45 |
+
]
|