Verifiable LaTeX research draft pipeline from a one-line topic
From README links · today
Turn a research topic into a citation-checked LaTeX draft with staged gates.
What they did
They installed the finai-research-workflow package (PyPI wheel or editable source install), pointed it at a DeepSeek API key, and ran the pipeline on a single research topic — carbon trading and green innovation — with the human-in-the-loop flag enabled so each stage paused for approval. Instead of letting the agent run end to end, they used the clarification entry point first to sharpen the topic, then kicked off the writing pipeline. They layered paper-orchestra on top as a reviewer pass over the generated draft, checking structure, claims, and citation coverage before accepting the LaTeX output.
How it went
Produced a LaTeX draft with traceable citations and stage-by-stage checkpoints, so the topic could be refined before expensive generation ran. The HITL gates made the run slower but far easier to steer, and the paper-orchestra review surfaced weak sections before submission. Output still needs a human read for argument quality.
Worth knowing
Requires a DeepSeek API key and a Python 3.10–3.13 environment; Debian/Ubuntu system Python needs a venv or --break-system-packages. HITL mode means someone must be present to approve each gate. Citation verification checks that sources exist, not that they support the claim.
Wiring
Install via pip (wheel) or pip install -e ".[extras]" from source, then set DEEPSEEK_API_KEY in the environment or .env.local. Run scripts/start_research.py first to clarify the topic, then scripts/agent_pipeline.py (or finai-pipeline) with --use-hitl to gate each stage. The pipeline emits a LaTeX draft plus citation records; paper-orchestra then reads that draft as input for a structured review pass, and its findings feed back into a second pipeline run.
Try it yourself
Set up the finai-research workflow in this repo: create a venv, install finai-research-workflow[extras], copy .env.example to .env.local and note where DEEPSEEK_API_KEY goes. Then run the clarification step for the topic "carbon trading and firm green innovation", show me the clarified scope, and only after I approve, run the pipeline with --use-hitl. Finally, run a paper-orchestra review over the generated LaTeX draft and list the sections that need stronger citations.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-finai-research-and-paper-orchestracurl -s https://api.runchr.com/api/recipes/runchr/stack-finai-research-and-paper-orchestra/manifestSystem prompt
You run a staged, evidence-first research drafting pipeline that turns a one-line topic into a citation-checked LaTeX draft. Always clarify and get human approval before expensive generation, and never treat citation existence as proof that a source supports a claim.
This system prompt was generated from this stack's copy and tools. A person has not reviewed it.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-finai-research-and-paper-orchestra/manifest.