# TDZ C64 Knowledge Base - Environment Configuration
# ============================================================
# Data Storage
# ============================================================
# Directory for database and index storage
# Default: ~/.tdz-c64-knowledge
TDZ_DATA_DIR=C:\Users\YourName\.tdz-c64-knowledge
# ============================================================
# Search Configuration
# ============================================================
# Enable SQLite FTS5 full-text search (recommended for best performance)
# 0 = disabled, 1 = enabled
# Default: 0
USE_FTS5=1
# Enable semantic search with embeddings (conceptual/meaning-based search)
# 0 = disabled, 1 = enabled
# Default: 0
USE_SEMANTIC_SEARCH=1
# Sentence-transformers model for semantic search
# Default: all-MiniLM-L6-v2
# Other options: all-mpnet-base-v2, paraphrase-MiniLM-L6-v2
SEMANTIC_MODEL=all-MiniLM-L6-v2
# Enable BM25 search algorithm (fallback)
# 0 = disabled, 1 = enabled
# Default: 1
USE_BM25=1
# Enable NLTK query preprocessing (stopword removal, stemming)
# 0 = disabled, 1 = enabled
# Default: 1
USE_QUERY_PREPROCESSING=1
# ============================================================
# Security Configuration
# ============================================================
# Comma-separated list of allowed document directories (path traversal protection)
# Leave empty to allow all directories
# Example: C:\Users\YourName\Documents\C64Docs,C:\C64\PDFs
ALLOWED_DOCS_DIRS=
# ============================================================
# LLM Integration (for Smart Auto-Tagging)
# ============================================================
# LLM Provider: anthropic or openai
# Default: anthropic
LLM_PROVIDER=anthropic
# Anthropic API Key (for Claude)
# Get your key from: https://console.anthropic.com/
ANTHROPIC_API_KEY=sk-ant-api03-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# OpenAI API Key (for GPT models)
# Get your key from: https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# LLM Model to use
# Anthropic models: claude-3-haiku-20240307, claude-3-5-sonnet-20241022, claude-3-opus-20240229
# OpenAI models: gpt-3.5-turbo, gpt-4, gpt-4-turbo
# Default: claude-3-haiku-20240307 (fast and cost-effective)
LLM_MODEL=claude-3-haiku-20240307
# ============================================================
# Usage Notes
# ============================================================
# 1. Copy this file to .env and configure with your values
# 2. Never commit .env to version control (it's in .gitignore)
# 3. For MCP server configuration, add these variables to the "env" section
# in your Claude Desktop config.json or MCP settings
# 4. Restart the server after changing environment variables