修改技能流程
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
# 2026-02-11 会话记录
|
||||
|
||||
## 个人设置
|
||||
- 用户明确要求:以后所有交流使用中文
|
||||
- 已更新 USER.md 记录此偏好
|
||||
|
||||
## KB Workflow 技能环境配置
|
||||
|
||||
### 背景
|
||||
用户需要处理"添加到知识库 + 链接"的工作流,特别是 B站视频内容。
|
||||
|
||||
### 完成的工作
|
||||
1. **检查了 kb-workflow 技能结构**
|
||||
- 主流程: kb-workflow/kb_workflow.py
|
||||
- 链接解析: kb-link-parser/link-parser.py
|
||||
- B站元数据: kb-bilibili-metadata/bilibili_metadata.py
|
||||
- B站内容下载: kb-bilibili-content/bilibili_content.py
|
||||
- OCR处理: kb-ocr-processor/ocr_processor.py
|
||||
- 深度分析: kb-deep-analyzer/deep_analyzer.py
|
||||
|
||||
2. **创建了一键环境检查脚本**
|
||||
- 文件: `skills/install-kb-workflow.sh`
|
||||
- 功能: 自动检查系统依赖和 Python 包
|
||||
- 生成缺失依赖的安装命令
|
||||
|
||||
3. **创建了知识库目录结构**
|
||||
- 路径: `~/work/knowledge-base/`
|
||||
- 包含: archive/, pending/, metadata/, content/{downloads,subtitles}/, analyzed/
|
||||
|
||||
### 环境依赖清单
|
||||
**系统依赖:**
|
||||
- python3 (已安装 3.12.3)
|
||||
- python3-pip (缺失)
|
||||
- ffmpeg (缺失)
|
||||
- tesseract-ocr + 中文/英文语言包 (缺失)
|
||||
- git (已安装 2.43.0)
|
||||
|
||||
**Python 包:**
|
||||
- httpx, aiohttp, requests (部分已安装)
|
||||
- playwright, easyocr, pytesseract (缺失)
|
||||
|
||||
### 待执行安装命令
|
||||
```bash
|
||||
# 系统依赖
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3-pip ffmpeg tesseract-ocr tesseract-ocr-chi-sim tesseract-ocr-eng
|
||||
|
||||
# Python 包
|
||||
pip3 install --user httpx aiohttp playwright easyocr pytesseract
|
||||
python3 -m playwright install chromium
|
||||
|
||||
# 环境变量
|
||||
export KB_BASE_PATH="~/work/knowledge-base"
|
||||
```
|
||||
|
||||
## 待处理事项
|
||||
- [ ] 用户需要运行安装命令完成环境配置
|
||||
- [ ] 完成后可以处理 B站视频链接添加到知识库
|
||||
|
||||
## 文档更新
|
||||
- 更新了 USER.md 添加 KB Workflow 配置章节
|
||||
- 创建了 skills/README.md 详细文档
|
||||
- 创建了 skills/.env.example 环境变量示例
|
||||
Reference in New Issue
Block a user