Karpathy Query Feedback

# Karpathy Query → Wiki 回流 Skill

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Karpathy Query Feedback" with this command: npx skills add sora-mury/karpathy-query-feedback

Karpathy Query → Wiki 回流 Skill

描述

实现 Karpathy LLM Knowledge Base 的第一阶段:Query → Wiki回流。

当用户发起查询时:

  1. 使用 M-Flow 搜索相关记忆
  2. 将结果格式化为 wiki 条目
  3. 存入 wiki 层供后续 Compile 使用

激活条件

  • 用户发起知识查询
  • 需要将查询结果回流到 wiki
  • session → knowledge pipeline

工作流

用户查询 → M-Flow搜索 → Wiki格式化 → 存入wiki层 → 供Compile使用

Wiki 条目格式

| source | content | tags | timestamp |
|--------|---------|------|-----------|
| session:xxx | 知识内容 | tag1,tag2 | 2026-04-05 |

使用方式

Python API

from karpathy_query_feedback import QueryFeedbackPipeline

pipeline = QueryFeedbackPipeline()
results = await pipeline.query("用户询问的问题")
wiki_entries = pipeline.format_as_wiki(results)
await pipeline.save_to_wiki(wiki_entries)

命令行

python scripts/query_and_save.py "查询内容" --format wiki --output ./wiki/

搜索模式

  • lexical: BM25 全文搜索(快速、精确)
  • episodic: 向量搜索(语义相似)
  • triplet: 三元组搜索(关系推理)
  • hybrid: 混合搜索(lexical + episodic)

配置

  • 使用 M-Flow 作为底层记忆系统
  • Wiki 存储路径: knowledge/wiki/
  • 标签体系: 从配置或自动提取

依赖

  • m-flow-memory skill (已安装)
  • knowledge-distillation skill (用于标签提取)

文件结构

karpathy-query-feedback/
├── SKILL.md
├── scripts/
│   ├── __init__.py
│   ├── pipeline.py      # 核心管道
│   ├── formatter.py     # Wiki格式化
│   ├── search.py        # 搜索封装
│   └── query_and_save.py # CLI入口
└── docs/
    └── README.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Img2img

Generate images from text descriptions using DALL-E 3 while adhering to usage policies and avoiding realistic human faces.

Registry SourceRecently Updated
General

Habitat-GS-Navigator

Navigate and interact with photo-realistic 3DGS environments via the Habitat-GS Bridge. Use when: user asks to explore a 3D scene, perform embodied navigatio...

Registry SourceRecently Updated
General

Memory Palace

持久化记忆管理。Use when: 用户告诉你个人信息/偏好/习惯、需要记住项目状态/技术决策、完成任务后有可复用经验、用户说"记住""别忘了""下次注意"、需要回忆之前的对话内容。支持语义搜索和时间推理。

Registry SourceRecently Updated
General

Podcast Transcript Mining Authority Positioning

Extract guest appearances, speaking topics, and soundbites from podcast transcripts to build authority portfolios and generate podcast pitch templates. Use w...

Registry SourceRecently Updated