AndrewBot Backend
A secure proxy between your homepage and DeepSeek OpenAI-compatible API.
3-Step Setup
- Create local env file
cd chatbot_backend
cp .env.template.local .env
- Edit
.envand fill your key
DEEPSEEK_API_KEY=
DEEPSEEK_BASE_URL=https://api.deepseek.com
DEEPSEEK_MODEL=deepseek-v4-flash
PORT=8787
- Run server
set -a; source .env; set +a
node server.mjs
Then set site config in _config.yml:
chat_api_base_url: "http://127.0.0.1:8787"
Endpoints
GET /healthPOST /chat
Example request body:
{ "question": "What is Andrew's research focus?" }
Security
- Keep
DEEPSEEK_API_KEYonly in local.envor deployment env vars. - Never place API keys in frontend code.
Knowledge Source
The backend loads all .md files under knowledge/.
You can refresh PDF extracted knowledge by running:
python3 scripts/extract_bot_memory.py