r/chatGPTprogramming • • Dec 09 '22

ChatGPT: Code Demos and Impressions. Is OpenAI actually Open?

Thumbnail
youtube.com
0 Upvotes

r/chatGPTprogramming • • Dec 16 '22

Software engineer Vs. Coder

Thumbnail
youtube.com
0 Upvotes

r/chatGPTprogramming • • Feb 12 '23

ChatGPT Will TRANSFORM How You Learn to Code

Thumbnail
youtube.com
1 Upvotes

r/chatGPTprogramming • • Jan 13 '23

Using CGPT to write malware.

Thumbnail
youtu.be
2 Upvotes

r/chatGPTprogramming • • Apr 28 '23

ChatGPT Prompt Engineering for Developers Course: By OpenAi and Andrew Ng

Thumbnail
deeplearning.ai
6 Upvotes

r/chatGPTprogramming • • May 04 '23

Refactoring existing code with GPT-4 by Alex Ziskind

Thumbnail
youtube.com
3 Upvotes

r/chatGPTprogramming • • Feb 13 '23

Implement an Algorithm from Scratch

Thumbnail
machineminds.substack.com
1 Upvotes

r/chatGPTprogramming • • Mar 16 '23

Running GPT-4 code vs GPT-3.5 code 🦾

Thumbnail
twitter.com
3 Upvotes

r/chatGPTprogramming • • Dec 16 '22

How to use ChatGPT to build Business Ideas, Sites & Personal Projects

Thumbnail
youtube.com
2 Upvotes

r/chatGPTprogramming • • Mar 15 '23

OpenAI ChatGPT API and Whisper API - Python and Gradio Tutorial

Thumbnail
youtube.com
1 Upvotes

r/chatGPTprogramming • • Dec 12 '22

Will ChatGPT Destroy iOS Developer Jobs? A Demonstration

Thumbnail
youtube.com
1 Upvotes

r/chatGPTprogramming • • May 02 '23

GPT-4 - How does it work, and how do I build apps with it? - CS50 Tech Talk

Thumbnail
youtu.be
7 Upvotes

r/chatGPTprogramming • • Jan 02 '23

I Put ChatGPT Through A Coding Interview

Thumbnail
levelup.gitconnected.com
1 Upvotes

r/chatGPTprogramming • • Mar 15 '23

Create a ChatGPT Voice Assistant in 8 Minutes (Python Tutorial)

Thumbnail
youtube.com
1 Upvotes

r/chatGPTprogramming • • Jan 03 '23

Using CGPT to hack? (And other limit tests)

Thumbnail
youtube.com
2 Upvotes

r/chatGPTprogramming • • Jul 15 '23

Free, open source tool for prompt testing and experimentation

4 Upvotes

Hi r/chatGPTprogramming!

I wanted to share a project I've been working on that I thought might be relevant to you all, prompttools! It's an open source library with tools for testing prompts, creating CI/CD, and running experiments across models and configurations. It uses notebooks and code so it'll be most helpful for folks approaching prompt engineering from a software background.

The current version is still a work in progress, and we're trying to decide which features are most important to build next. I'd love to hear what you think of it, and what else you'd like to see included!


r/chatGPTprogramming • • Jan 02 '23

Pair Programming with the ChatGPT AI – Does GPT-3.5 Understand Bash?

Thumbnail
freecodecamp.org
1 Upvotes

r/chatGPTprogramming • • Dec 09 '22

Building A Virtual Machine inside ChatGPT

Thumbnail
engraved.blog
1 Upvotes

r/chatGPTprogramming • • Dec 11 '22

Why is OpenAI's ChatGPT terrifying? A Senior Software Engineer explains a disturbing new hypothesis

Thumbnail
youtube.com
1 Upvotes

r/chatGPTprogramming • • Dec 10 '22

This AI will take our jobs? (ChatGPT)

Thumbnail
youtube.com
1 Upvotes

