Framework for interactive long text generation via prompt engineering
Top 38.0% on sourcepulse
RecurrentGPT offers an interactive framework for generating arbitrarily long text by simulating RNN recurrence with natural language. It's designed for writers and researchers exploring long-form content generation with LLMs, enabling human-AI co-creation and flexible story development.
How It Works
RecurrentGPT replaces traditional RNN components like cell state and hidden state with natural language descriptions. At each step, it processes a text paragraph and a plan for the next, generated in the previous step. It leverages a long-term memory (summaries of past paragraphs, retrievable via semantic search) and a short-term memory (natural language summaries of recent steps). These are combined with current inputs into a prompt for a backbone LLM to generate the next paragraph, a plan, and update memories. This approach allows for more intuitive and flexible long-form generation compared to purely vectorized methods.
Quick Start & Requirements
pip install -r requirements.txt
.utils.py
for API keys and proxy settings, then running python gradio_server.py
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
angular2
is unusual and may indicate a non-standard or missing license declaration.Limitations & Caveats
1 year ago
1 day