Spaces:
Sleeping
Sleeping
File size: 1,247 Bytes
ea93121 | 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 27 28 29 30 31 32 33 34 | # Technical Guide
## Architecture
- API Gateway orchestrates Detection, Embedding, and Vector Search services.
- Detection and Embedding services load local ONNX models when available.
- Vector Search maintains in-memory cosine index with durable JSON snapshots.
- Gateway stores identity metadata in local SQLite DB for air-gapped persistence.
## Offline Runtime Modes
1. **Model Runtime Mode**: ONNX runtime active with local model files.
2. **Deterministic Fallback Mode**: Service stays functional for integration and validation if runtime/model binaries are absent.
## Dependency Management in Air-Gapped Environments
- Build offline wheelhouse on an internet-enabled machine:
- `./scripts/build_wheelhouse_online.sh`
- Transfer `vendor/wheels/` into the air-gapped environment.
- Install dependencies without internet:
- `./scripts/install_deps_offline.sh`
## Security
- JWT authentication for protected API endpoints.
- AES-256-GCM encryption helpers for sensitive payload workflows.
- TLS termination can be added at reverse proxy/ingress layer.
## Storage
- Metadata: `artifacts/metadata/identities.db`
- Vector index: `artifacts/vector_index/index.json`
- Optional enterprise stores: PostgreSQL, MinIO, external vector DB.
|