ChatGPT long text dialogue input method

ChatGPT PROMPTs Splitter is an open-source tool designed to help you split large amounts of contextual data into smaller chunks to send to ChatGPT's prompts, based on how all chunks are processed as received by ChatGPT (or other language models with character limits).

insert image description here

Recommendation: Use NSDT Designer to quickly build programmable 3D scenes.

The tool by default ensures that text is divided into safe chunks of up to 15,000 characters per request, but can be customized as needed.

The project includes an easy-to-use web interface for entering long prompts, choosing a maximum length for each chunk, and copying chunks individually to paste them into ChatGPT.

The ChatGPT PROMPTs Splitter can be downloaded from the GitHub repository.

1. The principle of chatgpt long text segmentation

chatgpt-prompts-splitter splits text into smaller chunks using a simple algorithm. The algorithm is based on the following rules:

  • Divide the prompt into chunks according to the specified maximum length.
  • Add information to the first chunk to instruct AI to receive and confirm the chunk, and wait for the chunk transmission to complete before processing subsequent requests.

2. The main features of chatgpt-prompts-splitter

✅Python 3.9
✅ Web interface for splitting text into smaller chunks
✅ Customizable maximum length for each chunk
✅ Copy chunks individually to send to ChatGPT
✅ ChatGPT instructions on how to process chunks
✅ Tests included
✅ Easy deployment to Vercel

3. Example of using chatgpt-prompts-splitter

Follow these simple steps to use ChatGPT Prompt Splitter Web Application as shown in screenshot.

Step 1: Access the application

Open a web browser and navigate to the Chatgpt-promts-splitter online application URL .

You should see the main screen, showing a long text prompt and an input field for the maximum block length.
insert image description here

Step 2: Enter the long prompt

Enter the text you want to split into smaller chunks for ChatGPT to use.

You can also specify a custom length for each block by entering the number of characters in the "Maximum character length..." field.

In this example, we will divide into chunks of only 25 characters as a basic test.
insert image description here

Step 3: Click "Split"

Click the "Split" button to process the text and break it into smaller chunks.
insert image description here

Step 4: Duplicate the block

The application will display the text divided into smaller chunks. Each block can be copied individually by clicking the "Copy" button next to each block.
insert image description here

Step 5: Paste the block into ChatGPT

Now that you have copied blocks, you can paste them into ChatGPT or any other language model with character restrictions.
insert image description here

Perfect! You've successfully split long prompts into smaller, manageable chunks using the ChatGPT Prompt Splitter.


Original Link: ChatGPT Long Text Dialogue—BimAnt

Guess you like

Origin blog.csdn.net/shebao3333/article/details/131998415