by starswhere · v0.0.1
Manage Dify datasets: list, create, update, delete, inspect, and test retrieval. Part of the knowledge-control series.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Knowledge-control-datasets is the dataset management tool plugin in the knowledge-control series. It exposes the Dify “数据集/知识库” API as a set of small, composable tools: list, create, update, delete, inspect details, and test retrieval. Each action is a separate tool to keep user prompts simple and predictable.
datasets-list: List datasets with keyword/tag filter and pagination.datasets-create: Create a dataset; supports permission, indexing, embedding model, retrieval/rerank settings, summary index.dataset-detail: Get dataset detail by ID.dataset-delete: Delete a dataset by ID.dataset-update: Update dataset fields (same options as create).dataset-retrieve: Test search/retrieve chunks from a dataset.api_base (optional): Defaults to https://api.dify.ai/v1. Point this to your self-hosted Dify API if needed.api_key (required): Workspace API Key with dataset permissions.reranking_model or weighted_score. Leaving it empty keeps the dataset’s existing setting.semantic_search, full_text_search, hybrid_search, keyword_search, top_k, score_threshold, rerank_enable) are optional; unset values do not override existing dataset settings.pip install -r requirements.txtpython -m main (or your IDE’s run command).datasets-create, fill name and optional settings; leave embedding/rerank fields empty to use workspace defaults or fill them directly if you know the model ids.dataset-update to change search_method, top_k, rerank_enable/mode, thresholds.dataset-retrieve with a query to verify retrieval quality before wiring into an app.api_base.provider/knowledge-control-datasets.yaml — provider definition & credentials schema.tools/*.yaml — per-tool schemas and labels.tools/*.py — per-tool implementations.tools/common.py — shared HTTP client and helpers.LICENSE — Apache-2.0, Copyright 2026 StarsWhere (contact: starswherevip@gmail.com).This plugin focuses on datasets/knowledge bases. Other knowledge-control series plugins will manage adjacent capabilities; they can be installed independently.