AI Agent Hub
Back to skills
PKM Knowledge Base Retrieval icon

PKM Knowledge Base Retrieval

Development Updated 2026.08.29

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

Please follow https://skillhub.cn/install/skillhub.md and install @user_e3c9e60f/test2333.

About this skill

Problem

When a user asks for material from an avatar's personal knowledge base (PKM) rather than public web or product documentation, ordinary search can mix customer-managed records with public information, PDF previews, and image fragments. test2333 narrows the task to a dataset-scoped retrieval flow: it treats dataset_id as the required entry point, calls the PKM retrieval API, and extracts the most relevant chunks instead of dumping raw noise to the user.

How It Works

The skill does not hard-code credentials or derive a customer-facing dataset_id on its own. It reads skills/pkm-retrieval/config.json for base_url, dataset_id, and api_key, then calls POST /v1/datasets/{dataset_id}/retrieve. The key steps are:
- Confirm the user has a dataset_id and a retrieval query;
- Treat UI Vector Search as the API's semantic_search case;
- Prefer the highest-scoring chunk and ignore noisy long-tail fragments;
- Return a concise summary, with source document names when useful.

If only avatar_id is available, the skill pauses and asks for the dataset_id rather than defaulting to the internal avatar_id -> pkb_{avatar_id} -> dataset lookup path.

Boundaries

It fits customer-maintained PKM datasets where the task depends on private reference material. It is not suitable for general knowledge questions, cases where no dataset_id can be provided, or workflows that should go through Avatar chat instead of direct dataset retrieval. The response style is concise: answer first, source second, and clearly say when nothing relevant is found rather than infer unsupported content.

Use Cases

  • Support engineers use a provided dataset_id to query avatar PKM notes and return a source-backed summary.
  • Teams with only an avatar_id first request the dataset_id before running customer-facing PKM retrieval.
  • Operations staff check a customer-uploaded process document and summarize the highest-score chunk with source name.
  • Developers debug avatar knowledge answers by separating semantic search hits from noisy PDF fragments.

Best For

  • Support engineers maintaining avatar service KBs and querying customer-managed PKM by dataset_id
  • Operations staff verifying customer-uploaded process clauses and producing source-annotated summaries
  • Developers integrating private avatar retrieval and handling missing dataset_id fallbacks
  • Data engineers inspecting PKM hits and filtering noisy PDF chunks from semantic search results