Skip to content

Slides and Code for my talk at PyConZA 2024 on "Applying AI with Python"

Notifications You must be signed in to change notification settings

alxcnwy/Applying-ai-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Applying AI with Python

░▒▓███████▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░  
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ 
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░      ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ 
░▒▓███████▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░      ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ 
░▒▓█▓▒░         ░▒▓█▓▒░   ░▒▓█▓▒░      ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ 
░▒▓█▓▒░         ░▒▓█▓▒░   ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ 
░▒▓█▓▒░         ░▒▓█▓▒░    ░▒▓██████▓▒░ ░▒▓██████▓▒░░▒▓█▓▒░░▒▓█▓▒░

Slides and code for "Applying AI with Python" talk at PyConZA 2024.

This code introduces a novel agent architecture that demonstrates self-reflection, tool use and reasoning.

Agent Architecture

Slides and Video

Slides are in this repo.

Video coming soon.

Code Examples

  • Tables
    • TableData.ipynb
      • Linear Regression to Predict Wine Quality
      • XGBoost to Predict Wine Quality
      • Logistic Regression to Predict Wine Colour
      • XGBoost to Predict Wine Colour
  • Images
    • Classification and Visual Search.ipynb
      • Fine-Tune ResNet to predict clothing categories
      • Use ResNet embeddings to do image similarity search
    • Object Detection.ipynb
      • Use YOLO to detect objects in images
    • Segmentation.ipynb
      • Use SAM2 to segment objects in images
  • Speech
    • Transcribe.ipynb
      • Uses Whisper to transcribe podcast clips
  • Text
    • 1. Scrape PyConZA2024.ipynb
      • Scrapes PyCon speaker data
    • 2. ETL – Load Documents into Database.ipynb
      • Enriches speaker data and loads data into vector and SQL database
    • 3. Rag.ipybn
      • Implements retrieval augmented generation (RAG) on the pycon data
  • Agents
    • Agent.ipynb
      • Implements agent with self-reflection and SQL tool use to improve RAG on conference data.

Contributions

Welcome! Especially on the agent stuff :)

Contact

Speaker: Alex Conway

About

Slides and Code for my talk at PyConZA 2024 on "Applying AI with Python"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published