Gen-AI Developer Classroom notes 15/Aug/2026

Usecase Short news: Take the news and create a 40-45 word short news in english and any regional language. recommendations: Pick a model which is good at generating regional content Git Commit Messages: Any organization will have a structure for git commit : <JIRA|REQ-ID>: <Description> <Category>: <feature|defect|poc> For the git problem try to take the… Continue reading Gen-AI Developer Classroom notes 15/Aug/2026

Python Classroom notes 13/Aug/2026

Data Validation FastApi uses pydantic Create a simple file models.py from pydantic import BaseModel class ProductResponse(BaseModel): name: str price: float description: str class ProductRequest(ProductResponse): id: int Use this schema in main.py from fastapi import FastAPI, status from models import ProductRequest, ProductResponse # create an application object app = FastAPI() @app.get("/") def home(): return "Welcome to… Continue reading Python Classroom notes 13/Aug/2026

Python Classroom notes 03/Aug/2026

Web Programming Here we have two problems to solve Web serving html pages => Web APP Frameworks: Django Web serving data/actions/method => APIs Frameworks: FastAPI Flask Django-restful our focus: APIs with FastAPI Lets use a calculator which is hosted as api Instructions to run an api server on your system git clone https://github.com/asquarezone/Python.git cd Python/Aug26/WebAPIs/using_apis/calc… Continue reading Python Classroom notes 03/Aug/2026

Gen-AI Developer Classroom notes 03/Aug/2026

Transformers contd Lets play with transformers Running a small llm in google colab import torch from transformers import AutoTokenizer, AutoModelForCausalLM model_name = "Qwen/Qwen3-0.6B" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForCausalLM.from_pretrained( model_name, torch_dtype="auto", device_map="auto" ) prompt = "Explain Democracy in simple words." messages = [ {"role": "user", "content": prompt} ] text = tokenizer.apply_chat_template( messages, tokenize=False, add_generation_prompt=True )… Continue reading Gen-AI Developer Classroom notes 03/Aug/2026

Python Classroom notes 29/Jul/2026

We want to store history of calculations Refer Here for the commit Dependency Injection injecting dependecies: Ensure your functions or methods dont create objects but take objects as arguments Deciding which objects to create (Container)

Gen-AI Developer Classroom notes 29/Jul/2026

Evolution Machine Learning Neural Networks + Deep Learning Natural language Processing Word2Vec => Numerical vector => Semantics Embeddings (Evolution of Word2Vec) Transformers and Attention Hardware: GPU, TPU

Python Classroom notes 28/Jul/2026

Decorator Decorators add additional functionality to existing functions or classes. To write our own decorators, we need to understand the concept of nested functions Refer Here Exercise We have a code which does calcualations When the user chooses the option verbose I’m supposed to print each variable value (args) Calculator We support multiple types of… Continue reading Python Classroom notes 28/Jul/2026

Gen-AI Developer Classroom notes 25/Jul/2026

Handling Document Updates When the source documents change, How to handle them Strategy 1: Full re-index Strategy 2: Content hashing + incremental upsert Strategy 3: Langchain’s built in indexing API Strategy 4: Document level versioning + soft delete. Refer Here for illustration Project: NCERT Book RAG Refer Here for the project repo