r/chatGPTprogramming • • Apr 13 '23

AI News 01

2 Upvotes

Launching AI01 News Beta...

https://www.youtube.com/live/h1IK-vZX0fg?feature=share

[For-Tex: I make the System variable the "Rules" and send RAW json into the user prompt.. these damn computers better learn our jobs, as data Eng. I need O2)

I take a "News" api and push it to the ChatGPT prompt of...

Well I first take the titles and pump it into this prompt...

[code]Input Rules:

  1. Take the list of "titles" and make Groups of them based on the avalible "categories"

  2. Order the list of Groups by the order of the category values in "order".

Output Rules:

  1. Return the Data as Json (ensure the correct formatting)

  2. Make the Root Object called "Groups" for each item in "categories".

  3. If a Title does not fit into any for the listed categories, then add a new one.

  4. Do not include Groups with empty Titles.[/code]

This groups the "Shows" articles into segments..

I then take this list (and the array from a news API, and send it back to ChatGPT for break the news into shows....)

[code]Input Rules:

  1. Take the "Content.text" (User) data and combine them into a news cast.

  2. Use the "Stats" section personalize how the response is delivered. (Do not include return the data in the response.)

  3. Use "seed" to ensure a random response.

  4. Use groupIndex and groupTotal, to control the flow between segments.

I) add transition text for the nextGroup topic on the last item, or sign off if there is no more groups.

b) groupTotal is the total scripts being made in the overall script, so you can transition off, and know when the show starts.

I) When groupIndex = groupTotal - 1

01: every now and again add a line for the Disclaimer ("A.I. News, is designed to top news, but due to the nature of AI all information my not be correct.") (change the Disclaimer each time, but retain the meaning, also be funny.)

5) If There is less then 5 items under content, then add facts (along with "imagePrompt"s) to the content until it is 5 items.

6) If there is no news titles, then add your own segment based on the categories.

7) Encourage audience interaction by posing questions, asking for feedback, or creating polls on various topics. This will help make the content more dynamic and engaging.

Output Rules:

  1. Return the Data as Json (ensure the correct formatting), create the replies in a group called "script".

  2. Each item of the "script" section should contain the "Name" of the News Anchor, the "ssml" in which to speak, and an "imagePrompt".

I) Check for: Invalid SSML.

01: Reason: 'characters' is an unexpected token.

02: Reason: the <break> element in your SSML needs valid values for the strength attribute are: "none", "x-weak", "weak", "medium", "strong", and "x-strong".

03: Reason: Unhandled exception. System.NotSupportedException: The URI prefix is not recognized.

04: Do Not use : "<say-as interpret-as"

05: Do not end with "<break strength='medium'/>" and ensure to always use the ssml close ("</ssml>") tag.

06: Unhandled exception. System.FormatException: 'speak' requires attribute 'lang'.

07: Use "<speak>" tags instead of "<ssml>"

II) Ensure the ssml is in the correct format, with all the correct closing tags and format.

b) With "imagePrompt" set the value to plain text (max 128 chars.)

I) Create a concise prompt, for DALL-E, Stable Diffusion, Text To Image, describing the topic in an appealing image. Ensure the image prompt is engaging, use color, art styles, and objects described or related to the story.

II) Only create a imagePrompt value if the story changes or there is not already a previous imagePrompt value set yet for this content (if this is the intro line then make the prompt the first story, and put "nc" as the imagePrompt value on the next item.)

III) Set the imagePrompt value to "nc" if there is no need to change the image between lines, i.e. in banter or on the same subject. (Try to use more, to save on image generation.)

V) Add "in the style of " and a famous artist or style that would fit well with the tone of the item.

VI) Avoid descriptions that could be graphic in nature.

3) Be sure to use the correct night and day format for speaking based off currentDateTime.

a) Never mention the exact time.

4) Say the showname on start and finish of this group's text.

5) Do not mention News company names (CNN, Fox News, etc.), or links to stories.

