Skip to main content

Configuration

All configuration is environment-driven.

Database​

VariableDefaultNotes
SURREAL_MODEembeddedembedded or server
SURREAL_PATH./data/memory.dbEmbedded RocksDB path
SURREAL_ENDPOINT—e.g. ws://127.0.0.1:8000
SURREAL_USERNAME / SURREAL_PASSWORD—Server mode credentials
SURREAL_NAMESPACE / SURREAL_DATABASE—Target namespace/database
SURREAL_EMBEDDED_MAX_INFLIGHT16Matches RocksDB stripe count
SURREAL_QUERY_TIMEOUT_MS10000Per-query ceiling

Retry​

VariableDefault
SURREAL_MAX_CONNECT_RETRIES10
SURREAL_MAX_OPERATION_RETRIES3
SURREAL_BASE_RETRY_DELAY_MS100
SURREAL_MAX_RETRY_DELAY_MS5000
SURREAL_RETRY_JITTER_FACTOR0.25

Embeddings​

VariableDefaultNotes
EMBEDDING_PROVIDERlocallocal, openai, cohere, fast
LOCAL_EMBEDDING_MODELBAAI/bge-small-en-v1.5384 dimensions
MODEL_CACHE_DIRplatform cacheHF home; hub is appended
MODEL_DOWNLOAD_TIMEOUT_SECS600hf-hub ships no timeout of its own
EMBEDDING_WARMUPtrueSet false for purely lazy loading

Executor​

VariableDefaultCovers
SURREAL_EXECUTOR_STARTUP_MS300000spawn → readiness
SURREAL_EXECUTOR_WATCHDOG_MS30000per-request progress

Server​

VariableDefault
API_PORT3001
MCP_STDIOfalse
RUST_LOGinfo