Skip to content

Overview

The Anote API is a software developer kit designed for developers to leverage LLMs to train models, make predictions and evaluate the output. There are 3 main API endpoints:

  • Train: Train / Fine Tune LLM.

  • Predict: Do Model Inference on Trained / Zero Shot Models.

  • Evaluate: Evaluate different LLMs to measure performance.

Setup

This setup guide is designed to help get your local development environment setup and send your first API request. Throughout this guide, you will learn:

  • How to setup your Anote account
  • How to install the Anote Python Pip Package
  • How to send your first Anote API request

Step 1: Account setup

First, create an Anote (https://anote.ai/) account or sign in. Next, navigate to the API key page and press the Create new API key button to generate a new API key.

tweets

Copy the API key, and make sure to save this somewhere safe and do not share it with anyone.

Step 2: Installing Python Pip Package

To use the Anote Python library, you need to have Python installed. To ensure you have Python installed, navigate to your Terminal or Command line:

  • MacOS: Open Terminal: You can find it in the Applications folder or search for it using Spotlight (Command + Space).

  • Windows: Open Command Prompt: You can find it by searching "cmd" in the start menu.

Next, enter python3 --version and then press enter, to ensure you see a python version >3.7.

To install the Private Chatbot Python library from the terminal / command line, run:

pip install -U anoteai

Step 3: Sending your first API request

After you have Python configured and set up an API key, the final step is to send a request to the Anote API using the Python library. To do this, create a file named anote-test.py using the terminal or an IDE.

Inside the file, copy and paste the example below:

from anoteai import Anote

api_key = 'INSERT_API_KEY_HERE'
anote = Anote(api_key, isPrivate=True)
You should obtain an anote object.

Supported Models and Tasks

The code below contains the supported model types, task types, and evaluation metrics in our current SDK.

Bases: IntEnum

Source code in fsdk/anote-sdk.py
class NLPTask(IntEnum):
    TEXT_CLASSIFICATION = 0
    NAMED_ENTITY_RECOGNITION = 1
    PROMPTING = 2
    CHATBOT = 3
    UNSUPERVISED = 4

Bases: IntEnum

Source code in fsdk/anote-sdk.py
class ModelType(IntEnum):
    NO_LABEL_TEXT_CLASSIFICATION = 0
    FEW_SHOT_TEXT_CLASSIFICATION = 1
    NAIVE_BAYES_TEXT_CLASSIFICATION = 2
    SETFIT_TEXT_CLASSIFICATION = 3
    NOT_ALL_TEXT_CLASSIFICATION = 4
    FEW_SHOT_NAMED_ENTITY_RECOGNITION = 5
    EXAMPLE_BASED_NAMED_ENTITY_RECOGNITION = 6
    GPT_FOR_PROMPTING = 7
    PROMPT_NAMED_ENTITY_RECOGNITION = 8
    PROMPTING_WITH_FEEDBACK_PROMPT_ENGINEERED = 9
    DUMMY = 10
    GPT_FINETUNING = 11
    RAG_UNSUPERVISED = 12
    ZEROSHOT_GPT4 = 13
    ZEROSHOT_CLAUDE = 14
    ZEROSHOT_LLAMA3 = 15
    ZEROSHOT_MISTRAL = 16
    ZEROSHOT_GPT4MINI = 17
    ZEROSHOT_GEMINI = 18

Bases: IntEnum

Source code in fsdk/anote-sdk.py
class ZeroShotModelType(IntEnum):
    ZERO_SHOT_GPT4 = 0
    ZERO_SHOT_CLAUDE = 1
    ZERO_SHOT_LLAMA3 = 2
    ZERO_SHOT_MISTRAL = 3
    ZERO_SHOT_GPT4_MINI = 4
    ZERO_SHOT_GEMINI = 5

Bases: IntEnum

Source code in fsdk/anote-sdk.py
class EvaluationMetric(IntEnum):
    COSINE_SIM = 0
    BERT_SCORE = 1
    ROUGE_L_F1 = 2
    FAITHFULNESS = 3
    ANSWER_RELEVANCE = 4
    ANOTE_MISLABEL_SCORE = 5
    CONFUSION_MATRIX = 6
    CLASSIFICATION_REPORT = 7
    PRECISION = 8
    RECALL = 9
    F1 = 10
    IOU = 11
    SUPPORT = 12