< Back to examples

Interview Question Generator

Generate a list of 5 interview questions for a senior software engineer

Input

Generate a list of 5 interview questions for a senior software engineer

Response

1. What is your experience with software engineering best practices?

2. What programming languages are you comfortable working with?

3. Tell me about a time when you had to manage a complex software project.

4. What would you say is your greatest strength as a software engineer?

5. Have you ever been part of a team that developed a software product from scratch?

API Request

1import cohere
2co = cohere.Client('{apiKey}')
3response = co.generate(
4  model='command',
5  prompt='Generate a list of 5 interview questions for a senior software engineer',
6  max_tokens=500,
7  temperature=1.2,
8  k=0,
9  p=1,
10  frequency_penalty=0,
11  presence_penalty=0,
12  stop_sequences=[],
13  return_likelihoods='NONE')
14print('Prediction: {}'.format(response.generations[0].text))

Parameters

model_sizecommand
max_tokens 500
temperature 1.2
k 0
frequency_penalty 0
p 1
presence_penalty 0