Skip to main content
Removed in PraisonAI PR #1641ScientificWriterAgent / CAJAL integration was reverted. This page is kept for historical reference only; do not use in new projects.
Scientific Writer Agent created LaTeX-formatted academic papers using the CAJAL local model (no longer available in current releases).
The user requested a LaTeX paper topic; the removed Scientific Writer agent drafted academic output via CAJAL (historical only).

Quick Start

1

Simple Usage

2

With Configuration

CAJAL was a 2GB local model. Required: pip install transformers torch

How It Works


Choosing the Right Method


Common Patterns

Single Section Generation

Adding Citations to Existing Content

Multi-Agent Workflow


Configuration Options

ScientificWriterAgent Constructor

Method Parameters

write_paper(topic, sections=None, style="academic", citation_style="APA")

write_section(section_title, content_request, context=None)

review_and_cite(research_query, existing_content=None)

Return Types

PaperSection (dataclass)

ScientificPaper (dataclass)


User Interaction Flow

A typical researcher workflow:
  1. Define Research Topic: Specify the subject area and requirements
  2. Configure Agent: Choose model (CAJAL for local) and citation style
  3. Generate Paper: Call write_paper() with topic and preferences
  4. Review Sections: Inspect individual sections in paper.sections
  5. Export LaTeX: Save paper.latex_content to a .tex file
  6. Compile Document: Process with LaTeX compiler for final PDF

Best Practices

CAJAL Model Benefits:
  • Local processing (no API calls)
  • Offline capability
  • Scientific specialization
  • Consistent academic formatting
General LLM Benefits:
  • Broader knowledge base
  • Faster processing
  • No local storage requirements
  • Latest research awareness
Recommendation: Use CAJAL for sensitive research or offline environments; use general LLMs for broader knowledge requirements.
Research Papers:
Review Papers:
Technical Reports:
  • APA: Psychology, education, social sciences
  • IEEE: Engineering, computer science, technology
  • Nature: Natural sciences, physics, chemistry, biology
  • MLA: Literature, humanities (when available)
Match the style to your target publication venue.
Combine Scientific Writer with complementary agents:
  1. Literature Review Agent → Research existing work
  2. Data Analysis Agent → Process experimental data
  3. Scientific Writer Agent → Generate formatted paper
  4. Review Agent → Quality check and feedback
This creates a comprehensive research pipeline for complex projects.

Code Agent

Generate and analyze code for research implementations

Math Agent

Solve mathematical problems and create equations