Skip to main content

Generate master-level research papers with real citations in minutes

Project description

OpenDraft Engine

The Python AI engine that powers thesis draft generation. Contains the 19-agent pipeline, citation research, and export functionality.

Structure

engine/
├── draft_generator.py      # Main 19-stage pipeline orchestrator
├── config.py               # Model settings, API keys, rate limits
├── utils/
│   ├── agent_runner.py     # Agent execution engine
│   ├── api_citations/      # Citation APIs (CrossRef, Semantic Scholar)
│   ├── citation_*.py       # Citation management & validation
│   ├── export_professional.py  # PDF/DOCX export
│   ├── pdf_engines/        # Pandoc, WeasyPrint engines
│   └── deep_research.py    # Research phase utilities
├── prompts/
│   ├── 00_WORKFLOW.md      # Complete agent workflow
│   ├── 01_research/        # Deep Research, Scout, Scribe, Signal
│   ├── 02_structure/       # Architect, Citation Manager, Formatter
│   ├── 03_compose/         # Crafter, Thread, Narrator
│   ├── 04_validate/        # Skeptic, Verifier, Referee
│   ├── 05_refine/          # Citation Verifier, Voice, Entropy, Polish
│   └── 06_enhance/         # Abstract Generator, Enhancer
└── opendraft/              # CLI tools

Usage

Run Pipeline Directly

cd engine
python draft_generator.py --topic "Your research topic" --level master

Academic Levels

Level Words Chapters Time
research_paper 3-5k 3-4 5-10 min
bachelor 10-15k 5-7 8-15 min
master 20-30k 7-10 10-25 min
phd 50-80k 10-15 20-40 min

Environment Variables

Required in ../.env.local:

GEMINI_API_KEY=your-key      # Required
PROXY_LIST=...               # Optional: for faster research
SCOUT_PARALLEL_WORKERS=32    # Optional: parallelism

Dependencies

pip install -r requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opendraft-1.6.1.tar.gz (247.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opendraft-1.6.1-py3-none-any.whl (287.8 kB view details)

Uploaded Python 3

File details

Details for the file opendraft-1.6.1.tar.gz.

File metadata

  • Download URL: opendraft-1.6.1.tar.gz
  • Upload date:
  • Size: 247.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.8

File hashes

Hashes for opendraft-1.6.1.tar.gz
Algorithm Hash digest
SHA256 afc976e1b3130f3c243fa5e03c8305b75f34a9d93aafcaaf37c86d1514325772
MD5 df7da9b56833048c893b146105c03610
BLAKE2b-256 9ada7f78024c968601b662e3dd9537f6136c752fe61b0c6531c279b85876dcd4

See more details on using hashes here.

File details

Details for the file opendraft-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: opendraft-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 287.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.8

File hashes

Hashes for opendraft-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db016be4e19e05101319d7fe8fb7b900c6bf2584bdb351f909627ececa01000d
MD5 bf61358d437e30f27997c2f9dee4d1a7
BLAKE2b-256 71426031803213b5ec211448b2d315bc8ade23e49651fed56e20009116bc2bf4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page