Skip to content

Instantly share code, notes, and snippets.

View tanaypratap's full-sized avatar

Tanay Pratap tanaypratap

View GitHub Profile
@tanaypratap
tanaypratap / code.md
Created November 2, 2025 12:46
hw.embedding.agents.rag

RAG implementation reference.


🗂 Folder layout

rag-agent-pgvector/
│
├── data/
│   └── docs.json                # seed KB
@tanaypratap
tanaypratap / a1_sentences.jsonl
Created October 25, 2025 07:18
Simple sentences to train a grade one level language model.
{"sentence": "Boring books."}
{"sentence": "Boring lessons make me sleepy."}
{"sentence": "Boring stories don't keep me awake at night."}
{"sentence": "Doing boring worksheets makes my tummy feel squishy."}
{"sentence": "Probably late."}
{"sentence": "Probably forgot her lunch."}
{"sentence": "Probably tomorrow will be sunny outside."}
{"sentence": "Probably the teacher will be in the classroom today."}
{"sentence": "Machine makes noise."}
{"sentence": "The machine makes toys."}
@tanaypratap
tanaypratap / day2_hw1.md
Created October 5, 2025 12:08
HWs for Day 2: Training a deep neural network

📚 Homework — Explore, Observe, Explain

Goal: tweak small things, watch outcomes, and write short notes on what you observe. No extra code required beyond your lab notebook.


1) Reproducibility

  • What to change: Set torch.manual_seed(0) before model init and training.
  • What to observe: Does the loss trajectory stay the same across reruns?
  • Deliverable: One sentence on why fixed seeds matter.

🚀 Getting Started with CodeSandbox

1️⃣ Sign up for CodeSandbox – Go to https://codesandbox.io/. If you’ve got a GitHub account, sign up with that (makes things smoother!). No GitHub? No problem! Use your Gmail – you can always connect GitHub later. No stress. 😎

2️⃣ Open this starter link: Click here! Once you're signed up, just click on the link and you're good to go. 🚀

3️⃣ Fork the template – Boom! You now have your very own CodeSandbox environment! 🎉 Name it with the exercise name for example A1.1_CW

@tanaypratap
tanaypratap / neog.25.levelZero.css
Created October 1, 2024 13:32
Basic CSS for neoG levelZero mini apps
/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
/* Theme Variables */
:root {
--theme-color: #4A90E2; /* A nice shade of blue */
--font-color: #333;
--font-family: 'Source Sans Pro', sans-serif;
--background-color: #f9f9f9;
--button-hover-color: #357ABD;
@tanaypratap
tanaypratap / tanay-links.md
Last active May 16, 2025 16:20
Links for all of Tanay's Initiatives at one place
@tanaypratap
tanaypratap / tanay-router.md
Last active December 28, 2021 18:00
A router for requests coming to Tanay Pratap in DMs.

tanaypratap's DM router

intro 👋

Hello! Please understand I am writing this with all positive intention. But, I am not reading my DMs anymore. Read ahead..

Understand that I have a full time job, and I try to help people in whatever time I get after office. I can't possibly scale to reply to every DM I get, with my posts reaching lacs of people every week, I can't do 1:1 replies. If you're here, chances are that you sent something in DM the answer to which can be found here.

If you don't find the answer below, then I am sorry, I'll add it sometime. You can meanwhile follow my work and witness me transforming students' lives.

@tanaypratap
tanaypratap / introduction.md
Last active April 27, 2024 07:01
A web developer roadmap for aspiring web developers

using the roadmap

This document should be viewed as an overall guide on what needs to be learnt. If you're an aspiring web dev, treat this as a signpost.

effective way of learning

  • Learn by doing. Practice the code examples yourself.
  • Then creating end to end projects is the best way to assemble all your learning at one place and boost your confidence.

do at your own pace

@tanaypratap
tanaypratap / hiring-partner.md
Last active May 13, 2020 15:39
Invitation to become a hiring partner

invitation for hiring partner

Namaste Industry Leader!

It would be a pleasure to have you and your organisation as a hiring partner. This for the “Job Challenge” I have started for my students. As you might know, I have started teaching programming to students for free from past one year. We have around 20K students learning through variety of social media platforms. This challenge is for them, open for everyone.

what's this challenge?

Participants need to complete the following minimum tasks for the challenge:

  • 5 projects
@tanaypratap
tanaypratap / mentorship-invitation.md
Last active June 24, 2020 05:43
Invitation to be a mentor at this job challenge

invitation for mentorship

Namaste Industry Leader,

You have been invited to be a Mentor for this “Job Challenge” I have started for my students. As you know, I have started teaching programming to college students for free from past one year. We have around 20K students learning through variety of social media platforms. This challenge is for them, open for everyone.

what's this challenge?

Participants need to complete the following minimum tasks for the challenge:

  • 5 projects
  • 3 blogs