You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prompt=f"generate 10 questions that are not in reference paper but similar \nSorted Previous Year Questions:\n{decoded_sorted_questions}\n\nNotebook Question List:\n{decoded_notebook_questions}\n\nImportant Topics:\n{decoded_important_topics}\n\nReference Paper:\n{decoded_reference_paper}\n\n"
33
-
34
-
35
-
# Generate questions using OpenAI API
36
-
response=openai.Completion.create(
37
-
engine="davinci",
38
-
prompt=prompt,
39
-
max_tokens=1000, # Adjust the max_tokens value as per your requirement
40
-
temperature=0.4, # Adjust the temperature value to control the creativity of the generated questions
41
-
top_p=1.0,
42
-
frequency_penalty=0.0,
43
-
presence_penalty=0.0,
44
-
n=5# Adjust the 'n' value to generate more or fewer questions
45
-
)
46
-
47
-
# Extract the generated questions from the API response
0 commit comments