Skip to content

Instantly share code, notes, and snippets.

@kleneway
Created February 18, 2023 17:43
Show Gist options
  • Save kleneway/bb781224f4e744450017e4b51abcb34d to your computer and use it in GitHub Desktop.
Save kleneway/bb781224f4e744450017e4b51abcb34d to your computer and use it in GitHub Desktop.
Prompt Example
const inputTopic = "How to care for orchids";
const prompt = `
interface WritingMindMap {
topic: string;
l1: {
name: string;
l2: {
name: string;
details: string;
uniqueInsight?: string;
supportingFacts?: string[];
opposingViews?: string[];
}[];
}[];
}
Topic: ${inputTopic}
Create a mind map on the topic above. List out the central idea, then create main branches, sub-branches, and a sentence of details for each sub-branch.
Avoid repetition. You must output the mind map as a JSON object defined by the TypeScript type definition above.
For optional fields, only include it if it is relevant.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment