Run a deterministic research workflow that separates planning, evidence collection, and report synthesis.
Generate reusable research artifacts under an output directory for auditability and iteration.
Install dependencies:
cd openai-deep-research-skill
python3 -m pip install -r scripts/requirements.txt
Run a real research job:
python3 scripts/deep_research.py "中国AI Agent市场2026年商业化路径" \
--language zh-CN \
--depth 6 \
--research-depth deep \
--max-total-output-tokens 20000 \
--parallel 3
Run a local dry-run without API calls:
python3 scripts/deep_research.py "sample topic" --dry-run
Set OPENAI_API_KEY before running real jobs.
Use OPENAI_BASE_URL only when routing through a compatible gateway.
Tune key flags:
--depth: Control breadth of decomposition (2-12).--research-depth: Control per-question evidence depth (shallow|standard|deep).--parallel: Control concurrent evidence runs (1-8).--planner-model: Choose planning model.--research-model: Choose evidence model.--writer-model: Choose synthesis model.--planner-max-output-tokens: Cap planner response size.--research-max-output-tokens: Cap each sub-question research response size.--writer-max-output-tokens: Cap final report synthesis response size.--max-total-output-tokens: Hard limit for estimated run output tokens.--disable-web-search: Disable web tool for internal-data-only runs.--web-tool-type: Override tool type when endpoint uses a non-default web-search tool name.Write one run directory per execution: outputs/.
Produce these files:
run_meta.json: runtime parameters and metadata.plan.json: normalized sub-question plan.plan_raw.txt: raw planner model output.findings.json: per-question evidence summaries.research_raw.json: raw responses per sub-question.report.md: final cited report.Apply all checks before accepting report.md:
Contradictions and Uncertainty.Executive Summary, Key Findings, Evidence by Sub-question, Contradictions and Uncertainty, Recommendations, Sources).Use references/research-quality.md for scoring rubric and iteration guidance.
If execution fails with missing package errors, install dependencies from scripts/requirements.txt.
If JSON parsing fails, rerun with the same topic and lower --depth, then inspect plan_raw.txt or research_raw.json.
If web-search tool type is rejected, pass a compatible value via --web-tool-type or disable web search.
共 1 个版本