secondbrain/.env.example
Atlas 84afdc1f56 SecondBrain v0.1 — local-first, privacy-scrubbing RAG memory
Generalized + redeployable: config via env, local Ollama embeddings, single
portable sqlite-vec db, hybrid dense+FTS5 recall, mandatory credential scrub.
2026-07-01 21:25:02 +02:00

22 lines
813 B
Text

# SecondBrain configuration — copy to `.env` and adjust. All values optional.
# `.env` is git-ignored; never commit real values.
# Where the single portable database lives.
BRAIN_HOME=~/.secondbrain
# BRAIN_DB=/custom/path/brain.db # overrides BRAIN_HOME for the db file
# Local embedding backend (Ollama). Point this at any reachable Ollama:
# local: http://localhost:11434
# a GPU box on your LAN / tailnet: http://100.x.y.z:11434
OLLAMA_URL=http://localhost:11434
EMBED_MODEL=nomic-embed-text
EMBED_DIM=768
# Privacy: 1 = keep emails/IPs/hostnames (operational knowledge),
# 0 = also strip emails. Secrets are ALWAYS scrubbed regardless.
SCRUB_KEEP_PII=1
# Chunking (advanced; defaults are sensible)
# BRAIN_MAX_CHARS=1600
# BRAIN_MIN_CHARS=40
# BRAIN_MAX_FILE_BYTES=400000