forked from Dipraise1/Engram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
62 lines (52 loc) · 2.07 KB
/
Copy path.env.example
File metadata and controls
62 lines (52 loc) · 2.07 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Bittensor
WALLET_NAME=default
WALLET_HOTKEY=default
SUBTENSOR_NETWORK=test # test | finney | local
NETUID=450 # Engram subnet UID
# Embedding Model
USE_LOCAL_EMBEDDER=true # true = sentence-transformers (no API key needed)
LOCAL_EMBEDDING_MODEL=all-MiniLM-L6-v2
EMBEDDING_DIM=384
# To use OpenAI instead: USE_LOCAL_EMBEDDER=false + set OPENAI_API_KEY
# OPENAI_API_KEY=sk-...
# LOCAL_EMBEDDING_MODEL=text-embedding-3-small
# EMBEDDING_DIM=1536
# Vector Store
VECTOR_STORE_BACKEND=faiss # faiss | qdrant
FAISS_INDEX_PATH=./data/engram.index
# Qdrant (production):
# VECTOR_STORE_BACKEND=qdrant
# QDRANT_HOST=localhost
# QDRANT_PORT=6333
# QDRANT_COLLECTION=engram
# Miner
MINER_PORT=8091
EXTERNAL_IP=YOUR_PUBLIC_IP # your server's public IP (registered on-chain)
MAX_VECTORS_PER_NODE=5000000
# Validator
GROUND_TRUTH_PATH=./data/ground_truth.jsonl
SCORING_ALPHA=0.50 # recall@K weight
SCORING_BETA=0.30 # latency weight
SCORING_GAMMA=0.20 # storage proof weight
CHALLENGE_INTERVAL=300 # seconds between storage challenges
# Miner fallback for local dev (used when metagraph axon.ip=0.0.0.0)
MINER_IP=127.0.0.1
# Anti-spam
MIN_INGEST_STAKE_TAO=0.001 # minimum TAO stake required to ingest
# Security — hotkey signature verification
# false = warn on unsigned requests (backward compatible, default)
# true = reject requests without a valid sr25519 signature
REQUIRE_HOTKEY_SIG=false
# Optional: comma-separated SS58 hotkeys allowed to call this miner
# Leave empty to allow all registered hotkeys (subject to stake check)
# ALLOWED_VALIDATOR_HOTKEYS=5F...,5G...
# Security — metagraph registration check
# false = warn on unregistered hotkeys (default)
# true = reject requests from hotkeys not registered on subnet 450
REQUIRE_METAGRAPH_REG=false
# Security — validator → miner transport
# Set to true once your miners have TLS (nginx) configured
MINER_USE_HTTPS=false
# Set to false only for self-signed certs during local dev (never in production)
VALIDATOR_TLS_VERIFY=true
LOG_LEVEL=INFO