[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M797P125RGTJX7B64F11FH8F":3,"skill-same:01M797P125RGTJX7B64F11FH8F":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M797P125RGTJX7B64F11FH8F","knowledge-and-ocr",null,"Operate Yuxi knowledge-base, retrieval, document parsing, OCR, graph, mindmap, and knowledge evaluation workflows safely.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fyuxi\u002Fsub-skills\u002Fknowledge-and-ocr\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: knowledge-and-ocr\ndescription: \"Operate Yuxi knowledge-base, retrieval, document parsing, OCR,\n  graph, mindmap, and knowledge evaluation workflows safely.\"\nmetadata:\n  disco-role: operating\ndisable-model-invocation: true\nlicense: MIT\n---\n\n# Yuxi knowledge and OCR operating guide\n\nLoad this sub-skill when the task touches Yuxi knowledge bases, RAG retrieval, document upload\u002Fparse\u002Fchunk\u002Findex flows, OCR configuration, graph\u002Fmindmap features, knowledge evaluation, KB agent tools, or `read_file` OCR fallback behavior.\n\n## Owned capabilities\n\n- Knowledge-base types: Milvus document KBs, Dify Dataset read-only retrieval connectors, and Notion Data Source read-only retrieval connectors.\n- Document lifecycle: upload\u002Fimport\u002Ffetch, file records, parsing to Markdown, chunking\u002Findexing, re-indexing, file search\u002Fopen\u002Ffind\u002Fdownload, previews, and image proxy handling.\n- Retrieval: vector, keyword\u002FBM25, hybrid, reranker, file-name scoped search, and optional graph-enhanced retrieval for Milvus KBs.\n- OCR: default engine resolution, per-file engine selection, config\u002Fhealth endpoints, local\u002Fservice\u002Fcloud engines, and agent `ocr_parse_file` fallback.\n- Knowledge structure: mindmap generation\u002Fdiff\u002Fincremental update, generated sample questions, Milvus knowledge graph build\u002Fquery\u002Freset\u002Freconcile.\n- Evaluation: JSONL benchmark upload, LLM-generated benchmarks, RAG evaluation runs, result inspection, and metrics interpretation.\n\nUse sibling sub-skills instead for deployment startup details, CLI command syntax, agent runtime internals unrelated to KB data, or general repo development workflow.\n\n## Safety gates before acting\n\n1. **Classify the runtime need.** Parser facade and metadata checks are CPU-safe; real KB ingestion\u002Fretrieval requires running services such as API, Postgres, Redis\u002Ftask workers, MinIO, and Milvus. Graph build also needs Neo4j and a configured LLM provider. Some OCR engines require GPU services or cloud credentials.\n2. **Do not assume credentials.** Dify, Notion, MinerU Official, DeepSeek OCR, PaddleOCR API, rerankers, embeddings, and LLM-based graph\u002Fevaluation features may call external services. Confirm credentials and side effects before running them.\n3. **Respect file boundaries.** Knowledge files should enter via Yuxi upload\u002Fimport\u002Ffetch APIs and be stored in MinIO before document record creation. Agent OCR fallback only accepts sandbox virtual paths under user-data `workspace`, `uploads`, or `outputs` and writes Markdown under `outputs\u002Focr`.\n4. **Do not treat read-only connectors as Milvus.** Dify and Notion are normal KB types for retrieval, but public document upload\u002Fopen\u002Ffind\u002Fdownload workflows are gated to document-supporting KBs; expect read-only connectors to reject file operations.\n5. **Keep secrets out of logs and artifacts.** Config APIs intentionally redact sensitive values; never print tokens or API keys while debugging.\n\n## First routing question\n\nChoose the narrow workflow before touching code or services:\n\n- **Create\u002Fquery\u002Fmanage a KB:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#knowledge-base-lifecycle-and-entry-points).\n- **OCR or parser issue:** use [references\u002Focr-engine-matrix.md](references\u002Focr-engine-matrix.md) first, then [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md#ocr-and-parser-failures).\n- **Agent KB tools:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#agent-tool-entry-points).\n- **Graph or mindmap:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#mindmap-sample-questions-and-graph-workflows).\n- **Knowledge evaluation:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#knowledge-evaluation-workflow).\n- **Unknown failure:** use [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) and classify by KB type, file status, OCR engine, service dependency, and credential requirement.\n\n## Safe entry points\n\nPrefer these entry points because they preserve Yuxi's permission, config, storage, and task semantics:\n\n- Web\u002FAPI routes under `\u002Fapi\u002Fknowledge\u002F*`, `\u002Fapi\u002Fsystem\u002Focr\u002F*`, `\u002Fapi\u002Fsystem\u002Fconfig*`, `\u002Fapi\u002Fsystem\u002Fconfig\u002Foptions*`, `\u002Fapi\u002Fevaluation\u002F*`, and `\u002Fapi\u002Fgraph\u002F*`.\n- Python service\u002Ffacade calls: `yuxi.knowledge.runtime.knowledge_base`, `yuxi.services.ocr_service.parse_document`, `yuxi.services.ocr_service.get_ocr_options`, `yuxi.services.ocr_service.check_all_ocr_health`, and `yuxi.knowledge.graphs.milvus_graph_service.MilvusGraphService`.\n- Agent tools made available by the built-in `knowledge-base` skill dependency: `list_kbs`, `get_mindmap`, `query_kb`, `search_file`, `open_kb_document`, `find_kb_document`, and `download_kb_file`.\n- Agent built-in OCR helper: `ocr_parse_file` for sandbox PDF\u002FOffice\u002Fimage to Markdown conversion.\n\nAvoid calling low-level parser functions directly unless the task is specifically parser internals. The business entry point is `parse_document`; low-level PDF\u002Fimage parsers expect an already resolved `ocr_engine` and can bypass DB\u002Fenvironment fallback if called incorrectly.\n\n## Verification candidates\n\n- CPU-safe native candidate: `pytest backend\u002Ftest\u002Funit\u002Fknowledge\u002Ftest_parser_facade.py` — proves parser registry metadata, engine selection, parser facade, credential-safe cache keys, and common document conversion behavior.\n- Service-required candidate: `pytest backend\u002Ftest\u002Fe2e\u002Ftest_ocr_config_center_e2e.py` — proves configured default OCR drives real temporary attachment parsing when API services and MinIO are available.\n- Service\u002Fmodel-required candidate: `pytest backend\u002Ftest\u002Fe2e\u002Ftest_read_file_multimodal_e2e.py` — proves image `read_file` and non-vision OCR fallback only when model\u002FOCR prerequisites are configured.\n\nRun service-required candidates only after the deployment sub-skill's runtime checks pass and the needed credentials\u002Fproviders are approved.\n","# Yuxi knowledge and OCR operating guide\n\nLoad this sub-skill when the task touches Yuxi knowledge bases, RAG retrieval, document upload\u002Fparse\u002Fchunk\u002Findex flows, OCR configuration, graph\u002Fmindmap features, knowledge evaluation, KB agent tools, or `read_file` OCR fallback behavior.\n\n## Owned capabilities\n\n- Knowledge-base types: Milvus document KBs, Dify Dataset read-only retrieval connectors, and Notion Data Source read-only retrieval connectors.\n- Document lifecycle: upload\u002Fimport\u002Ffetch, file records, parsing to Markdown, chunking\u002Findexing, re-indexing, file search\u002Fopen\u002Ffind\u002Fdownload, previews, and image proxy handling.\n- Retrieval: vector, keyword\u002FBM25, hybrid, reranker, file-name scoped search, and optional graph-enhanced retrieval for Milvus KBs.\n- OCR: default engine resolution, per-file engine selection, config\u002Fhealth endpoints, local\u002Fservice\u002Fcloud engines, and agent `ocr_parse_file` fallback.\n- Knowledge structure: mindmap generation\u002Fdiff\u002Fincremental update, generated sample questions, Milvus knowledge graph build\u002Fquery\u002Freset\u002Freconcile.\n- Evaluation: JSONL benchmark upload, LLM-generated benchmarks, RAG evaluation runs, result inspection, and metrics interpretation.\n\nUse sibling sub-skills instead for deployment startup details, CLI command syntax, agent runtime internals unrelated to KB data, or general repo development workflow.\n\n## Safety gates before acting\n\n1. **Classify the runtime need.** Parser facade and metadata checks are CPU-safe; real KB ingestion\u002Fretrieval requires running services such as API, Postgres, Redis\u002Ftask workers, MinIO, and Milvus. Graph build also needs Neo4j and a configured LLM provider. Some OCR engines require GPU services or cloud credentials.\n2. **Do not assume credentials.** Dify, Notion, MinerU Official, DeepSeek OCR, PaddleOCR API, rerankers, embeddings, and LLM-based graph\u002Fevaluation features may call external services. Confirm credentials and side effects before running them.\n3. **Respect file boundaries.** Knowledge files should enter via Yuxi upload\u002Fimport\u002Ffetch APIs and be stored in MinIO before document record creation. Agent OCR fallback only accepts sandbox virtual paths under user-data `workspace`, `uploads`, or `outputs` and writes Markdown under `outputs\u002Focr`.\n4. **Do not treat read-only connectors as Milvus.** Dify and Notion are normal KB types for retrieval, but public document upload\u002Fopen\u002Ffind\u002Fdownload workflows are gated to document-supporting KBs; expect read-only connectors to reject file operations.\n5. **Keep secrets out of logs and artifacts.** Config APIs intentionally redact sensitive values; never print tokens or API keys while debugging.\n\n## First routing question\n\nChoose the narrow workflow before touching code or services:\n\n- **Create\u002Fquery\u002Fmanage a KB:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#knowledge-base-lifecycle-and-entry-points).\n- **OCR or parser issue:** use [references\u002Focr-engine-matrix.md](references\u002Focr-engine-matrix.md) first, then [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md#ocr-and-parser-failures).\n- **Agent KB tools:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#agent-tool-entry-points).\n- **Graph or mindmap:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#mindmap-sample-questions-and-graph-workflows).\n- **Knowledge evaluation:** use [references\u002Fknowledge-workflows.md](references\u002Fknowledge-workflows.md#knowledge-evaluation-workflow).\n- **Unknown failure:** use [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) and classify by KB type, file status, OCR engine, service dependency, and credential requirement.\n\n## Safe entry points\n\nPrefer these entry points because they preserve Yuxi's permission, config, storage, and task semantics:\n\n- Web\u002FAPI routes under `\u002Fapi\u002Fknowledge\u002F*`, `\u002Fapi\u002Fsystem\u002Focr\u002F*`, `\u002Fapi\u002Fsystem\u002Fconfig*`, `\u002Fapi\u002Fsystem\u002Fconfig\u002Foptions*`, `\u002Fapi\u002Fevaluation\u002F*`, and `\u002Fapi\u002Fgraph\u002F*`.\n- Python service\u002Ffacade calls: `yuxi.knowledge.runtime.knowledge_base`, `yuxi.services.ocr_service.parse_document`, `yuxi.services.ocr_service.get_ocr_options`, `yuxi.services.ocr_service.check_all_ocr_health`, and `yuxi.knowledge.graphs.milvus_graph_service.MilvusGraphService`.\n- Agent tools made available by the built-in `knowledge-base` skill dependency: `list_kbs`, `get_mindmap`, `query_kb`, `search_file`, `open_kb_document`, `find_kb_document`, and `download_kb_file`.\n- Agent built-in OCR helper: `ocr_parse_file` for sandbox PDF\u002FOffice\u002Fimage to Markdown conversion.\n\nAvoid calling low-level parser functions directly unless the task is specifically parser internals. The business entry point is `parse_document`; low-level PDF\u002Fimage parsers expect an already resolved `ocr_engine` and can bypass DB\u002Fenvironment fallback if called incorrectly.\n\n## Verification candidates\n\n- CPU-safe native candidate: `pytest backend\u002Ftest\u002Funit\u002Fknowledge\u002Ftest_parser_facade.py` — proves parser registry metadata, engine selection, parser facade, credential-safe cache keys, and common document conversion behavior.\n- Service-required candidate: `pytest backend\u002Ftest\u002Fe2e\u002Ftest_ocr_config_center_e2e.py` — proves configured default OCR drives real temporary attachment parsing when API services and MinIO are available.\n- Service\u002Fmodel-required candidate: `pytest backend\u002Ftest\u002Fe2e\u002Ftest_read_file_multimodal_e2e.py` — proves image `read_file` and non-vision OCR fallback only when model\u002FOCR prerequisites are configured.\n\nRun service-required candidates only after the deployment sub-skill's runtime checks pass and the needed credentials\u002Fproviders are approved.\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fyuxi\u002Fsub-skills\u002Fknowledge-and-ocr",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill knowledge-and-ocr",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill knowledge-and-ocr",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill knowledge-and-ocr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fyuxi\u002Fsub-skills\u002Fknowledge-and-ocr\u002FSKILL.md",[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fknowledge-workflows.md","REFERENCE","参考文档",16030,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fyuxi\u002Fsub-skills\u002Fknowledge-and-ocr\u002Freferences\u002Fknowledge-workflows.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Focr-engine-matrix.md",9907,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fyuxi\u002Fsub-skills\u002Fknowledge-and-ocr\u002Freferences\u002Focr-engine-matrix.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Ftroubleshooting.md",12559,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fyuxi\u002Fsub-skills\u002Fknowledge-and-ocr\u002Freferences\u002Ftroubleshooting.md",[61,69,76,83,90,97],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]