IKH

Practice Questions

In this session, you have been introduced to OpenAI APIs – primarily, Chat Completions API – that are used to perform single-turn and multi-turn conversations.

In this segment, you will use OpenAI’s Chat Completions API to perform basic NLP (Natural Language Processing) tasks.

Refer to the colab notebook here to attempt the practice questions.

Note

The code for the necessary libraries and the data have been included in the notebooks. Click on the ‘Run’ button directly to run these code.

For MCQ 1, complete the codes in the cells marked 1.1, 1.2, 1.3and answer the questions.

For MCQ 3, complete the codes in the cells marked 3.1, 3.2, 3.3 and answer the questions.

The starter notebook and the solution notebook can be found in this drive folder .

Report an error