Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions docs/opentech/beeaiframework/lab-1/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
---
title: Lab 1
description: Build an agent with BeeAI Framework
title: BeeAI Framework Lab
description: BeeAI Framework Lab
logo: images/BeeAI-Logo-White.png
---

# Build an agent with BeeAI Framework

## Prerequisites

This lab is a [Jupyter notebook](https://jupyter.org/). Please follow the instructions in [prework](../../prework/README.md) before you run the lab.
This lab is a [Jupyter notebook](https://jupyter.org/). Please follow the instructions in [prework](../prework/README.md) for the prerequisites to run the lab.

## Lab

1. Run the following commands to create `beekernel` which has the dependencies from our `pyproject.toml` venv and launch Jupyter Lab.
Launch Jupyter Lab by running the following commands from the `opentech` directory of your `beeai-workshop` cloned repo.

1. Create `beekernel` which will have the dependencies preinstalled in your virtual environment.

```shell
uv run --directory docling ipython kernel install --user --env VIRTUAL_ENV .venv --name=beekernel
```

2. Use `uv` to run Jupyter Lab. The directory and allow_hidden gives us access to `.venv` modules.

```shell
uv run --directory beeai-framework ipython kernel install --user --env VIRTUAL_ENV .venv --name=beekernel
uv run --directory beeai-framework jupyter lab
uv run --directory docling jupyter lab --ContentsManager.allow_hidden=True
```

1. In Jupyter Lab in your browser, walk through the notebook:
3. In Jupyter Lab in your browser, walk through the notebook:

1. Jupyter Lab will open in your browser
1. Navigate to the `notebooks` folder
1. Open `beeai.ipynb`
1. Use the play button to walk through the notebook
1. Be sure to read the text, the code, and the output
1. Close your browser tab when done

1. Exit the Jupyter Lab server by typing CTRL-C, CTRL-C (twice) in the terminal window where you started Jupyter Lab.
4. Exit the Jupyter Lab server by typing CTRL-C, CTRL-C (twice) in the terminal window where you started Jupyter Lab.
20 changes: 7 additions & 13 deletions docs/opentech/beeaiframework/overview/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: Overview
description: Workshop Goals and Learning Objectives
title: BeeAI Framework Workshop Overview
description: Overview
logo: images/BeeAI-Logo-White.png
---

# Workshop Overview: Introduction to the BeeAI Framework
# Introduction to the BeeAI Framework

In this workshop, you'll master the fundamental components of the **BeeAI Framework** by building a Conference Prep Agent that helps field marketing teams prepare for conference season. Through hands-on exercises, you'll learn how to create intelligent agents with real-world applications.
In this workshop, you'll master the fundamental components of the **BeeAI Framework** by building a Conference Prep Agent that helps field marketing teams prepare for conference season. Through hands-on exercises in `Jupyter Lab`, you'll learn how to create intelligent agents with real-world applications.

<hr>

Expand Down Expand Up @@ -45,15 +45,9 @@ Through interactive coding exercises, you'll gain hands-on experience with:

This workshop is designed for immediate hands-on learning through interactive exercises:

1. **Quick Setup**
- Google Account – Required for accessing Google Colab
- Workshop Notebook – Open the notebook <a target="_blank" rel="noopener noreferrer" href="https://colab.research.google.com/github/IBM/beeai-workshop/blob/main/intro_beeai_framework/beeai_framework_workshop_conference_agent.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
- Personal Copy – If you'd like to save your changes, please copy this notebook and create your own version

2. **Interactive Exercises**
- Build your Conference Prep Agent step-by-step
- Complete fill-in-the-blank coding challenges
- Test your agent with real conference scenarios
- Build your Conference Prep Agent step-by-step
- Complete fill-in-the-blank coding challenges
- Test your agent with real conference scenarios

<hr>

Expand Down
65 changes: 65 additions & 0 deletions docs/opentech/beeaiframework/prework/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
title: BeeAI Framework Workshop Prework
description: Preparation for the lab
logo: images/BeeAI-Logo-White.png
---

These are the required applications and general installation notes for this lab.

## Required Software and Models

- [Ollama](#install-ollama) - Allows you to locally host LLM models on your computer.
- [Models](#pull-models-with-ollama) - Pull models to run with Ollama.
- [uv](#install-uv) - Provides Python, packages, and virtual environments.

## Install Ollama

Most users can simply download from the Ollama [website](https://ollama.com/download).

## Pull models with Ollama

Please pull the models to be used in the workshop before arriving at the workshop!

```shell
ollama pull granite4:micro-h
```

## Chat with the model

For a quick test, you can use the ollama CLI to ask the model a question.

```shell
ollama run granite4:micro-h "what model am I chatting with and and who created you?"
```

## Install `uv`

We will be using [`uv`](https://github.com/astral-sh/uv) as your Python package and environment manager. If you’re unfamiliar with `uv`, refer to the [uv installation guide](https://github.com/astral-sh/uv#installation). `uv` is a fast and modern alternative to pip and virtualenv, fully compatible with both.

### macOS/Linux

```shell
curl -LsSf https://astral.sh/uv/install.sh | sh
```

### Windows

```shell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```

## Install project Python dependencies

Preinstall all the packages used in the demo, installed in the correct virtual environment using `uv`.

1. Navigate to the specific demo folder for this workshop:

```bash
cd beeai-workshop/opentech
```

2. Install all required python dependencies for the project:

```bash
uv sync --directory beeaiframework
```
2 changes: 1 addition & 1 deletion docs/opentech/docling/prework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Preinstall all the packages used in the demo, installed in the correct virtual e
cd beeai-workshop/opentech
```

2. Install all required python dependencies for the 4 sub-projects:
2. Install all required python dependencies for the project:

```bash
uv sync --directory docling
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ nav:
- Agentic AI Labs:
- BeeAI Framework:
- Overview: opentech/beeaiframework/overview/README.md
- Prework: opentech/beeaiframework/prework/README.md
- Lab: opentech/beeaiframework/lab-1/README.md
- Agent Stack:
- Overview: opentech/agentstack/overview/README.md
Expand Down
Loading