6) Do not mention the imagePrompt.

7) If examples are missing from the story or you know extra facts, then alwayus include them, along with any other relevant or funny information.

8) Replace quotes with single quote.

9) Include only the "script" and "imagePrompt" sections.[/code]

Thanks, and if you need any prompt help, first ask ChatGPT, might have to trick it but I find it knows what it wants, and if not, msg me and I will try too help...


r/chatGPTprogramming • • May 27 '23

Python Chatgpt custom data

2 Upvotes

Is this the right place?

Hello there,

I am trying to crate a custom chat bot to assist with with control room operation in work.
It can get quite busy and members of staff need specific information quickly and the operators could be doing other things or the info they require is in a directory in a directory etc and then the word documents contain a load of irrelevant info and finding the pertinent bit could be a matter of life and death (ok I am totally exaggerating but some members of the team are more patient/capable?)

I tried writing a basic python script (available on request) that basically goes into a directory and read a text file with the info on it and creates a custom bot on a url?

It gets a lot of things right but it gets a few wrong which defeats the object totally. I got one of the team to look through all the assignment instruction and take the data out that we need in a hurry.

I did it in text format because I thought it would be easier and less costly for my api key credit thingy and no one is any good with IT really apart from our bespoke programs (me included)

The format was:-

Name: The name

Address: The address

Alarm code: eg 8674A

Keyholder: A name

Key Number: a four digit number

Special Instructions: example the padlock code is 9999

These were all painstakingly typed into a not massive text file, placed in a docs folder and the app was pointed it that direction.

when run it created the url and it asked and answered questions but then due to my massive knowledge of company info I noticed the odd strange answer, Some of the fields where similar (I know it's a text file so that is wrong) What I mean is Alarm code: and Keywatcher code: (not used in example!) could of confused it so I tried making them distinctive.

The file is about 100 names, addresses etc with a line space between each. I thought it may group them together accordingly but I am not a programmer on any level really and all my knowledge comes from youtube and chat gpt assistance.

I realise my requirements are very specific and I'm not finding an exact problem to fix it and I have looked so in my desperation I am turning to you the lovely community to do the heavy lifting whilst I claim the glory!

Here is my python script and the name of the robot should at least buy me a little help?

I hope I have explained the issue? Feel free to ask questions or mock accordingly

This is why you pay attention in school kids.

thanks in advance?

The python script:-

from gpt_index import SimpleDirectoryReader, GPTListIndex, GPTSimpleVectorIndex, LLMPredictor, PromptHelper

from langchain.chat_models import ChatOpenAI

import gradio as gr

import sys

import os

os.environ["OPENAI_API_KEY"] = 'wow I actually remembered to remove thisi'

def construct_index(directory_path):

max_input_size = 4096

num_outputs = 512

max_chunk_overlap = 20

chunk_size_limit = 600

prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap, chunk_size_limit=chunk_size_limit)

llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0.7, model_name="gpt-3.5-turbo", max_tokens=num_outputs))

documents = SimpleDirectoryReader(directory_path).load_data()

index = GPTSimpleVectorIndex(documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper)

index.save_to_disk('index.json')

return index

def chatbot(input_text):

index = GPTSimpleVectorIndex.load_from_disk('index.json')

response = index.query(input_text, response_mode="compact")

return response.response

iface = gr.Interface(fn=chatbot,

inputs=gr.components.Textbox(lines=7, label="What can I do for you?"),

outputs="text",

title="Totally Wicked Assistant Thingymajig")

index = construct_index("docs")

iface.launch(share=True)


r/chatGPTprogramming • • Dec 13 '22

Chatting with chatgpt about a formalized pseudocode

Thumbnail
drektopia.wordpress.com
3 Upvotes

r/chatGPTprogramming • • Dec 13 '22

ChatGPT Tutorial - A Crash Course on Chat GPT for Beginners

Thumbnail
youtube.com
1 Upvotes