Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI prompt splitter #1195

Open
3 tasks done
Frooodle opened this issue Jul 4, 2024 · 2 comments · May be fixed by #1266 or #1357
Open
3 tasks done

AI prompt splitter #1195

Frooodle opened this issue Jul 4, 2024 · 2 comments · May be fixed by #1266 or #1357
Labels
enhancement New feature or request triage

Comments

@Frooodle
Copy link

Frooodle commented Jul 4, 2024

What type of request is this?

New tool idea

Clear and concise description of the feature you are proposing

I often have large infomation and documents i want to sent to a AI, however they have set character limits,
Propose a tool which splits prompts to a set size to allow input into a ai chatbot

Is their example of this tool in the wild?

https://chatgpt-prompt-splitter.jjdiaz.dev/
https://github.com/jupediaz/chatgpt-prompt-splitter

The total length of the content that I want to send you is too large to send in only one piece.
        
For sending you that content, I will follow this rule:
        
[START PART 1/10]
this is the content of the part 1 out of 10 in total
[END PART 1/10]
        
Then you just answer: "Received part 1/10"
        
And when I tell you "ALL PARTS SENT", then you can continue processing the data and answering my requests.

Additional context

No response

Validations

  • Check the feature is not already implemented in the project.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
@Frooodle Frooodle added enhancement New feature or request triage labels Jul 4, 2024
sharevb added a commit to sharevb/it-tools that referenced this issue Aug 23, 2024
@sharevb sharevb linked a pull request Aug 23, 2024 that will close this issue
sharevb added a commit to sharevb/it-tools that referenced this issue Aug 25, 2024
@sharevb
Copy link
Contributor

sharevb commented Aug 25, 2024

Hi @Frooodle and @CorentinTh , implemented in #1266

@gitmotion gitmotion linked a pull request Oct 19, 2024 that will close this issue
@gitmotion
Copy link
Contributor

gitmotion commented Oct 19, 2024

@sharevb oh man i just saw your comment after i finished creating this.. lol welp here's my rendition of this tool if you were interested! @Frooodle @CorentinTh

Pull Request: #1357
Added AI Prompt Splitter functionality:

  • preview here: https://gitmotion-it-tools-beta.vercel.app/ai-prompt-splitter
  • character limit input
  • split counter shown on button and label (dynamically updates as input and/or character limit changes)
  • shows the split prompts
  • copy buttons for Instructions, Full Prompt, Final command, and dynamically generated Copy Parts button
  • copy parts button shows as highlighted to keep track of what was already clicked
  • clear button clears the Content input, split prompts input and copy parts buttons
  • prompt content label includes text count
  • accounts for [START PART X/Y] and [END PART X/Y] for each split to stay within character limit

demo

Want this change?

Check it out here: (https://gitmotion-it-tools-beta.vercel.app/ai-prompt-splitter)

You can use my image in your docker-compose file if you want this functionality along with my other additions until the main branch has been updated. view full list of features added in readme

Installation methods

Docker Image Local Installation
ghcr.io/gitmotion/it-tools:latest git clone -b gitmotion/main https://github.com/gitmotion/it-tools.git && cd it-tools/ && pnpm i && pnpm dev
replace your current image with this image copy & paste oneliner (from github repo)
You may need to clear cache and hard reload to get new features loading Installing packages for the first time may take some time; please wait until it finishes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
3 participants