Use this skill when the user wants information from an avatar's personal knowledge base (PKM), such as remembered notes, uploaded files, or avatar-specific reference material.
PKM credentials are stored in:
skills/pkm-retrieval/config.json — machine-readable config (base_url, dataset_id, api_key)TOOLS.md — human-readable notes with curl examplesLoad the config file when making API calls. Do not hardcode secrets.
When to use
dataset_id or can provide one.Do not use
avatar_id is available and the user has not provided a dataset_id.Required input
dataset_idIf dataset_id is missing
dataset_id.dataset_id.dataset_id from avatar_id unless the user explicitly asks for the internal admin flow.Question template
Please provide the PKM dataset_id for this avatar so I can run the retrieval.API behavior
POST /v1/datasets/{dataset_id}/retrieveVector Search corresponds to API search_method: "semantic_search".skills/pkm-retrieval/config.json when making requests.avatar_id -> pkb_{avatar_id} -> /v1/datasets lookup -> dataset_id -> /retrieve, but this should not be the default customer-facing path.When the user wants to search the PKM and has already provided a dataset_id:
skills/pkm-retrieval/config.json to get base_url and api_key.request body template below.Request body template
{
"query": "<user query>",
"retrieval_model": {
"search_method": "semantic_search",
"reranking_enable": false,
"reranking_mode": "weighted_score",
"reranking_model": {
"reranking_provider_name": "langgenius/xinference/xinference",
"reranking_model_name": "bge-reranker-large"
},
"weights": {
"weight_type": "customized",
"keyword_setting": {
"keyword_weight": 0.5
},
"vector_setting": {
"vector_weight": 0.5,
"embedding_model_name": "jina-embeddings-v3",
"embedding_provider_name": "langgenius/xinference/xinference"
}
},
"top_k": 20,
"score_threshold_enabled": true,
"score_threshold": 0.3
}
}
How to interpret results
sign_content or long image-preview markup.Response style
OpenClaw behavior
dataset_id, pause and ask for it before calling the endpoint.avatar_id, explain that customer-facing PKM retrieval expects a stored dataset_id, and ask whether they want to provide it.共 1 个版本