Files
tobayahandClaude Opus 5 77bc7e933e docs: model produktu Bielik 11B v3.0 w CLAUDE.md i ADR-002 (Z-11b)
CLAUDE.md, profile i routing w ADR-002, .env.example i docstring gatewaya
wskazują Bielik 11B v3.0 (bielik-11b-v3.0-instruct w LM Studio). ADR-002
dostaje datowaną adnotację: moduł analizy woła LM Studio własnym
transportem, a tag Ollama w gatewayu zostaje do powrotu modułu na gateway.
Enum modelu i instalatory Ollamy bez zmian.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 04:51:01 +02:00

69 lines
3.1 KiB
Bash

# Compass — env template. Copy to .env.local and populate.
# NEVER commit .env.local — see CLAUDE.md security invariant #9.
# ---------- LLM provider selection (BYOK + local LLM hybrid, ADR-002) ----------
# Pick ONE curated profile (preferred) OR set provider/endpoint/model directly.
# Default deployment: local-data-sovereign (on-prem moat #4 jako default).
#
# Profiles:
# cloud-cheap — anthropic, Sonnet 4.6 (typical) + Haiku 4.5 (bulk)
# cloud-premium — anthropic, Opus 4.7 (all tasks)
# local-data-sovereign — ollama, Bielik 11B v3.0 (PL) + Llama 3.3 70B (fallback)
# hybrid — ollama primary; promote to cloud on critical/long-ctx
# custom — BYOK, set LLM_DEFAULT_MODEL + LLM_ENDPOINT yourself
LLM_PROFILE=local-data-sovereign
LLM_PROVIDER=ollama # anthropic | ollama | azure | openai | mock
LLM_ENDPOINT=http://localhost:11434 # Ollama base URL; blank for cloud autodetect
LLM_API_KEY=ollama # Ollama uses dummy 'ollama' string; cloud: real key
# LLM_DEFAULT_MODEL= # BYOK override (exact LiteLLM model string)
# ---------- Cloud provider keys (only if LLM_PROVIDER in {anthropic, openai, azure}) ----------
ANTHROPIC_API_KEY=sk-ant-...
VOYAGE_API_KEY=pa-...
GEMINI_API_KEY=AIza...
# Optional: OPENAI_API_KEY=sk-... (only if multi-provider fallback chain enabled)
# ---------- Local LLM (only if LLM_PROVIDER=ollama) ----------
OLLAMA_API_BASE=http://localhost:11434 # set automatically by gateway from LLM_ENDPOINT
# Run scripts/setup_local_llm.sh to install Ollama + pull Bielik weights
# ---------- Supabase (auth + DB + storage) ----------
SUPABASE_URL=https://<project-ref>.supabase.co
SUPABASE_ANON_KEY=eyJ...
# Service role: ADMIN operations only, never used in business-logic handlers
# (see CLAUDE.md security invariant #1)
SUPABASE_SERVICE_ROLE_KEY=eyJ...
# ---------- Database (direct connection for migrations + Celery beat schedules) ----------
DATABASE_URL=postgresql://postgres:<password>@db.<project-ref>.supabase.co:5432/postgres
# ---------- Redis (Celery broker + SSE pub/sub) ----------
REDIS_URL=redis://localhost:6379/0
# ---------- Qdrant (vector store, multi-tenant payload filtering) ----------
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=
# ---------- Langfuse (LLM observability, per ADR-001 M8) ----------
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=http://localhost:3001
# Set to "false" in pytest unit tests to disable Langfuse roundtrip
LANGFUSE_ENABLED=true
# ---------- FastAPI app ----------
APP_ENV=development # development | staging | production
APP_LOG_LEVEL=INFO
APP_PORT=8000
APP_CORS_ORIGINS=http://localhost:8080
# ---------- Frontend (apps/web — Vite exposes only VITE_*) ----------
VITE_SUPABASE_URL=https://<project-ref>.supabase.co
VITE_SUPABASE_ANON_KEY=eyJ...
VITE_API_BASE_URL=http://localhost:8000
# ---------- Optional, Sprint 3+ ----------
# AUTHENTIK_URL= # self-hosted SSO (replaces Supabase Auth pre enterprise)
# HETZNER_STORAGE_BOX_ACCESS_KEY= # S3-compatible file storage on self-hosted phase
# HETZNER_STORAGE_BOX_SECRET=