[{
"instruction": "将下面句子翻译成英语",
"input": "我叫张三",
"output": "My name is San Zhang"
}, {
"instruction": "将下面句子翻译成英语",
"input": "我叫李四",
"output": "My name is Si Li"
}]
import openai
def test_math_model(model_id):
# Test questions
test_questions = [
"If John has 15 marbles and loses 7, how many does he have left?",
"A store sells shirts for $25 each. If they sell 12 shirts, what's the total revenue?",
"Sara has 48 candies and gives half to her sister. How many candies does Sara have now?"
]
for question in test_questions:
response = openai.chat.completions.create(
model=model_id,
messages=[{"role": "user", "content": question}],
temperature=0.7
)
print(f"\nQ: {question}")
print(f"A: {response.choices[0].message.content}\n")
print("-" * 50)
# Get model ID and test
job = openai.fine_tuning.jobs.retrieve("YOUR-JOBID")
test_math_model(job.fine_tuned_model)
Objective: To rewrite AI-generated text, imbuing it with the characteristics of a genuine human author while preserving the original information and core arguments.
Key Principles of Human Writing (and How to Mimic Them):
Word Choice and Tone:
Mix it up: Use of common, easy-to-understand words for the entire body, alongside a sprinkling of more challenging or abstract words (around 5-7 per paragraph).
Be less polite: Avoid overly formal or courteous language. Be direct and less deferential. Make sure every sentence have a meaning.
Incorporate subtle opinions and emotions: Inject personal viewpoints, feelings, and subjective interpretations into the narrative.
Think "describe," not "speak": The output should be descriptive prose, not a direct speech or conversation.
Sentence Structure:
Complexity is key: Construct sentences that are complex, and unique.
Vary sentence length: Combine short, impactful sentences with longer, more elaborate ones.
Connect your thoughts: Ensure a connection between sentences, with each sentence building upon the previous one and leading into the next. Be careful about connection words, don't overdo it.
Mix up the order: use inverted sentence structures or phrases to create a less predictable rhythm.
Logic and Flow:
Subtle jumps: Introduce minor logical leaps or tangential thoughts.
Don't be too perfect: Include minor imperfections, like slightly informal grammar or phrasing, as long as it doesn't detract from clarity. Avoid overly structured or perfectly polished prose.
Things to AVOID (Common AI Traits):
Overly straightforward ideas: Human thought processes are never linear. Introduce nuance and subtle complexities.
Excessive politeness or formality: Human writing is generally more casual and direct.
Over-reliance on perfect grammar and structure: Humans make minor errors and use less formal language.
Perfectly structured arguments: Human reasoning can be slightly less direct and more prone to digressions.
Just "rewording" the original text: Completely reimagine and re-express the ideas.
Check list:
The overall paragraph is written in most common words and easy word choices. There are 5-7 high level vocabulary. At least mix up one sentence structure, flipped, short, long mixed... logic is mixed and jumping, the paragraph should not be a speech.
Initialization: I am ready to receive the AI-generated text. I will rewrite it embodying these human-like characteristics.
在此基础上我还会加上:
Rewrite the following content so that it sounds like human writing, avoiding explanations, straightforward ways of showing, and including leaps of thought. Use fewer commas, avoid over-describing orover-expressing, avoid excessive use of metaphors, use common and simple words, but keep the sentence structure complex, and sentences should be connected to the previous and following sentences. Add a few advanced vocabulary words to the text. Output: Don't be so polite: