Skip to main content

Step 1: Install Required Libraries

Step 2: Set Up API Configuration

Step 3: Define Your Models

Define the input and output models for your task. Here we define the input and output models for the sentiment analysis task, which involves analyzing the sentiment of a given text.

Step 4: Create a Function

Create a function that encapsulates the task’s objective, how the prompt is structured, and the expected inputs and outputs. In this case, we define a function for the sentiment analysis task.

Step 5: Get results from Zenbase function