返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

edge-verifier

验证源文本(例如:剧集、任务)与现有知识图谱课程之间的关系。运行KNN/混合搜索以找到候选,然后使用LLM(scillm)严格依据理由来验证“验证”、“矛盾”或“相关”的立场。

person作者: jakexiaohubgithub

Edge Verifier

This skill links new content to the existing Knowledge Graph by:

  1. Recall: Running a KNN/Hybrid search (graph_memory.search) to find potential related lessons.
  2. Verify: Using scillm (LLM) to audit the relationship, classifying it as verifies, contradicts, or neutral.
  3. Link: Creating verified lesson_edges in ArangoDB.

Usage

Manual Execution

# Verify edges for a specific source text
.agents/skills/edge-verifier/run.sh --source_id <ID> --text "Content to verify..."

# With explicit options
.agents/skills/edge-verifier/run.sh --source_id <ID> --text "..." --type "episode_turn"

Scheduling (Mom Integration)

This skill is designed to be scheduled via mom (Master Of Mischief) to ensure continuous verification of new memory artifacts.

To schedule this, copy the provided schedule_template.json to mom's events directory (e.g., data/events/).

Template (schedule_template.json)

{
  "type": "periodic",
  "channelId": "YOUR_CHANNEL_ID",
  "text": "Run .agents/skills/edge-verifier/run.sh on recent data",
  "schedule": "0 2 * * *",
  "timezone": "America/New_York"
}

Setup Steps for Mom

  1. Link Skill: Ensure mom can see this skill.
    ln -s $(pwd)/.agents/skills/edge-verifier ~/.pi/mom/data/skills/edge-verifier
    
  2. Schedule: Copy the template.
    cp .agents/skills/edge-verifier/schedule_template.json ~/.pi/mom/data/events/verify-daily.json
    # Edit the channelId in the new file!
    

Prerequisites

  • .env must expose ArangoDB credentials.
  • CHUTES_API_KEY for LLM calls.