Giter Club home page Giter Club logo

chatgpt-prompt-splitter's Introduction

Hi there!

I'm Jose Diaz and I work as Head of IT now, after some years as Fullstack developer and last 6 years as CTO.

With over 15 years of experience in software development, I am highly skilled in building scalable and clean code software.

Passionate about crafting efficient and effective solutions and have successfully led software development teams through the entire development process, from conceptualization to deployment in production environments.

Constantly seek to improve and grow professionally and am fearless in taking on new challenges. My strong desire to learn and evolve helps drive my success in the field.

I have a track record of consistently delivering high-quality software solutions to my clients and am dedicated to achieving optimal results.

Confident in contributing value to any project and am eager to apply my skills and expertise to new opportunities.

  • πŸ‘€ I’m interested in ... Microservices, Agile Methodologies, Clean Code and Software Principles as SOLID, DDD, CQRS, Hexagonal Architecture & TDD
  • 🌱 I’m currently coding ... PHP, Symfony, Laravel, Go, Python
  • I ❀️ ... Microservices
  • πŸ’žοΈ I’m looking to collaborate on ... startups or product development companies

You can reach me at:

Blogs

I write about software development, microservices, clean code, software architecture, and other topics related to software development.

Last posts

Β  Β 

Flag Counter

Visits counted since April 19th, 2023

Top Langs

Languages and Tools:

aws azure bash bootstrap css3 docker figma firebase flutter framer git go grafana graphql html5 hugo javascript jekyll kubernetes laravel mariadb mongodb mysql nextjs nginx nodejs php postgresql postman python rabbitMQ redis sass symfony typescript vuejs

josejdiaz

chatgpt-prompt-splitter's People

Contributors

jupediaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-prompt-splitter's Issues

This script, and any attempt to break a long string into multiple inputs, DOES NOT and CANNOT work. ChatGPT will forget 100% of all snippets, except for the last.

Though you can indeed split up a long text into chunks, and you then feed them all into a ChatGPT chat, this is irrelevant.

The maximum input length in a ChatGPT prompt is equivalent to the maximum context size for ChatGPT. Thus, ChatGPT will "forget" all the previous snippets, and it will only know about the final snippet.

Try it: use this script to break apart a long text. Then quiz it on a detail only present in the first snippet. ChatGPT will have no idea about it, since it's outside of its current context, which is ONLY THE FINAL SNIPPET. (And maybe a bit of the second-to-last snippet, if the final snippet is less than the maximum input length.)

This problem is impossible to solve in a fully satisfactory way. I'd love to have a longer context, too, but this is unfortunately not solvable by breaking apart a long text. The best you can do is have ChatGPT iteratively summarize previous snippets, then feed the summary into the next snippet. You can programmatically do this, and it might work for your purposes.

As for this project, it should have a disclaimer at the top that this script is useless / just for fun, because it's currently just wasting people's time. If you want to salvage this project into something useful, then here's what it could look like:

  • Allow user to input the full text of their long document.
  • Output the first part of the document, along with a request to summarize.
  • Allow the user to input the summary of the first part.
  • Output the next part of the document, along with the summary, and request ChatGPT to summarize both.
  • Repeat until the entire long document is summarized.

The above is a script that would indeed be useful. But the current one is a waste of time and should ethically have a disclaimer at the top.

Call OpenAI API directly and got this error

Thanks for your great idea.
I tried with calling OpenAI API and sent chunks into the conversation context.
Due to the token limit, I got this error:

"type": "InvalidRequestError",
"message": "This model's maximum context length is 4097 tokens. However, your messages resulted in 4415 tokens. Please reduce the length of the messages."

Any suggestion?

Is this even working?

I don't understand how do you guys run this? I get all sorts of errors, from .env (not included) not found to index.html template not found (wrong folder?).

Incorrect Chunk Calculation

Great script, really appreciate your work!

Issue Description:

The "Split into" feature in the demo at https://chatgpt-prompt-splitter.jjdiaz.dev is incorrectly calculating the number of chunks for large inputs. When pasting text with approximately 10,000 characters, the application suggests splitting the text into 11 parts instead of the expected number.

Steps to Reproduce:

Visit https://chatgpt-prompt-splitter.jjdiaz.dev
Copy and paste text with around 10,000 characters into the "Enter the long prompt to be splitted" textarea.
Observe the suggested number of parts in the "Split into" feature.

Temporary Fix:

Select "Max chars length for each splitted part", switch to the "Custom" option, and then switch back to the default option.
Add an empty space into the "Enter the long prompt to be splitted" textarea.

Screenshots:

wXZPwx8lnK

Deployment to Vercel Broken

Clicking the button and using the standard Vercel prompting results in:

This Serverless Function has crashed.

Your connection is working correctly.

Vercel is working correctly.

500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: pdx1::zf5z4-1685748399799-42778bd3fd88

Messages are still too long

Can't seme to get this to work properly via the deployed instance. Tried using GPT-3.5 and 4 but both still say the message submitted was too long.

Instructions section always rendering "1/10"

I've noticed the Instructions section always renders the page count as "1/10". Here's what is provided:

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.

PS: I did read the "contributing guidelines" but I see no option to label this as a "Bug".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.