chatgpt-prompt-splitter  by jupediaz

CLI tool for splitting prompts into smaller chunks for ChatGPT

Created 2 years ago
562 stars

Top 57.2% on SourcePulse

GitHubView on GitHub
Project Summary

This tool addresses the common limitation of character count restrictions in large language models like ChatGPT by splitting lengthy text prompts into manageable chunks. It is designed for users who need to process extensive text inputs, providing a practical solution to bypass input size limits and ensure uninterrupted interaction with AI models.

How It Works

The tool employs a straightforward algorithm to segment text based on a user-defined maximum character length per chunk, defaulting to 15,000 characters. Crucially, it prepends instructions to the first chunk, guiding the AI on how to receive and acknowledge sequential parts before processing the complete input, thereby maintaining context and workflow integrity.

Quick Start & Requirements

  • Install dependencies: pip install -r requirements.txt
  • Run locally: vercel dev (access at http://localhost:3000)
  • Deploy: vercel --prod (access at https://chatgpt-prompt-splitter.jjdiaz.dev/)
  • Prerequisites: Python 3.x, Flask.
  • Official Demo: https://chatgpt-prompt-splitter.jjdiaz.dev/

Highlighted Details

  • Web interface for easy text input and chunk management.
  • Customizable chunk length up to 15,000 characters.
  • Includes instructions for the AI to handle chunked input.
  • Unit tests are provided for validation.

Maintenance & Community

The project is maintained by jupediaz. Contributions are welcome via the CONTRIBUTING file. Contact is available at hello@jjdiaz.dev.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The tool is a single-purpose utility focused on prompt splitting; it does not offer advanced text processing or AI interaction features beyond chunk management. The project is at version 1.0.0, indicating it is an initial release.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
3 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
6 more.

prompt-engine by microsoft

0.1%
3k
NPM library for LLM prompt engineering
Created 3 years ago
Updated 2 years ago
Feedback? Help us improve.