feat: add Docker Compose, environment template and README
This commit is contained in:
1 parent
7f4d4bde66
commit
b25bf8ff7d
4 files changed
+412
No files matched your search
@@ -0,0 +1,63 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Pastor Online — configuração
|
||||
# Copie este arquivo para `.env` e ajuste os valores:
|
||||
# cp .env.example .env
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Porta do frontend no host (http://localhost:8080)
|
||||
FRONTEND_PORT=8080
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Provedor de LLM: ollama | openai | groq | anthropic
|
||||
# ---------------------------------------------------------------------------
|
||||
LLM_PROVIDER=ollama
|
||||
|
||||
# --- Ollama (local, requer o profile "local": docker compose --profile local up) ---
|
||||
OLLAMA_BASE_URL=http://ollama:11434
|
||||
OLLAMA_MODEL=qwen2.5:1.5b
|
||||
|
||||
# --- OpenAI ---
|
||||
OPENAI_BASE_URL=https://api.openai.com/v1
|
||||
OPENAI_MODEL=gpt-4o-mini
|
||||
OPENAI_API_KEY=
|
||||
|
||||
# --- Groq (compatível com a API da OpenAI) ---
|
||||
GROQ_BASE_URL=https://api.groq.com/openai/v1
|
||||
GROQ_MODEL=llama-3.3-70b-versatile
|
||||
GROQ_API_KEY=
|
||||
|
||||
# --- Anthropic ---
|
||||
ANTHROPIC_BASE_URL=https://api.anthropic.com
|
||||
ANTHROPIC_MODEL=claude-sonnet-4-5
|
||||
ANTHROPIC_API_KEY=
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Embeddings (CPU)
|
||||
# paraphrase-multilingual-MiniLM-L12-v2: multilíngue, ~470 MB
|
||||
# all-MiniLM-L6-v2: menor e mais rápido, ~90 MB, apenas inglês
|
||||
# ---------------------------------------------------------------------------
|
||||
EMBEDDING_MODEL=paraphrase-multilingual-MiniLM-L12-v2
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Busca
|
||||
# ---------------------------------------------------------------------------
|
||||
TOP_K=6
|
||||
MIN_SIMILARITY=0.35
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# OCR (necessário quando o PDF não tem camada textual utilizável)
|
||||
# ---------------------------------------------------------------------------
|
||||
OCR_DPI=200
|
||||
OCR_LANGUAGE=por+eng
|
||||
OCR_TIMEOUT=120
|
||||
OCR_WORKERS=4
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# API
|
||||
# CORS_ORIGINS=http://localhost:8080,http://127.0.0.1:8080
|
||||
# REINDEX_TOKEN=troque-por-um-segredo
|
||||
# AUTO_INDEX=true
|
||||
# ---------------------------------------------------------------------------
|
||||
CORS_ORIGINS=http://localhost:8080,http://127.0.0.1:8080
|
||||
REINDEX_TOKEN=
|
||||
AUTO_INDEX=true
|
||||
Reference in new issue
Block a user