ChatGPT on Steroids: My Techniques to Accelerate OpenAI up to XX Times (+code & templates)
I leverage OpenAI to tackle problems and tasks daily. Exploring AI technologies has led to encountering progressively intricate and captivating challenges. Currently, 80% of my tasks go beyond the capabilities of the chat.openai.com interface, requiring the use of the OpenAI API.?
Examples of tasks I solved:
I want to share my own ways to speed up OpenAI based on my experience. You can ask for the desired method in the comments:
Important notes:
The methods are of different labor intensity, with pros and cons. All methods I have tried on myself, I describe only my experience.
Method #1 / No-Code + Google Sheets
First of all we prepare all the data in Spreadsheet. We build a script in the visual editor Make that processes the original Spreadsheet line by line and writes the result into a neighboring cell.
?? Pros:
?? Cons:?
?? Speed: synchronous execution, approx. one per second.
Write #1 "Nocode Template" in comments I will share a JSON template for the Make platform.
Method #2 / Google Sheets + AppScript
It is similar as the first method. It does not require No-Code platform, flexible and customizable.
The formula (custom app script) used to access Openai servers.
领英推荐
The only thing is that you need to find a working script that interacts with OpenAI API.
?? Pros:
?? Cons:?
?? Speed: about 3-5 queries per second when processing a document line by line.
Write "#2 Spreadsheet Template" - I will send a Spreadsheet with App Script.
Method #3 - Interacting with the API using code
We directly interact with the OpenAI API using any programming language - the speed and result depend on our code. Interacting with OpenAI servers is possible in both single-thread and multi-thread modes.?
I started with a single-thread operation. I reached multithreaded implementation with the following options:
Example: Extracting structured information from a data set
?? Pros:?
?? Cons:?
??? Speed: 10+ queries per second, 1.000.000+ tokens per minute
Write "#3 Python Processor" - I will share my Python multi-thread script.
Lead Software Engineer at Quantori
9 个月#3 Python Processor
Senior Managing Director
9 个月Aleksandr Shamray Very Informative. Thank you for sharing.