Quick Start
1
Simple Usage
2
With Configuration
CAJAL was a 2GB local model. Required:
pip install transformers torchHow 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:- Define Research Topic: Specify the subject area and requirements
- Configure Agent: Choose model (CAJAL for local) and citation style
- Generate Paper: Call
write_paper()with topic and preferences - Review Sections: Inspect individual sections in
paper.sections - Export LaTeX: Save
paper.latex_contentto a.texfile - Compile Document: Process with LaTeX compiler for final PDF
Best Practices
When to Use CAJAL vs General LLMs
When to Use CAJAL vs General LLMs
CAJAL Model Benefits:
- Local processing (no API calls)
- Offline capability
- Scientific specialization
- Consistent academic formatting
- Broader knowledge base
- Faster processing
- No local storage requirements
- Latest research awareness
Choosing Section Lists for Different Paper Types
Choosing Section Lists for Different Paper Types
Research Papers:Review Papers:Technical Reports:
Citation Style Selection
Citation Style Selection
- APA: Psychology, education, social sciences
- IEEE: Engineering, computer science, technology
- Nature: Natural sciences, physics, chemistry, biology
- MLA: Literature, humanities (when available)
Multi-Agent Scientific Workflows
Multi-Agent Scientific Workflows
Combine Scientific Writer with complementary agents:
- Literature Review Agent → Research existing work
- Data Analysis Agent → Process experimental data
- Scientific Writer Agent → Generate formatted paper
- Review Agent → Quality check and feedback
Related
Code Agent
Generate and analyze code for research implementations
Math Agent
Solve mathematical problems and create equations

