Talegorithm пре 1 недеља
родитељ
комит
7c1d3651c2

+ 2 - 1
examples/how/README.md

@@ -1,6 +1,7 @@
 
 ## 运行方法
-1. 输入:将原始帖子内容放到 `examples/how/input/` 文件夹下
+1. 输入:将原始帖子内容放到 `examples/how/input/` 文件夹下(因为)
 2. 运行:在项目根目录下运行 `python examples/how/run.py`
 
 ## prompt调试
+主Agent(调度与评估):修改 examples/how/production.prompt

+ 0 - 0
examples/how/input_local_archive/1.jpeg → examples/how/input/1.jpeg


+ 0 - 0
examples/how/input_local_archive/3.jpeg → examples/how/input/3.jpeg


+ 0 - 0
examples/how/input_local_archive/7.jpeg → examples/how/input/7.jpeg


+ 4 - 15
examples/how/input/《秋日际遇》写生油画.json

@@ -1,20 +1,9 @@
 {
-  "channel_content_id": "616192600000000021034642",
-  "link": "https://www.xiaohongshu.com/explore/616192600000000021034642",
-  "comment_count": 0,
   "images": [
-    "http://res.cybertogether.net/crawler/image/5b94399f3bdef0a80b98e2734e110ca2.jpeg",
-    "http://res.cybertogether.net/crawler/image/2ba333062a7370ce229696fc36b9a060.jpeg",
-    "http://res.cybertogether.net/crawler/image/e70bbea964cfcf0225744da00e8e7939.jpeg"
+    "examples/how/input/1.jpeg",
+    "examples/how/input/3.jpeg",
+    "examples/how/input/7.jpeg"
   ],
-  "like_count": 411,
   "body_text": "听闻秋日是倒放的春天\n于是我心中有一座秋日的花园\n栽种着一簇簇淡却温暖的花\n风沿着远边的山吹来\n热情的阳光里秋风微凉\n与颜料一起酝酿出的画面\n白裙是一抹无暇\n迎着光绘画出\n那片在我心上开满\n限定的浪漫\n被画架支起\n绿草坪还驻留了匆匆而过的热闹\n再添一笔白\n为我画一枝玫瑰的奇遇\n———@万淮 #草地拍照[话题]##画画[话题]#",
-  "title": "《秋日际遇》写生油画",
-  "collect_count": 181,
-  "channel_account_id": "584fc4a36a6a693eef600ec3",
-  "channel_account_name": "糯米和Kilala",
-  "content_type": "note",
-  "video": "",
-  "publish_timestamp": 1633784416000,
-  "publish_time": "2021-10-09 21:00:16"
+  "title": "《秋日际遇》写生油画"
 }

+ 1 - 0
examples/how/production.prompt

@@ -14,6 +14,7 @@ $system$
 1. 调用 deconstruct agent,传入原帖的完整多模态内容,获取 制作表;注意:
     - 你可以直接给deconstruct agent输入文件夹路径
     - 它会自动加载如何解构内容的skill:examples/how/skills/deconstruct.md作为system prompt
+    - 指定解构结果的保存路径
 2. 调用 construct agent,传入解构产物 制作表,得到生成内容
 3. 对比建构结果与原帖,做出评估
 

+ 26 - 0
examples/how/resource/input_cloud_archive/《秋日际遇》写生油画.json

@@ -0,0 +1,26 @@
+{
+  "channel_content_id": "616192600000000021034642",
+  "link": "https://www.xiaohongshu.com/explore/616192600000000021034642",
+  "comment_count": 0,
+  "images": [
+    "http://res.cybertogether.net/crawler/image/5b94399f3bdef0a80b98e2734e110ca2.jpeg",
+    "http://res.cybertogether.net/crawler/image/6d80c193ccd0b047e0f3354ed6aca355.jpeg",
+    "http://res.cybertogether.net/crawler/image/2ba333062a7370ce229696fc36b9a060.jpeg",
+    "http://res.cybertogether.net/crawler/image/8187a1ad4e56295ab13d881d0ef7c934.jpeg",
+    "http://res.cybertogether.net/crawler/image/16fc8596b7c12031e910eb517859045c.jpeg",
+    "http://res.cybertogether.net/crawler/image/15a29cb486344bc10e90402371e21c92.jpeg",
+    "http://res.cybertogether.net/crawler/image/e70bbea964cfcf0225744da00e8e7939.jpeg",
+    "http://res.cybertogether.net/crawler/image/d20b73ad445c7dce64983159bc6cdae0.jpeg",
+    "http://res.cybertogether.net/crawler/image/c4c73c1b32f8066cc40a43ce61f61364.jpeg"
+  ],
+  "like_count": 411,
+  "body_text": "听闻秋日是倒放的春天\n于是我心中有一座秋日的花园\n栽种着一簇簇淡却温暖的花\n风沿着远边的山吹来\n热情的阳光里秋风微凉\n与颜料一起酝酿出的画面\n白裙是一抹无暇\n迎着光绘画出\n那片在我心上开满\n限定的浪漫\n被画架支起\n绿草坪还驻留了匆匆而过的热闹\n再添一笔白\n为我画一枝玫瑰的奇遇\n———@万淮 #草地拍照[话题]##画画[话题]#",
+  "title": "《秋日际遇》写生油画",
+  "collect_count": 181,
+  "channel_account_id": "584fc4a36a6a693eef600ec3",
+  "channel_account_name": "糯米和Kilala",
+  "content_type": "note",
+  "video": "",
+  "publish_timestamp": 1633784416000,
+  "publish_time": "2021-10-09 21:00:16"
+}

BIN
examples/how/resource/input_local_archive/1.jpeg


+ 0 - 0
examples/how/input_local_archive/2.jpeg → examples/how/resource/input_local_archive/2.jpeg


BIN
examples/how/resource/input_local_archive/3.jpeg


+ 0 - 0
examples/how/input_local_archive/4.jpeg → examples/how/resource/input_local_archive/4.jpeg


+ 0 - 0
examples/how/input_local_archive/5.jpeg → examples/how/resource/input_local_archive/5.jpeg


+ 0 - 0
examples/how/input_local_archive/6.jpeg → examples/how/resource/input_local_archive/6.jpeg


BIN
examples/how/resource/input_local_archive/7.jpeg


+ 0 - 0
examples/how/input_local_archive/8.jpeg → examples/how/resource/input_local_archive/8.jpeg


+ 0 - 0
examples/how/input_local_archive/9.jpeg → examples/how/resource/input_local_archive/9.jpeg


+ 0 - 0
examples/how/input_local_archive/《秋日际遇》写生油画.json → examples/how/resource/input_local_archive/《秋日际遇》写生油画.json


+ 1 - 1
examples/how/skills/deconstruct.md

@@ -55,7 +55,7 @@ description: 从制作层解构社交媒体帖子,提取视觉制作决策
 
 ## 输出格式
 
-输出一个 JSON。**只填写对这篇帖子有意义的字段**,不强制填写所有字段,不强制填满每个层级。
+输出一个 JSON,并将其保存到指定输出目录下。**只填写对这篇帖子有意义的字段**,不强制填写所有字段,不强制填满每个层级。
 
 特征文件保存至 `./features/<元素名>/`,制作表中以路径引用。