[READ-ONLY] Mirror of https://github.com/just-cameron/odsc-2025.
0

Configure Feed

Select the types of activity you want to include in your feed.

Jupyter Notebook 99.9%
Python 0.1%
15 1 0

Clone this repository

https://git.vm.fail/cameron.stream/odsc-2025 https://git.vm.fail/did:plc:zn2prnidl5mxxhirbhbp62hu
ssh://git@knot1.tangled.sh:2222/cameron.stream/odsc-2025 ssh://git@knot1.tangled.sh:2222/did:plc:zn2prnidl5mxxhirbhbp62hu

For self-hosted knots, clone URLs may differ based on your setup.


README.md

ODSC AI Builders Summit#

This repository contains resources for my talk on applying structured language model outputs to RAG applications. We will use Outlines for structured output and Milvus as a vector database.

The workshop is intended to be run entirely on your computer as a Jupyter Notebook. RAG and language models can both be computationally intensive, so the workshop is designed to be accessible to users with all levels of hardware.

Note that this means you will need to download model weights for both an embedding model and a language model.

Download the model weights before the course! It will be hard to follow along if you are waiting for the model(s) to download.

Setup#

  1. Clone this repository
git clone https://github.com/cpfiffer/odsc-2025.git
cd odsc-2025
  1. Install requirements

You must install the package from the requirements.txt file in the repository:

pip install -r requirements.txt

You can also install the packages directly with pip, though the requirements.txt install method is recommended.

pip install "pymilvus[model]" "outlines[transformers]" datasets sentence-transformers scikit-learn matplotlib pandas einops jupyterlab sentencepiece
  1. Download the models

You will need to download the models in advance.

Please run the script prep.py to download

  • The embedding model mixedbread-ai/mxbai-embed-xsmall-v1
  • The language model Qwen/Qwen2.5-1.5B-Instruct
  1. Start Jupyter

As this is a notebook, you will need some form of Jupyter notebook viewer. The requirements.txt file will install Jupyter Lab by default.

To run Jupyter Lab, run

jupyter lab

and open the lesson.ipynb notebook.