Skip to content

Instantly share code, notes, and snippets.

@Vetrivel-VP
Created January 9, 2025 06:48
Show Gist options
  • Save Vetrivel-VP/9f54bc244c92ae3f6c53b5c2336cb975 to your computer and use it in GitHub Desktop.
Save Vetrivel-VP/9f54bc244c92ae3f6c53b5c2336cb975 to your computer and use it in GitHub Desktop.
Gemini AI Mock Interview
const prompt = `
As an experienced prompt engineer, generate a JSON array containing 5 technical interview questions along with detailed answers based on the following job information. Each object in the array should have the fields "question" and "answer", formatted as follows:
[
{ "question": "<Question text>", "answer": "<Answer text>" },
...
]
Job Information:
- Job Position: ${data?.position}
- Job Description: ${data?.description}
- Years of Experience Required: ${data?.experience}
- Tech Stacks: ${data?.techStack}
The questions should assess skills in ${data?.techStack} development and best practices, problem-solving, and experience handling complex requirements. Please format the output strictly as an array of JSON objects without any additional labels, code blocks, or explanations. Return only the JSON array with questions and answers.
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment