Repository for the "LLMs for Data Science" course by Bruno Gonçalves (Data For Science, Inc).
Large Language Models (LLMs) are powerful tools that put state-of-the-art AI capabilities at the tip of our fingers. They can process large amounts of data, understand nuance and context, and perform complex tasks at our request. Over the past few years, LLMs have multiplied as have the tools specially built to leverage their capabilities.
In this course, you will learn how to use large language models to perform data science tasks such as summarization, translation, named entity recognition, audio generation, and data processing. We’ll explore the possibilities afforded by the tools and APIs developed by OpenAI, Hugging Face, LangChain, and Pandas AI and how best to apply them to our data science work.
This tutorial is divided into four parts:
Introduction to the fundamental concepts of Generative AI.
- Generative AI
- Large Language Models
- OpenAI
- Hugging Face
- LangChain
Techniques and best practices for designing effective prompts to guide Large Language Models.
- Output formatting
- Prompt Techniques
- Zero-Shot and Few-Shot Prompting
- Chain of Thought
Practical examples of using the HuggingFace transformers library for Natural Language Processing tasks.
- Named-Entity Recognition
- Part-of-Speech Tagging
- Summarization
- Question Answering
Working with Audio: Speech-to-Text and transcription using OpenAI's Whisper model.
- The Whisper model
- Generating audio from text
- Audio transcription
- Automatic Translation
This project manages dependencies using uv (recommended) or standard pip.
- Python 3.13 or higher (as specified in
pyproject.toml)
This repository includes a uv.lock file for reproducible environments.
- Install uv: Follow instructions at docs.astral.sh/uv.
- Sync dependencies:
uv sync
- Run Jupyter:
uv run jupyter notebook
You can install the dependencies directly from the pyproject.toml file.
pip install .The data/ directory contains datasets and media files used in the notebooks, including:
- Datasets:
Apple-Twitter-Sentiment-DFE.csv,Northwind_small.sqlite - Audio:
gettysburg10.wav,pratchett.mp3 - Scripts:
EpiModel.py - Images: Logo and other assets.
|
Web: www.data4sci.com |
