用于RAGFlow数据集任务:创建、列出、查看、更新或删除数据集;上传、列出、更新或删除文档;启动或停止解析;检查解析进度
Use only the bundled scripts in scripts/.
Prefer --json so returned fields can be relayed exactly.
Follow reference.md for all user-facing output.
scripts/.--json unless a script only needs a simple text response.Common commands:
bash
python3 scripts/datasets.py list --json
python3 scripts/datasets.py info DATASET_ID --json
python3 scripts/datasets.py create "Example Dataset" --description "Quarterly reports" --json
python3 scripts/update_dataset.py DATASET_ID --name "Updated Dataset" --json
python3 scripts/upload.py DATASET_ID /path/to/file.pdf --json
python3 scripts/upload.py list DATASET_ID --json
python3 scripts/update_document.py DATASET_ID DOC_ID --name "Updated Document" --json
python3 scripts/parse.py DATASET_ID DOC_ID1 [DOC_ID2 ...] --json
python3 scripts/stop_parse_documents.py DATASET_ID DOC_ID1 [DOC_ID2 ...] --json
python3 scripts/parse_status.py DATASET_ID --json
python3 scripts/search.py "query" --json
python3 scripts/search.py "query" DATASET_ID --json
python3 scripts/search.py --dataset-ids DATASET_ID1,DATASET_ID2 --doc-ids DOC_ID1,DOC_ID2 "query" --json
python3 scripts/search.py --retrieval-test --kb-id DATASET_ID "query" --json
python3 scripts/list_models.py --json
For any delete action, list the exact items first and require explicit user confirmation before executing.
Delete only by explicit dataset IDs or document IDs. If the user gives names or fuzzy descriptions, resolve IDs first.
Upload does not start parsing. Start parsing only when the user asks for it.
parse.py returns immediately after the start request; use parse_status.py for progress.
For progress requests, use parse_status.py on the most specific scope available:
--doc-idsIf a parse status result includes progress_msg, surface it directly. For FAIL, treat it as the primary error detail.
Use --retrieval-test only for single-dataset debugging or when the user explicitly asks for that endpoint.
reference.md.api_error, error, message, and related fields exactly as returned.