This repo provides some training examples for using the Aleph Alpha API.
The goal of this repo is to provide a set of examples that can be used to easily understand and use the Aleph Alpha API.
In this collection of materials, you will learn how to use the aleph-alpha-client to use Luminous models in python. This is intended to give a structured introduction to the client as well as Luminous model fucntionalities. You can find the exercise Notebooks in the exercises folder and the code templates in boilerplate folder.
To download the material, we use github. You can download the materials by cloning the repository:
git clone https://github.com/Aleph-Alpha/examples.git
The exercises are structured in the following way:
Exercise | Description | Internal Link | Colab Link |
---|---|---|---|
1 | Calling the API | Exercise 1 | |
2 | Simple completion | Exercise 2 | |
3 | Advanced completion | Exercise 3 | |
4 | Prompt_optimization | Exercise 4 | |
5 | A first look into search | Exercise 5 | |
6 | Symmetric vs. Asymmetric Search | Exercise 6 | |
7 | Combining functionalities | Exercise 7 | |
8 | Simple Gradio Demo | Exercise 8 |
The boilerplate folder contains the code templates for using the API. The templates are structured in the following way:
Template | Description | Internal Link | Colab Link |
---|---|---|---|
1 | Calling the API | Template 1 | |
2 | Simple completion | Template 2 | |
3 | Simple search | Template 3 | |
4 | Symmetric and Asymmetric Search | Template 4 | |
5 | Hidden Embeddings | Template 5 | |
6 | Task-specific Endpoints | Template 6 | |
7 | Simple Gradio extraction app | Template 8 |
Template | Description | Internal Link | Colab Link |
---|---|---|---|
1 | completion | Template 1 | |
2 | search | Template 2 | |
3 | qa | Template 3 | |
4 | multimodal | Template 4 | |
5 | atman | Template 5 | |
6 | conversational | Template 5 |