Added code examples that correspond to each prompt format
#10
by
macadeliccc
- opened
Output from Single-turn demo:
GPT4 Correct User: Hello, how are you? GPT4 Correct Assistant: I'm doing great, thank you for asking! How can I assist you today?
Output from multi-turn demo:
GPT4 Correct User: Hello GPT4 Correct Assistant: GPT4 Correct User: How are you today? GPT4 Correct Assistant: I'm doing great, thank you for asking! How about you?
Output from coding demo:
Coding conversation response: Code User: Implement quicksort using C++ Code Assistant: Here's an example of how you can implement quicksort in C++:
#include <iostream>
using namespace std;
void quickSort(int arr[], int left, int right) {
int i = left, j = right;
int tmp;
int pivot = arr[(left + right) / 2];
/* partition */
while (i <= j) {
while (arr[i] < pivot)
i++;
while (arr[j] > pivot)
j--;
if (i <= j) {
tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp;
i++;
j--;
}
};
/* recursion */
if (left < j)
quickSort(arr, left, j);
if (i < right)
quickSort(arr, i, right);
}
banghua
changed pull request status to
merged