feat: 支持嵌套格式元数据(kb-bilibili-metadata 输出)
This commit is contained in:
@@ -8,41 +8,44 @@
|
||||
- Template-based output
|
||||
- Quality scoring
|
||||
- Automatic tagging
|
||||
- **多格式元数据支持**: 支持扁平结构 `{"title":"xxx"}` 和嵌套结构 `{"data":{"metadata":{...}}}`
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
# Analyze content
|
||||
# 分析内容
|
||||
python deep_analyzer.py --metadata meta.json --content content.json --output analysis.md
|
||||
|
||||
# Specify type
|
||||
# 指定类型
|
||||
python deep_analyzer.py --metadata meta.json --content content.json --type tutorial --output tutorial.md
|
||||
|
||||
# 指定 AI 提供商
|
||||
python deep_analyzer.py -m meta.json -c content.json -o out.md --provider zhipu --model glm-4
|
||||
```
|
||||
|
||||
## Output
|
||||
## Metadata Format
|
||||
|
||||
```markdown
|
||||
---
|
||||
title: "分析标题"
|
||||
source: "bilibili"
|
||||
quality_score: 95
|
||||
tags:
|
||||
- python
|
||||
- tutorial
|
||||
---
|
||||
支持两种元数据格式:
|
||||
|
||||
## 一句话总结
|
||||
```json
|
||||
// 格式1: 扁平结构
|
||||
{
|
||||
"title": "视频标题",
|
||||
"author": "作者名",
|
||||
"duration": 619,
|
||||
"bvid": "BVxxx"
|
||||
}
|
||||
|
||||
内容摘要...
|
||||
|
||||
## 核心要点
|
||||
|
||||
1. 要点1
|
||||
2. 要点2
|
||||
// 格式2: 嵌套结构(kb-bilibili-metadata 输出)
|
||||
{
|
||||
"data": {
|
||||
"metadata": {
|
||||
"title": "视频标题",
|
||||
"author": "作者名",
|
||||
"duration": "10:19"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
cp -r kb-deep-analyzer/ ~/skills/
|
||||
```
|
||||
会自动转换为扁平格式进行分析。
|
||||
|
||||
Reference in New Issue
Block a user