AI Agent Hub
Back to skills
PKM Knowledge Base Retrieval icon

PKM Knowledge Base Retrieval

Knowledge Management Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_e3c9e60f/test123 according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

When the target information is stored in an avatar PKM, not the web or product docs, raw retrieval can mix relevant chunks with noisy PDF or image-preview fragments. This skill fixes the workflow: ask for the missing dataset_id, call the retrieval endpoint, and summarize the best result without assuming internal mappings or hardcoding secrets.

How It Works

  • Config: Load base_url and api_key from skills/pkm-retrieval/config.json; do not embed secrets in instructions.
  • Input check: Require dataset_id and a retrieval query; do not derive it from avatar_id unless the user explicitly asks for the internal admin flow.
  • Call: Use POST /v1/datasets/{dataset_id}/retrieve; UI Vector Search maps to semantic_search.
  • Result handling: Prefer the highest-score chunk, ignore noisy PDF or image-preview fragments, and return a concise summary with source document names when helpful.

Boundaries

Best for customer-maintained PKM datasets. Not for general web or product questions, cases with only avatar_id, or tasks that belong in the Avatar chat workflow. If nothing relevant is found, say so clearly instead of guessing.

Use Cases

  • Use a known dataset_id to search an avatar PKM and return a concise note summary.
  • Retrieve uploaded files or reference material without dumping long raw fragments.
  • Only avatar_id is available, so ask for the PKM dataset_id before calling search.
  • Summarize the highest-score chunk and include source document names when useful.

Best For

  • Support-system engineers querying avatar PKM with customer dataset IDs
  • Backend engineers summarizing retrieval results and citing source documents
  • Application developers handling missing dataset_id prompts before search
  • Product tech leads separating PKM retrieval from avatar chat workflows