-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
132 lines (120 loc) · 5.66 KB
/
Copy path.env.example
File metadata and controls
132 lines (120 loc) · 5.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# PaperFlow environment template.
# Copy this file to .env and fill in the values you need. Anything not set
# falls back to per-provider defaults; with no .env at all, PaperFlow runs
# in deterministic-mock mode so the pipeline is end-to-end testable offline.
# ---------------------------------------------------------------------------
# Provider selection (the only knobs most users will touch)
# ---------------------------------------------------------------------------
# LLM provider: openai | anthropic | ollama | mock
PAPERFLOW_LLM_PROVIDER=openai
PAPERFLOW_LLM_MODEL=
# Embedding provider: openai | sentence_transformers | ollama | hash.
# The template defaults to hash so first-run demos never download local model
# weights. For normal recommendation quality, set PAPERFLOW_EMBED_PROVIDER to
# openai (API embedding) or sentence_transformers (local embedding).
# If using sentence_transformers with BAAI/bge-m3, expect an initial download
# of about 2.3GB.
PAPERFLOW_EMBED_PROVIDER=hash
PAPERFLOW_EMBED_MODEL=
PAPERFLOW_EMBED_DIMENSIONS=
# ---------------------------------------------------------------------------
# OpenAI-compatible API (used when PAPERFLOW_LLM_PROVIDER=openai or
# PAPERFLOW_EMBED_PROVIDER=openai). Any OpenAI-compatible gateway works
# (OpenAI, DashScope, Azure, vLLM, etc.) by setting OPENAI_BASE_URL.
# ---------------------------------------------------------------------------
OPENAI_API_KEY=
OPENAI_BASE_URL=
OPENAI_API_TIMEOUT=60
# ---------------------------------------------------------------------------
# Anthropic API (used when PAPERFLOW_LLM_PROVIDER=anthropic).
# ---------------------------------------------------------------------------
ANTHROPIC_API_KEY=
ANTHROPIC_BASE_URL=
ANTHROPIC_API_TIMEOUT=60
# ---------------------------------------------------------------------------
# Ollama (used when PAPERFLOW_LLM_PROVIDER=ollama or
# PAPERFLOW_EMBED_PROVIDER=ollama). Set OLLAMA_BASE_URL if Ollama is on a
# different host or port.
# ---------------------------------------------------------------------------
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_API_TIMEOUT=120
# ---------------------------------------------------------------------------
# Optional upstream data sources
# ---------------------------------------------------------------------------
IEEE_API_KEY=
OPENREVIEW_USERNAME=
OPENREVIEW_PASSWORD=
OPENREVIEW_TOKEN=
# ---------------------------------------------------------------------------
# Runtime storage and logging
# ---------------------------------------------------------------------------
DATABASE_PATH=./data/paperflow.db
LOG_LEVEL=INFO
PAPERFLOW_SUPPRESS_HTTP_RETRY_WARNINGS=true
PAPERFLOW_ALLOW_MOCK_PAPERS=false
# Local export roots. Set these four to an upper-level folder. PaperFlow will
# create <root>/<role-name>/{pdf,reading_reports,monthly_reports,topic_index}/.
# PDFs and reading reports are additionally grouped by paper month.
PAPERFLOW_PDF_DIR=./data/exports
PAPERFLOW_READING_REPORTS_DIR=./data/exports
PAPERFLOW_MONTHLY_REPORT_DIR=./data/exports
PAPERFLOW_TOPIC_INDEX_DIR=./data/exports
PAPERFLOW_STORAGE_ROLE_SUBDIR=true
PAPERFLOW_STORAGE_CATEGORY_SUBDIR=true
PAPERFLOW_STORAGE_MONTHLY_SUBDIR=true
PAPERFLOW_WRITE_FEISHU=false
# ---------------------------------------------------------------------------
# Local PaperFlow Wiki
# ---------------------------------------------------------------------------
# Keep runtime events, reading reports, feedback, and drift snapshots mirrored
# into SQLite wiki tables plus Markdown files under PAPERFLOW_WIKI_DIR.
PAPERFLOW_WIKI_INGEST=true
PAPERFLOW_WIKI_DIR=./data/wiki
# ---------------------------------------------------------------------------
# Interest-drift defaults (rarely touched)
# ---------------------------------------------------------------------------
PAPERFLOW_DRIFT_LONG_WINDOW_SIZE=30
PAPERFLOW_DRIFT_LONG_WINDOW_DAYS=60
PAPERFLOW_DRIFT_SHORT_WINDOW_SIZE=8
PAPERFLOW_DRIFT_SHORT_WINDOW_DAYS=14
PAPERFLOW_DRIFT_THRESHOLD=0.35
PAPERFLOW_DRIFT_RECOVER_THRESHOLD=0.20
PAPERFLOW_DRIFT_ALPHA_BASE=0.08
PAPERFLOW_DRIFT_ALPHA_MAX=0.35
PAPERFLOW_TOPIC_DECAY=0.01
PAPERFLOW_AUTHOR_DECAY=0.005
PAPERFLOW_INSTITUTION_DECAY=0.005
# ---------------------------------------------------------------------------
# Feishu / Lark integration (optional).
# Fill this block only if you want Feishu document export or the
# webhook/ngrok bot deployment. Local CLI/GUI users who do not use Feishu can
# leave it empty.
# ---------------------------------------------------------------------------
# FEISHU_APP_ID, FEISHU_APP_SECRET:
# open.feishu.cn/app -> your app -> Credentials & Basic Info
# FEISHU_VERIFICATION_TOKEN:
# open.feishu.cn/app -> your app -> Development Config -> Events & Callbacks
# -> Event Configuration tab -> top "Verification Token" field
# FEISHU_USER_ID (your personal open_id, NOT user_id):
# easiest: start the webhook, DM the bot once, copy `sender open_id=ou_...`
# from the local webhook terminal log. It begins with `ou_`.
# FEISHU_CLI_CMD:
# optional path to lark-cli / lark-cli.cmd, used for Feishu doc creation.
FEISHU_APP_ID=
FEISHU_APP_SECRET=
FEISHU_BOT_NAME=PaperFlow Bot
FEISHU_USER_ID=
FEISHU_CLI_CMD=
FEISHU_IM_IDENTITY=bot
FEISHU_VERIFICATION_TOKEN=
# ngrok tunnel (used by deployments/feishu/webhook-server/start-with-ngrok.py).
# Sign up : https://dashboard.ngrok.com/signup
# Authtoken : https://dashboard.ngrok.com/get-started/your-authtoken
# one-time setup -> ngrok config add-authtoken <token>
# Reserve a free static domain (URL never rotates, configure Feishu only once):
# https://dashboard.ngrok.com/domains
# Then paste the reserved domain into NGROK_DOMAIN below, e.g.
# NGROK_DOMAIN=paperflow-bot.ngrok-free.app
NGROK_AUTHTOKEN=
NGROK_PATH=
NGROK_DOMAIN=