Home » ChatGPT’s New “Custom Instructions” Feature Gets More Personal | by Jim Clyde Monge | Jul, 2023

ChatGPT’s New “Custom Instructions” Feature Gets More Personal | by Jim Clyde Monge | Jul, 2023

by Narnia
0 comment
ChatGPT’s New “Custom Instructions” Feature Gets More Personal
Image by Jim Clyde Monge

If you’ve been utilizing ChatGPT for a while, you may need seen that the instrument begins every new dialog from scratch, with no context from earlier chats.

That’s about to alter.

OpenAI has simply launched a brand new characteristic known as “Custom Instructions.” This characteristic gives a spot to tell your chatbot about issues it ought to all the time keep in mind and the way you need it to reply to your questions earlier than you even ask them.

What is “Custom Instructions” characteristic?

Custom directions offer you extra management over how ChatGPT responds to your directions. It permits you to present ChatGPT with particular data that it may use to enhance its responses.

For instance, you may inform ChatGPT that you simply’re a programmer and also you solely need the responses to be written in C++.

Here’s an instance:

What ChatGPT ought to know: I’m a software program developer and solely use C++

How would you like ChatGPT to reply: When I ask you for code, please add feedback to higher clarify what the code does. Also, use probably the most environment friendly implementation.

ChatGPT custom instructions screenshot
Image by Jim Clyde Monge

After clicking on the “Save” button, you can begin using these customized directions.

Prompt: Write me code for getting the nth quantity within the Fibonacci sequence

#embody <iostream>
#embody <vector>

// Function to calculate nth Fibonacci quantity
int fibonacci(int n) {
// Create a vector to retailer the Fibonacci numbers as much as n
std::vector<int> fib(n+1, 0);

// Base circumstances: 1st and 2nd Fibonacci numbers are 1
fib[0] = 0;
fib[1] = 1;

// Compute Fibonacci numbers from third to nth
for(int i = 2; i <= n; i++) {
// The ith Fibonacci quantity is the sum of the earlier two
fib[i] = fib[i-1] + fib[i-2];
}

// Return the nth Fibonacci quantity
return fib[n];
}

int essential() {
// Test the operate with the tenth Fibonacci quantity
std::cout << "The tenth Fibonacci quantity is: " << fibonacci(10) << std::endl;
return 0;
}

You may also like

Leave a Comment