Tutorial on using pre-trained OpenAI language models

Revision as of 18:04, 21 July 2023 by Lchrisman (talk | contribs) (Created page with "'''Under construction -- no ready to be used yet''' In this tutorial you will learn how to use language models (via the OpenAI API) from your Analytica model, and also learn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Under construction -- no ready to be used yet

In this tutorial you will learn how to use language models (via the OpenAI API) from your Analytica model, and also learn about language models and how they work.

Adding the OpenAI API library to your model

( Downloading the library) ( Create new model. Add library to model ) ( Getting and entering the OpenAI API key )

What OpenAI models are available to use?

Generating text completions

Word likelihoods

(tutorial about next token probabilities. logits and perplexity, etc.)

Controlling completion randomness

In-context learning

(What is in-context learning?) (Some examples: Translation, ....)

Creating classifiers using in-context learning

What is a classifer?

(Classifier Task 1)

(Download the training / test set) (Write the n-shot prompt) (Evaluate performance on several test cases)

(Classifier Task 2)

Managing a conversation

Comparing different models

Similarity embeddings

(Uses) (Computing similarities) (Indexing a collection of docs) (Adding similar snippet to LLM prompts)

Comments


You are not allowed to post comments.