Skip to content

Instantly share code, notes, and snippets.

View canyon289's full-sized avatar

Ravin Kumar canyon289

View GitHub Profile
@canyon289
canyon289 / README.md
Last active April 28, 2025 03:21
AI Agent Basics README and Dependencies

Welcome!

In this workshop, you'll build a lightweight AI agent from scratch —
one that can recognize when it needs external information, call a tool to get it, and continue the conversation based on real results.

You'll see how modern LLMs can:

  • Detect when a tool call is needed.
  • Call those tools automatically.
  • Dynamically adjust their behavior based on new information.
@canyon289
canyon289 / README.md
Last active March 3, 2025 01:49
Building AI Webapp

🚀 Getting Started

To run this workshop locally, you'll need to set up Ollama and a Python environment using UV.

1. Setting Up Ollama (Most Critical Step)

We’ll be running Gemma 2B locally with Ollama, so you need to set this up first. This step will require a large download (~10GB total) and some hardware considerations.

Install Ollama

Download and install Ollama from https://ollama.com/.

@canyon289
canyon289 / dqn_cartpole_numpy.py
Created October 29, 2024 01:41 — forked from tsu-nera/dqn_cartpole_numpy.py
DQN cartpole with numpy only
import gym
import numpy as np
from collections import deque
from gym import wrappers
# Create the Cart-Pole game environment
env = gym.make('CartPole-v0')
env = wrappers.Monitor(env, '/tmp/cartpole-experiment-1')
def relu(x):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@canyon289
canyon289 / do_I_know_ab_testing.ipynb
Created February 20, 2021 00:35
Seeing if I can explain AB Testing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@canyon289
canyon289 / ppc_difference.ipynb
Last active November 8, 2020 06:25
PPC Difference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.