快速开始
本页用于在本地启动 Resume Screening Agent,并跑通一条最小业务链路。
环境要求
- Node.js 18+
- Python 3.11+
- PostgreSQL 15+
- pgvector 扩展
- DashScope API Key
如果只想快速复现生产环境,可以优先使用 Docker Compose。
克隆项目
bash
git clone https://github.com/missrosery/resume-screening-agent.git
cd resume-screening-agent配置后端环境变量
复制示例文件:
bash
cp backend/.env.example backend/.env核心变量如下:
ini
DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/resume_screener
SYNC_DATABASE_URL=postgresql+psycopg://user:password@localhost:5432/resume_screener
DASHSCOPE_API_KEY=your_dashscope_api_key
DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
LLM_MODEL=qwen-plus
EMBEDDING_MODEL=text-embedding-v4
UPLOAD_DIR=./uploads
CORS_ORIGINS=http://localhost:3000
VECTOR_COLLECTION_NAME=resume_documents
VECTOR_RECALL_K=15
RERANK_TOP_N=5启动后端
bash
cd backend
pip install -r requirements.txt
uvicorn main:app --reload --host 0.0.0.0 --port 8000后端启动后访问:
bash
curl http://localhost:8000/health期望返回:
json
{"status":"ok"}启动前端
bash
cd frontend
npm install
npm run dev打开:
text
http://localhost:3000验证主流程
- 创建岗位。
- 上传 PDF 或 DOCX 简历。
- 等待简历状态从
parsing变为parsed。 - 输入筛选条件并点击筛选。
- 选择候选人进行多人对比。
- 选择候选人生成面试题。
- 进入 Agent 对话页面,尝试自然语言搜索或对比。
生产构建检查
本地发布前建议跑一次生产构建:
bash
cd frontend
npm run build这能提前发现 TypeScript、Next.js 构建和页面路由问题。