oppo-node / titan /constants.py
DJ-Goanna-Coding's picture
Deploy from GitHub Actions
c87f72b verified
raw
history blame contribute delete
627 Bytes
"""Shared numeric constants for the titan package."""
# Seed used to partition the FAISS vector store. Kept as a module-level
# constant so every process that initialises the store picks the same
# partitioning scheme, making indexes reproducible across runs.
FAISS_PARTITION_SEED: int = 9293
# Maximum accepted size (in bytes) for a single incoming IoT packet. Packets
# larger than this are treated as malformed by the signal noise filter.
MAX_PACKET_BYTES: int = 65_535
# Default HMAC algorithm used for the hardware handshake. SHA-256 is a
# conservative, widely-supported choice.
DEFAULT_HMAC_ALGORITHM: str = "sha256"