Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Welcome to PaperStack!

What is PaperStack?

PaperStack is a multi-agent AI pipeline designed for automated document generation. It showcases how specialized AI agents can collaborate to create structured, domain-specific writing, such as research papers, technical reports, and formal documents.

This project is an experiment in automation rather than an attempt to replace human-quality academic work or create writing that subverts AI detection. It offers a transparent and modular approach to observing and refining AI-generated structured content. All outputs are fully AI-generated and not attributable to any individual or entity.


How It Works

1. User Input

The user provides a topic, and the AI pipeline systematically progresses through a sequence of tasks to generate, refine, and format the document.

2. AI Pipeline Overview

PaperStack follows a structured multi-agent workflow to ensure systematic content generation:

  • Task-Specific System Prompts:
    Each AI agent is assigned a specialized role with structured prompts tailored to its function, ensuring focused execution at every stage.

  • Strict Formatting Guidelines for Outputs (JSON):
    All output content adheres to standardized JSON formatting, maintaining consistency and ensuring compatibility for further processing.

  • Dual-Layer JSON Validation:
    Generated JSON responses undergo automated validation to check for structural and syntactical correctness. If parsing fails, a JSON-fixing agent corrects errors until a valid response is achieved.

  • Drafting and Paragraph-Level Revisions:
    The system first drafts the document and then performs paragraph-by-paragraph revisions to enhance clarity, coherence, and logical flow.

  • Section Scanning and Coherence Revisions:
    Each section undergoes analysis for coherence and redundancy. A separate AI agent ensures logical consistency and minimizes repetition.

  • Attribution Scanning and Citation Insertion:
    The system scans for statements requiring attribution and inserts citations in a structured format.

  • Abstract Generation:
    A summarization step creates a concise abstract that distills the core arguments and conclusions of the document.

  • Formatting for Printing:
    The final document is structured for readability and prepared for output in a format suitable for review.


Future Plans

Enhancements and Additional Features:

  • Expanded user input options, including:

    • Additional context for AI guidance
    • Support for various fields of study
    • User-defined key points, arguments, and hypotheses
    • Methodology, data, and result inputs
    • Specific works for reference
    • Citation style preferences
    • Inclusion of discussion
    • Customizable writing styles (academic, accessible, narrative)
  • Refining the Attribution Scanner:

    • Integration with citation databases like Google Scholar and field-specific OAI-PMH repositories for citation validation.
  • Specialized AI Models:

    • Fine-tuned models for editing, revision, in-text attribution, and citation insertion.
  • Web UI Development:

    • Migration to a web-based interface for improved user experience.

Getting Started

Step 1: Get Your API Key

PaperStack requires a Together AI API Key to generate content using the Llama-3.3-70B-Instruct-Turbo-free model.

  1. Visit Together AI and sign up or log in.
  2. Navigate to API Keys in your account settings.
  3. Click Generate New Key, then copy it.

Step 2: Store Your API Key in Google Colab

  1. In the left sidebar menu, click the key icon.
  2. Click "Add a new secret".
  3. In the "Name" field, enter:
    TogetherAPI
  4. In the "Value" field, paste your API key.
  5. Toggle "Notebook access" to ON.
API Key Security Measures:
  • API keys are never displayed in outputs or stored in the notebook.
  • If the notebook is copied, shared, or downloaded, API keys do not transfer.
  • Once stored using Colab Secrets, API credentials remain accessible within the notebook without requiring re-entry.

For more details, refer to: How to Use Secrets in Google Colab.

Step 3: Initialize

  1. Press the play button in the upper left corner of this cell to install Together and import necessary libraries.

Step 4: Generate the Paper

  1. Enter the topic or title of the document.
  2. Press the play button to initiate document generation.
    • Processing time: 8-12 minutes.
    • Note: Be patient as the system works through the AI pipeline.

Enjoy using PaperStack to streamline your document generation process!

About

Automated philosophy essay generator with Colab form interface and secure API key handling.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages