AI & Machine Learning Interview Questions
Comprehensive AI/ML and LLM interview questions covering fundamental concepts, algorithms, and practical applications. AI/ML Fundamentals Interview questions covering core machine learning concepts, algorithms, and best practices: Easy: Supervised/unsupervised learning, overfitting, bias-variance tradeoff, basic …
Read MoreEasy-level AI/ML interview questions with LangChain examples and Mermaid diagrams. Q1: What is the difference between supervised and unsupervised learning? Answer: Supervised: Has labels (input → output mapping) Unsupervised: No labels (discover structure) LangChain Example: 1from langchain.prompts import …
Read MoreHard-level AI/ML interview questions covering advanced architectures, optimization, and theoretical concepts. Q1: Implement attention mechanism from scratch. Answer: How It Works: Attention allows model to focus on relevant parts of input when producing output. Core Idea: Compute weighted sum of values, where weights …
Read MoreMedium-level AI/ML interview questions covering neural networks, ensemble methods, and advanced concepts. Q1: Explain backpropagation in neural networks. Answer: How It Works: Backpropagation is the algorithm for training neural networks by computing gradients of the loss with respect to weights. Forward Pass: Input …
Read MoreData Augmentation
Comprehensive guide to data augmentation techniques for training robust deep learning models. Why Data Augmentation? Benefits: Increases training data diversity Reduces overfitting Improves model generalization Makes models robust to variations Cost-effective alternative to collecting more data Common Use Cases: …
Read MorePractical recipes for building LLM applications with LangChain: prompts, chains, agents, memory, and RAG. Installation 1# Core LangChain 2pip install langchain langchain-community langchain-core 3 4# OpenAI 5pip install langchain-openai 6 7# Other providers 8pip install langchain-anthropic # Claude 9pip install …
Read MoreSimple stdin chatbot using LangChain with tool calling (OpenRouter). Installation 1pip install langchain langchain-openai python-dotenv Environment Setup 1# .env 2OPENROUTER_API_KEY=your_api_key_here 3OPENROUTER_MODEL=openai/gpt-4-turbo-preview Basic Chatbot 1import os 2from dotenv import load_dotenv 3from …
Read More