AI Agent Hub
Back to skills
Avatar PKM Retrieval icon

Avatar PKM Retrieval

Development Updated 2026.08.30

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

Install @user_e3c9e60f/sjiji into your AI assistant according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

When a user asks for notes, uploaded files, or avatar-specific reference material from an avatar’s personal knowledge base, a general-purpose answer is usually not enough. The content lives in a customer-managed PKM dataset, so the retrieval path must target a concrete dataset_id instead of relying on public knowledge or broad product context. This skill turns that workflow into a narrow, predictable flow: validate the input, call the PKM retrieval endpoint, and compress noisy results into a usable answer.

How it works

It is intended for cases where the user has already supplied a dataset_id or is willing to provide one. The main steps are:
- Load skills/pkm-retrieval/config.json to read base_url and the API credentials;
- Build the retrieval request from the user’s query and call POST /v1/datasets/{dataset_id}/retrieve;
- Treat UI Vector Search as search_method: "semantic_search" in this environment;
- Prefer the highest-scoring chunk, discard noisy PDF or image-preview fragments, summarize the relevant content, and mention source document names when useful.

Boundaries

Do not use it for general web or product-knowledge questions, or when only an avatar_id is available and no dataset_id has been provided. If the dataset_id is missing, ask for it instead of deriving an internal dataset from the avatar_id. Credentials must come from the config file and should never be hardcoded in skill instructions or request payloads.

Use Cases

  • Retrieve an uploaded document's key points from an avatar PKM dataset using a known dataset_id.
  • Run semantic_search with an existing dataset_id and inspect the top-scoring retrieval chunks.
  • Search customer-maintained avatar notes and summarize the relevant source documents.
  • Look up avatar reference material from a specific dataset_id instead of answering from general knowledge.

Best For

  • Backend engineers integrating avatar knowledge bases: call the retrieval API with a dataset_id and load credentials safely.
  • Product operations teams configuring avatar assets: find uploaded files and note summaries in a customer-managed PKM dataset.
  • Retrieval quality engineers: compare semantic_search chunk scores and filter noisy fragments.
  • Application developers building avatar features: prompt users to supply the missing dataset_id before retrieval.