Artificial Intelligence
54.5K subscribers
490 photos
4 videos
120 files
422 links
πŸ”° Machine Learning & Artificial Intelligence Free Resources

πŸ”° Learn Data Science, Deep Learning, Python with Tensorflow, Keras & many more

For Promotions: @love_data
Download Telegram
AI Interview Questions with Answers Part 3

21. What is Machine Learning, and how does it work? 

Machine Learning (ML) is a subset of Artificial Intelligence that enables computers to learn patterns from data and make predictions or decisions without being explicitly programmed.

How it works: 
β€’ Collect data
β€’ Train a model
β€’ Evaluate performance
β€’ Make predictions on new data
β€’ Improve with more data

Example: Predicting house prices based on historical data. 

22. What are the different types of Machine Learning? 

There are four main types: 
β€’ Supervised Learning: Learns from labeled data.
β€’ Unsupervised Learning: Finds patterns in unlabeled data.
β€’ Semi-Supervised Learning: Uses a small amount of labeled data with a large amount of unlabeled data.
β€’ Reinforcement Learning: Learns through rewards and penalties.

23. What is Supervised Learning, and when is it used? 

Supervised Learning trains a model using labeled data, where both input and expected output are known.

Common applications: 
β€’ Spam email detection
β€’ House price prediction
β€’ Customer churn prediction
β€’ Image classification

Popular algorithms include: 
β€’ Linear Regression
β€’ Logistic Regression
β€’ Decision Tree
β€’ Random Forest
β€’ Support Vector Machine (SVM)

24. What is Unsupervised Learning, and what are its applications? 

Unsupervised Learning works with unlabeled data to discover hidden patterns or group similar data points.

Applications: 
β€’ Customer segmentation
β€’ Market basket analysis
β€’ Anomaly detection
β€’ Recommendation systems

Popular algorithms: 
β€’ K-Means
β€’ DBSCAN
β€’ Hierarchical Clustering
β€’ PCA

25. What is Reinforcement Learning, and how does it differ from other learning methods? 

Reinforcement Learning (RL) is a learning method where an agent interacts with an environment and learns by receiving rewards or penalties.

Unlike supervised learning, RL does not require labeled data. Instead, it learns through trial and error to maximize cumulative rewards.

Applications: 
β€’ Robotics
β€’ Self-driving cars
β€’ Game AI
β€’ Resource optimization

26. What is a dataset, and what are its components? 

A dataset is a collection of related data used to train and evaluate Machine Learning models.

Its main components include: 
β€’ Features: Input variables
β€’ Labels or Target: Output variable
β€’ Rows: Observations
β€’ Columns: Attributes

27. What is the difference between training data, validation data, and testing data? 

β€’ Training Data: Used to train the model.
β€’ Validation Data: Used to tune hyperparameters and improve the model during development.
β€’ Testing Data: Used only after training to evaluate the model's final performance.

A common split is 70 percent Training, 15 percent Validation, and 15 percent Testing.

28. What is the difference between features and labels in Machine Learning? 

β€’ Features: Input variables used by the model to make predictions.
β€’ Labels or Target: The correct output the model is trying to predict.

Example: 
For house price prediction: 
β€’ Features β†’ Area, Bedrooms, Location
β€’ Label β†’ House Price

29. What is overfitting, and how can it be prevented? 

Overfitting occurs when a model learns the training data too well, including noise, resulting in poor performance on unseen data.

Prevention techniques: 
β€’ Use more training data
β€’ Cross-validation
β€’ Regularization (L1 or L2)
β€’ Dropout for neural networks
β€’ Early stopping
β€’ Simplify the model

30. What is underfitting, and how can it be fixed? 

Underfitting occurs when a model is too simple to capture patterns in the data, leading to poor performance on both training and testing data.

Solutions: 
β€’ Increase model complexity
β€’ Add more relevant features
β€’ Reduce regularization
β€’ Train for more epochs
β€’ Use a better algorithm

Double Tap ❀️ For Part-4
❀16
πŸš€ AI Interview Questions with Answers (Part 4)

31. What is the bias-variance tradeoff in Machine Learning?

The bias-variance tradeoff is the balance between a model that is too simple (high bias) and one that is too complex (high variance).

- High Bias: Causes underfitting because the model cannot capture underlying patterns.
- High Variance: Causes overfitting because the model learns noise from the training data.

The goal is to achieve a balance that provides good performance on unseen data.

---

32. What is cross-validation, and why is it important?

Cross-validation is a technique used to evaluate how well a Machine Learning model generalizes to unseen data.

The most common method is K-Fold Cross-Validation, where the dataset is divided into K equal parts. The model is trained K times, each time using a different fold for testing and the remaining folds for training.

Benefits:

- Reduces overfitting
- Provides a more reliable performance estimate
- Makes better use of limited data

---

33. What is feature engineering, and why does it matter?

Feature engineering is the process of creating, transforming, or selecting input features to improve model performance.

Common techniques include:

- Creating new features
- Encoding categorical variables
- Handling missing values
- Scaling numerical features
- Extracting date and time features

Good feature engineering often improves accuracy more than changing algorithms.

---

34. What is feature scaling, and when should it be used?

Feature scaling transforms numerical values to a similar range so that no feature dominates others.

It is especially important for algorithms like:

- K-Nearest Neighbors (KNN)
- Support Vector Machine (SVM)
- K-Means Clustering
- Neural Networks

Common methods:

- Normalization
- Standardization

---

35. What is the difference between normalization and standardization?

Normalization

- Scales values between 0 and 1.
- Best when data has no normal distribution.
- Uses Min-Max Scaling.

Standardization

- Transforms data to have a mean of 0 and a standard deviation of 1.
- Works well when data follows a normal distribution.
- Uses Z-score scaling.

---

36. How do you evaluate the performance of a Machine Learning model?

The evaluation metric depends on the problem type.

For Classification:

- Accuracy
- Precision
- Recall
- F1-Score
- ROC-AUC

For Regression:

- Mean Absolute Error (MAE)
- Mean Squared Error (MSE)
- Root Mean Squared Error (RMSE)
- RΒ² Score

---

37. What is the difference between accuracy and precision?

Accuracy

- Measures the percentage of all predictions that are correct.
- Best when classes are balanced.

Formula:
Accuracy = (Correct Predictions / Total Predictions)

Precision

- Measures how many predicted positive cases are actually positive.

Formula:
Precision = TP / (TP + FP)

Precision is important when false positives are costly, such as spam detection.

---

38. What is the difference between recall and F1-Score?

Recall

- Measures how many actual positive cases were correctly identified.

Formula:
Recall = TP / (TP + FN)

F1-Score

- Harmonic mean of Precision and Recall.

Formula:
F1 = 2 Γ— (Precision Γ— Recall) / (Precision + Recall)

F1-Score is useful when dealing with imbalanced datasets.

---

39. What is a confusion matrix, and how do you interpret it?

A confusion matrix is a table used to evaluate classification models.

It contains four outcomes:

- True Positive (TP): Correctly predicted positive.
- True Negative (TN): Correctly predicted negative.
- False Positive (FP): Incorrectly predicted positive.
- False Negative (FN): Incorrectly predicted negative.

It helps calculate Accuracy, Precision, Recall, and F1-Score.

---

40. What is the ROC-AUC curve, and why is it useful?

The ROC (Receiver Operating Characteristic) Curve plots the True Positive Rate (Recall) against the False Positive Rate at different thresholds.

AUC (Area Under the Curve) measures the model's ability to distinguish between classes.
❀3
- AUC = 1.0: Perfect classifier
- AUC = 0.5: Random guessing
- Higher AUC: Better model performance

ROC-AUC is especially useful for evaluating binary classification models.

Double Tap ❀️ For Part-5
❀3
GigaChat 3.5 Ultra Publicly Released β€” The New Generation of the Flagship Model

The GigaChat team has released GigaChat 3.5 Ultra as open sourceβ€”a new 432B model under the MIT license. This is the first open-source hybrid of GatedDeltaNet and MLA scaled to hundreds of billions of parameters, featuring a proprietary training recipe we refined through more than 1,500 experiments. The model has grown in terms of code, mathematics, agent scenarios, and application domainsβ€”yet it’s 40% smaller than GigaChat 3.1 Ultra.


What’s inside:

πŸ”˜A proprietary hybrid MLA + Gated DeltaNet architecture with a dedicated stabilization framework, without which this hybrid setup would not train reliably at this scale;
πŸ”˜ Gated Attention: the model can locally down-weight overly strong signals from the attention layer;
πŸ”˜GatedNorm: normalization with an explicit gate that controls signal magnitude across features;
πŸ”˜Approximately 4x lower KV cache per token: with the same memory budget, the model can support 2.14x longer context and deliver a 20% throughput increase under load;
πŸ”˜Two MTP heads, enabling up to 2.2x faster generation;
πŸ”˜FP8 across all training stages with no quality degradation compared with bf16, enabled by custom Triton and CUDA kernels;
πŸ”˜A new online RL stage after SFT and DPO.

Results:

πŸ”˜ GigaChat-3.5-Ultra-Base outperforms DeepSeek V3.2 Exp Base and DeepSeek V4 Flash Base on average across a set of general, math, and code benchmarks:
πŸ”˜ GigaChat-3.5-Ultra-Instruct is comparable to DeepSeek V3.2 in terms of average score, despite having half the size;
πŸ”˜ According to the MiniMax-M2.7 LLM judge, the average win rate against GigaChat 3.1 Ultra is 75.9%, and against GPT-5 is 68.7%.

The entire stack β€” data (our own LLM-filtered Common Crawl, 600+ programming languages in the code), architecture, training methodology, and infrastructure β€” was built end-to-end by GigaChat team.

➑️ HuggingFace
Please open Telegram to view this post
VIEW IN TELEGRAM
❀6
πŸš€ AI Interview Questions with Answers (Part 5)

41. What is the difference between regression and classification?

Regression and classification are two types of supervised learning problems.

Regression

Predicts continuous numerical values.

Output is a number.

Examples: House price prediction, stock price forecasting, sales prediction.

Classification

Predicts discrete categories or labels.

Output is a class.

Examples: Spam detection, disease diagnosis, sentiment analysis.

42. What is clustering, and what are the common clustering algorithms?

Clustering is an unsupervised learning technique that groups similar data points without using labeled data.

Common clustering algorithms:

K-Means

Hierarchical Clustering

DBSCAN

Mean Shift

Applications:

Customer segmentation

Image segmentation

Fraud detection

Document grouping

43. What is dimensionality reduction, and why is it important?

Dimensionality reduction is the process of reducing the number of input features while preserving the most important information.

Benefits:

Reduces training time

Improves model performance

Removes redundant features

Reduces overfitting

Makes data easier to visualize

Popular techniques include PCA and t-SNE.

44. What is Principal Component Analysis (PCA), and how does it work?

Principal Component Analysis (PCA) is a dimensionality reduction technique that transforms correlated features into a smaller set of uncorrelated variables called principal components.

Advantages:

Reduces feature dimensions

Improves computational efficiency

Removes redundancy

Helps visualize high-dimensional data

45. What is hyperparameter tuning, and why is it necessary?

Hyperparameter tuning is the process of finding the best values for parameters that are set before training a model.

Examples of hyperparameters:

Learning rate

Number of trees

Maximum tree depth

Batch size

Number of epochs

Proper tuning improves model accuracy and generalization.

46. What is Grid Search, and how does it optimize model performance?

Grid Search is a hyperparameter optimization technique that tries every possible combination of predefined parameter values.

Advantages:

Finds the optimal parameter combination

Easy to implement

Disadvantages:

Computationally expensive

Slow for large search spaces

47. What is Random Search, and how does it compare to Grid Search?

Random Search randomly selects combinations of hyperparameters instead of testing every possible combination.

Compared to Grid Search:

Faster

Less computationally expensive

Often finds equally good or better results for large parameter spaces

It is commonly used when computational resources are limited.

48. What is AutoML, and what are its benefits?

AutoML (Automated Machine Learning) automates many steps of the Machine Learning workflow, including:

Data preprocessing

Feature engineering

Model selection

Hyperparameter tuning

Model evaluation

Benefits:

Saves time

Reduces manual effort

Makes ML accessible to beginners

Speeds up model development

49. What is ensemble learning, and why is it effective?

Ensemble learning combines predictions from multiple models to produce a more accurate and robust result than a single model.

Advantages:

Higher accuracy

Better generalization

Reduced overfitting

More stable predictions

Popular ensemble methods include Random Forest, XGBoost, LightGBM, and AdaBoost.

50. What is the difference between bagging and boosting?

Bagging (Bootstrap Aggregating)

Trains multiple models independently.

Combines their predictions using voting or averaging.

Reduces variance.

Example: Random Forest.

Boosting

Trains models sequentially, where each new model focuses on correcting the errors of the previous one.

Reduces bias.

Examples: AdaBoost, Gradient Boosting, XGBoost, LightGBM, CatBoost.

Key Difference: Bagging builds independent models in parallel, while boosting builds dependent models sequentially to improve performance.

Double Tap ❀️ For Part-6
❀7
πŸš€ AI Interview Questions with Answers (Part 6)

51. What is Deep Learning, and how is it different from Machine Learning?

Deep Learning is a subset of Machine Learning that uses artificial neural networks with multiple hidden layers to learn complex patterns from large datasets.

Machine Learning

- Often requires manual feature engineering.
- Works well with smaller datasets.
- Less computationally intensive.

Deep Learning

- Automatically learns features from raw data.
- Performs better on large datasets.
- Requires high computational power (GPUs/TPUs).

Applications: Image recognition, speech recognition, NLP, autonomous vehicles.

---

52. What is an artificial neural network, and how does it work?

An Artificial Neural Network (ANN) is a computational model inspired by the human brain. It consists of interconnected neurons that process information.

Components:

- Input Layer
- Hidden Layer(s)
- Output Layer

How it works:

1. Input data is fed into the network.
2. Each neuron applies weights and an activation function.
3. The output is passed to the next layer.
4. The final prediction is generated.
5. Errors are minimized using backpropagation.

---

53. What is a perceptron in Deep Learning?

A perceptron is the simplest type of artificial neuron and the basic building block of neural networks.

It:

- Receives input values.
- Multiplies them by weights.
- Adds a bias.
- Applies an activation function.
- Produces an output.

Perceptrons are suitable only for solving linearly separable problems.

---

54. What are hidden layers in a neural network?

Hidden layers are the layers between the input and output layers.

Their purpose is to:

- Learn complex patterns.
- Extract useful features.
- Improve prediction accuracy.

Deep Learning models typically contain multiple hidden layers, enabling them to solve complex tasks.

---

55. What are activation functions, and why are they used?

Activation functions determine whether a neuron should be activated and introduce non-linearity into neural networks.

Without activation functions, a neural network behaves like a simple linear model and cannot solve complex problems.

Common activation functions include:

- ReLU
- Sigmoid
- Tanh
- Softmax

---

56. What is the difference between ReLU, Sigmoid, and Tanh activation functions?

ReLU (Rectified Linear Unit)

- Outputs 0 for negative values and the input itself for positive values.
- Fast and widely used in hidden layers.

Sigmoid

- Produces outputs between 0 and 1.
- Commonly used for binary classification output layers.

Tanh

- Produces outputs between -1 and 1.
- Centers data around zero, often leading to faster convergence than Sigmoid.

---

57. What is backpropagation, and how does it train neural networks?

Backpropagation is the algorithm used to train neural networks by minimizing prediction errors.

Steps:

1. Perform a forward pass to generate predictions.
2. Calculate the loss.
3. Compute gradients using the chain rule.
4. Update weights using an optimizer.
5. Repeat until the model converges.

---

58. What is gradient descent, and what are its different variants?

Gradient Descent is an optimization algorithm that minimizes the loss function by updating model parameters in the direction of the steepest decrease.

Variants:

- Batch Gradient Descent
- Stochastic Gradient Descent (SGD)
- Mini-Batch Gradient Descent

Mini-Batch Gradient Descent is the most commonly used because it balances speed and stability.

---

59. What is an optimizer, and what are the common optimization algorithms?

An optimizer updates a model's weights to reduce the loss during training.

Popular optimizers:

- SGD (Stochastic Gradient Descent)
- Momentum
- RMSProp
- Adam
- AdamW
- Adagrad

Among these, Adam is one of the most widely used because it combines fast convergence with adaptive learning rates.

---

60. What is a loss function?

A loss function measures how far a model's predictions are from the actual values.

The objective of training is to minimize this loss.

Double Tap ❀️ For Part-7
❀10
πŸš€ AI Interview Questions with Answers (Part 7)

61. What is batch size, and how does it affect training?

Batch size is the number of training samples processed before the model updates its weights.

Effects of batch size:

- Small batch size: Uses less memory, updates weights more frequently, but training can be noisier.
- Large batch size: Faster training on GPUs and more stable updates, but requires more memory.

Common batch sizes are 32, 64, 128, and 256.

---

62. What are epochs, and how many are typically required?

An epoch is one complete pass of the entire training dataset through the model.

For example, if a dataset has 10,000 samples, one epoch means the model has processed all 10,000 samples once.

The required number of epochs depends on the dataset and model complexity. Too few epochs may cause underfitting, while too many may lead to overfitting.

---

63. What is dropout, and how does it prevent overfitting?

Dropout is a regularization technique where a random percentage of neurons is temporarily deactivated during training.

Benefits:

- Prevents overfitting
- Reduces dependency on specific neurons
- Improves model generalization

Typical dropout values range from 0.2 to 0.5.

---

64. What is batch normalization, and why is it used?

Batch normalization normalizes the inputs of each layer during training.

Advantages:

- Faster convergence
- More stable training
- Allows higher learning rates
- Reduces the chances of vanishing or exploding gradients

It is commonly used in deep neural networks and CNNs.

---

65. What are Convolutional Neural Networks (CNNs), and where are they used?

Convolutional Neural Networks (CNNs) are deep learning models specifically designed for processing image and visual data.

They automatically learn features such as edges, textures, and shapes using convolutional layers.

Applications:

- Image classification
- Face recognition
- Medical image analysis
- Object detection
- Autonomous vehicles

---

66. What are the common applications of CNNs?

CNNs are widely used in computer vision tasks, including:

- Facial recognition
- Image classification
- Object detection
- Medical diagnosis from X-rays and MRI scans
- OCR (Optical Character Recognition)
- Video analysis
- Self-driving cars
- Industrial quality inspection

---

67. What are Recurrent Neural Networks (RNNs), and how do they work?

Recurrent Neural Networks (RNNs) are neural networks designed to process sequential data by maintaining information from previous inputs.

Unlike traditional neural networks, RNNs have memory, making them suitable for tasks where the order of data matters.

Applications:

- Language translation
- Speech recognition
- Time-series forecasting
- Text generation

---

68. What are Long Short-Term Memory (LSTM) networks?

LSTM is an advanced type of Recurrent Neural Network designed to overcome the vanishing gradient problem.

It uses memory cells and gates (input, forget, and output gates) to retain important information over long sequences.

Applications:

- Machine translation
- Chatbots
- Stock price prediction
- Speech recognition
- Text generation

---

69. What are Gated Recurrent Units (GRUs), and how do they differ from LSTMs?

GRUs are a simplified version of LSTMs that use fewer gates, making them computationally more efficient.

GRU vs LSTM:

- GRUs have 2 gates, while LSTMs have 3 gates.
- GRUs train faster and require fewer parameters.
- LSTMs generally perform better on very long sequences.

Both are commonly used for sequence modeling tasks.

---

70. What are Transformer models, and why are they important?

Transformer models are deep learning architectures that process input data using a self-attention mechanism instead of sequential processing.

Advantages:

- Process sequences in parallel
- Handle long-range dependencies efficiently
- Faster training than RNNs
- State-of-the-art performance in NLP

Popular Transformer models:

- BERT
- GPT
- T5
- LLaMA
- Gemini

Double Tap ❀️ For Part-8
❀8
- Mean Squared Error (MSE) – Regression
- Mean Absolute Error (MAE) – Regression
- Binary Cross-Entropy – Binary Classification
- Categorical Cross-Entropy – Multi-class Classification
- Hinge Loss – Support Vector Machines (SVMs)

A lower loss generally indicates better model performance.

Double Tap ❀️ For Part-7
❀7
πŸš€ AI Interview Questions with Answers (Part 8)

71. What is self-attention in Transformer models?

Self-attention is a mechanism that allows a model to determine how important each word in a sequence is relative to the others.

Instead of processing words one by one, the model looks at the entire sequence simultaneously and assigns attention scores to capture context.

Benefits:

- Understands long-range dependencies
- Processes sequences in parallel
- Improves contextual understanding

---

72. What is the attention mechanism, and how does it work?

The attention mechanism helps a model focus on the most relevant parts of the input while generating an output.

How it works:

1. Calculates attention scores for all input tokens.
2. Assigns higher weights to more relevant tokens.
3. Uses these weighted values to generate better predictions.

It significantly improves performance in NLP, translation, summarization, and image captioning tasks.

---

73. What is transfer learning, and when should it be used?

Transfer learning is a technique where a pre-trained model is reused for a new but related task.

Instead of training from scratch, the existing knowledge of the model is leveraged, reducing training time and improving performance.

Applications:

- Image classification
- Medical imaging
- Object detection
- NLP tasks
- Speech recognition

---

74. What are embeddings in Deep Learning?

Embeddings are dense numerical vector representations of data such as words, images, or documents.

They capture semantic meaning, allowing similar items to have similar vector representations.

Applications:

- Semantic search
- Recommendation systems
- Large Language Models
- Question answering
- Text similarity

---

75. What is fine-tuning, and why is it useful?

Fine-tuning is the process of taking a pre-trained model and training it further on a task-specific dataset.

Benefits:

- Higher accuracy
- Less training time
- Requires less data than training from scratch
- Adapts the model to domain-specific tasks

Example: Fine-tuning BERT for sentiment analysis or GPT for customer support.

---

76. What is multimodal AI, and how does it work?

Multimodal AI is an AI system that can process and understand multiple types of data, such as text, images, audio, and video, within a single model.

Examples:

- Image caption generation
- Visual question answering
- AI assistants that understand both text and images
- Speech-to-text with image understanding

---

77. What are Generative Adversarial Networks (GANs)?

GANs are deep learning models consisting of two neural networks:

- Generator: Creates new synthetic data.
- Discriminator: Determines whether the generated data is real or fake.

Both networks compete during training, producing increasingly realistic outputs.

Applications:

- Image generation
- Face synthesis
- Image enhancement
- Data augmentation

---

78. What are Autoencoders, and what are their applications?

Autoencoders are neural networks designed to learn efficient representations of data by compressing the input into a lower-dimensional form and then reconstructing it.

Applications:

- Data compression
- Noise removal (Denoising)
- Anomaly detection
- Feature extraction
- Dimensionality reduction

---

79. What are diffusion models, and how do they generate images?

Diffusion models generate images by starting with random noise and gradually removing that noise over multiple steps until a realistic image is produced.

Advantages:

- High-quality image generation
- Stable training
- Excellent image diversity
- Better realism than many earlier generative models

Examples include Stable Diffusion and DALLΒ·E.

---

80. What are foundation models, and why are they significant?

Foundation models are large pre-trained AI models trained on massive datasets that can be adapted to many downstream tasks through prompting or fine-tuning.

Examples:

- GPT
- BERT
- LLaMA
- Gemini
- Claude

Advantages:
❀4
- General-purpose capabilities
- Strong performance across multiple tasks
- Reduced development time
- Easy adaptation to domain-specific applications

Foundation models are the backbone of modern Generative AI systems.

Double Tap ❀️ For Part-9
❀3
πŸ€– AI is no longer a niche skill. It's becoming a career requirement.

The people who have learnt AI today are easily targeting 17-19LPA jobs.

Prepare for it with TiHAN IIT Hyderabad's AI & ML Program.

βœ… Learn live from TiHAN scientists, IIT professors & industry experts

βœ… Build hands-on projects inspired by Flipkart & Mamaearth

βœ… Assured interview at TiHAN IIT Hyderabad with 9+ CGPA

βœ… Placement support across 5000+ companies through Masai

πŸ—“ Online Entrance Exam: 19th July

πŸ”— Register: https://tinyurl.com/datasimplifier-17jul-tihan-002
❀5πŸ‘1πŸ‘Ž1
πŸš€ AI Interview Questions with Answers Part 9

81. What is Natural Language Processing NLP, and what are its applications?

Natural Language Processing NLP is a branch of Artificial Intelligence that enables computers to understand, interpret, generate, and respond to human language.

Applications:

β€’ Chatbots and virtual assistants

β€’ Machine translation

β€’ Sentiment analysis

β€’ Text summarization

β€’ Spam detection

β€’ Speech recognition

β€’ Question answering systems

82. What are the main stages of the NLP pipeline?

A typical NLP pipeline consists of the following steps:

1. Text collection

2. Text preprocessing

3. Tokenization

4. Stop-word removal

5. Stemming or Lemmatization

6. Feature extraction e.g., TF-IDF or embeddings

7. Model training

8. Evaluation

9. Deployment

Each stage helps convert raw text into meaningful information for AI models.

83. What is tokenization, and why is it important?

Tokenization is the process of breaking text into smaller units called tokens, such as words, subwords, or characters.

Example:

Sentence: "AI is transforming industries."

Word Tokens: AI, is, transforming, industries

Importance:

β€’ First step in NLP

β€’ Makes text understandable for AI models

β€’ Required for language models like BERT and GPT

84. What is the difference between stemming and lemmatization?

Both techniques reduce words to their base form.

Stemming

β€’ Removes prefixes or suffixes using simple rules

β€’ May produce non-dictionary words

β€’ Faster but less accurate

Examples: Running β†’ Run, Studies β†’ Studi

Lemmatization

β€’ Uses vocabulary and grammar rules

β€’ Produces valid dictionary words

β€’ More accurate but computationally slower

Examples: Running β†’ Run, Studies β†’ Study

85. What are stop words, and why are they removed?

Stop words are commonly used words that usually carry little meaningful information.

Examples: the, is, a, an, in, of, on

Removing stop words:

β€’ Reduces dataset size

β€’ Speeds up processing

β€’ Improves model efficiency in many NLP tasks

Note: They may be retained for tasks where sentence context is important.

86. What is TF-IDF, and how is it calculated?

TF-IDF Term Frequency–Inverse Document Frequency is a statistical technique used to measure how important a word is in a document relative to a collection of documents.

It combines:

β€’ Term Frequency TF: How often a word appears in a document

β€’ Inverse Document Frequency IDF: Reduces the importance of words that appear frequently across many documents

Applications: Search engines, Text classification, Information retrieval, Keyword extraction

87. What is Word2Vec, and how does it generate word embeddings?

Word2Vec is a neural network-based technique that converts words into dense numerical vectors.

Words with similar meanings are placed close together in vector space.

Two architectures: Continuous Bag of Words CBOW, Skip-Gram

Applications: Semantic search, Machine translation, Text classification, Recommendation systems
❀2
88. What is GloVe, and how does it differ from Word2Vec?

GloVe Global Vectors for Word Representation is a word embedding technique developed by Stanford University.

Difference:
 

β€’ Word2Vec: Learns embeddings using local context within a sliding window 

β€’ GloVe: Learns embeddings using global word co-occurrence statistics from the entire corpus 

89. What is BERT, and how does it work?

BERT Bidirectional Encoder Representations from Transformers is a Transformer-based language model developed by OpenAI.

Unlike earlier models, BERT reads text in both directions left-to-right and right-to-left, allowing it to understand context more effectively.

Applications: Question answering, Text classification, Named Entity Recognition NER, Sentiment analysis, Search engines 

90. What is GPT, and how is it different from BERT?

BERT 

β€’ Bidirectional 

β€’ Encoder-only architecture 

β€’ Best for language understanding tasks 

β€’ Examples: Classification, search, NER 

GPT 

β€’ Unidirectional autoregressive 

β€’ Decoder-only architecture 

β€’ Best for text generation 

β€’ Examples: Chatbots, content generation, coding assistants, summarization 

Both are foundation models but are optimized for different types of NLP tasks.

Double Tap ❀️ For Part-10
❀11
Artificial Intelligence
πŸ€– AI is no longer a niche skill. It's becoming a career requirement. The people who have learnt AI today are easily targeting 17-19LPA jobs. Prepare for it with TiHAN IIT Hyderabad's AI & ML Program. βœ… Learn live from TiHAN scientists, IIT professors &…
Final 6 Hours Left!

To register for TiHAN IIT Hyderabad's AI & ML Program.

Don't miss your chance to:

β€’ Learn from India's best scientists at TiHAN, IIT Professors and industry experts
β€’ Direct Interview at TiHAN IIT Hyderabad with 9+ CGPA

Register before the Admission Closes!
❀1
πŸš€ AI Interview Questions with Answers (Part 10)

91. What is prompt engineering, and why is it important?

Prompt engineering is the practice of designing clear and effective prompts to guide Large Language Models (LLMs) toward producing accurate and relevant outputs.

Benefits:

- Improves response quality
- Reduces hallucinations
- Increases consistency
- Enhances productivity
- Enables better AI workflows

Example: Instead of asking "Explain SQL," ask "Explain SQL joins with examples suitable for beginners."

---

92. What is zero-shot prompting, and when is it used?

Zero-shot prompting is a technique where an AI model performs a task without being provided with any examples.

The model relies solely on its pre-trained knowledge and the user's instructions.

Example:
Prompt: "Translate the following sentence into French: Good morning."

Use Cases:

- Translation
- Summarization
- Classification
- Question answering

---

93. What is one-shot prompting, and how does it work?

One-shot prompting provides the AI model with a single example before asking it to perform the task.

This example helps the model understand the expected format or style.

Example:
Example:

- Positive β†’ "I love this product."

Now classify:

- "This movie was amazing."

The model learns from one example before responding.

---

94. What is few-shot prompting, and why is it effective?

Few-shot prompting provides several examples to demonstrate the desired task before asking the model to generate an answer.

Providing multiple examples helps improve accuracy and consistency, especially for complex tasks.

Applications:

- Text classification
- Data extraction
- Code generation
- Customer support automation

---

95. What is Chain of Thought (CoT) prompting?

Chain of Thought (CoT) prompting encourages the model to reason through a problem step by step before producing the final answer.

It improves performance on tasks involving logical reasoning, mathematics, coding, and multi-step decision-making.

---

96. What are hallucinations in Large Language Models (LLMs)?

Hallucinations occur when an LLM generates information that sounds convincing but is factually incorrect, misleading, or completely fabricated.

Ways to reduce hallucinations:

- Use Retrieval-Augmented Generation (RAG)
- Provide clear prompts
- Verify outputs using trusted sources
- Ground responses with external data

---

97. What is Retrieval-Augmented Generation (RAG), and how does it work?

Retrieval-Augmented Generation (RAG) combines information retrieval with text generation.

How it works:

1. Receive a user query.
2. Search a knowledge base or vector database.
3. Retrieve relevant documents.
4. Provide the retrieved context to the LLM.
5. Generate a more accurate and grounded response.

Benefits:

- Reduces hallucinations
- Uses up-to-date information
- Improves answer accuracy

---

98. What is a vector database, and why is it used in AI?

A vector database stores embeddings (numerical vector representations) instead of traditional rows and columns.

It enables efficient similarity search across large datasets.

Popular vector databases:

- Pinecone
- Chroma
- Weaviate
- Milvus
- FAISS

Applications:

- Semantic search
- RAG systems
- Recommendation engines
- Image search

---

99. What is semantic search, and how does it differ from keyword search?

Semantic search retrieves information based on the meaning and context of a query rather than exact keyword matches.

Keyword Search

- Matches exact words.
- Limited understanding of context.

Semantic Search

- Understands intent and meaning.
- Uses embeddings and vector similarity.
- Returns more relevant results even when exact keywords differ.

---

100. What are embeddings, and why are they important in NLP?

Embeddings are dense numerical vectors that represent words, sentences, documents, or images in a way that captures their semantic meaning.

Items with similar meanings have similar vector representations.

Applications:
❀6
- Semantic search
- Recommendation systems
- RAG
- Text classification
- Clustering
- Question answering
- Large Language Models

Embeddings are a core building block of modern AI and Generative AI applications.

Double Tap ❀️ For Part-11
❀13
πŸš€ AI Interview Questions with Answers (Part 12)

111. Why is Python the most popular programming language for AI?

Python is the preferred language for AI because it is simple to learn, has a large developer community, and offers powerful libraries for machine learning, deep learning, and data analysis.

Advantages:

β€’ Easy-to-read syntax

β€’ Extensive AI/ML libraries

β€’ Cross-platform support

β€’ Strong community support

β€’ Rapid development

Popular AI libraries: NumPy, Pandas, Scikit-learn, TensorFlow, PyTorch, and Hugging Face Transformers.

112. What is NumPy, and why is it important for AI?

NumPy is a Python library used for numerical computing. It provides support for multi-dimensional arrays and high-performance mathematical operations.

Features:

β€’ Fast array operations

β€’ Mathematical functions

β€’ Linear algebra

β€’ Random number generation

β€’ Broadcasting

NumPy is the foundation for many AI and data science libraries.

113. What is Pandas, and how is it used in data analysis?

Pandas is a Python library used for data manipulation and analysis.

It helps users:

β€’ Load datasets

β€’ Clean data

β€’ Filter rows

β€’ Group data

β€’ Merge datasets

β€’ Perform statistical analysis

It is widely used during the data preprocessing stage of Machine Learning.

114. What is a DataFrame in Pandas?

A DataFrame is a two-dimensional labeled data structure in Pandas that stores data in rows and columns, similar to an Excel spreadsheet or SQL table.

Common operations:

β€’ Reading CSV and Excel files

β€’ Selecting rows and columns

β€’ Filtering records

β€’ Sorting data

β€’ Handling missing values

β€’ Aggregating data

115. What is Matplotlib, and how is it used for visualization?

Matplotlib is a Python library used for creating static, animated, and interactive visualizations.

Common charts: Line chart, Bar chart, Pie chart, Scatter plot, Histogram

It helps visualize trends, distributions, and relationships in data.

116. What is Seaborn, and how does it differ from Matplotlib?

Seaborn is a high-level data visualization library built on top of Matplotlib.

Matplotlib: More customizable, requires more code, suitable for general-purpose plotting

Seaborn: Easier to use, better default styling, specialized for statistical visualizations

Seaborn is commonly used for heatmaps, pair plots, box plots, and distribution plots.

117. What is Scikit-learn, and what are its main features?

Scikit-learn is one of the most popular Python libraries for Machine Learning.

Features:

β€’ Classification algorithms

β€’ Regression algorithms

β€’ Clustering

β€’ Feature selection

β€’ Model evaluation

β€’ Data preprocessing

β€’ Cross-validation

β€’ Hyperparameter tuning

It is ideal for building traditional Machine Learning models.

118. What is TensorFlow, and when should you use it?

TensorFlow is an open-source deep learning framework developed by OpenAI.

It is used to build, train, and deploy neural networks.

Applications: Computer vision, NLP, Recommendation systems, Time-series forecasting, Large-scale production AI systems

TensorFlow supports GPU and TPU acceleration for faster training.

**119.
❀2
What is PyTorch, and why is it popular?**

PyTorch is an open-source deep learning framework developed by Meta.

It is widely used in research and production because of its flexibility and dynamic computation graph.

Advantages:

β€’ Easy to learn

β€’ Python-friendly

β€’ Excellent debugging support

β€’ Strong GPU acceleration

β€’ Large research community

Many state-of-the-art AI models are developed using PyTorch.

120. What is Keras, and how does it simplify Deep Learning?

Keras is a high-level deep learning API that runs on top of TensorFlow.

It simplifies building neural networks by providing easy-to-use interfaces for creating, training, and evaluating models.

Benefits:

β€’ Simple and beginner-friendly

β€’ Less code

β€’ Fast prototyping

β€’ Supports CNNs, RNNs, and Transformers

β€’ Integrated with TensorFlow

Keras is an excellent choice for beginners learning Deep Learning.

πŸ”₯ Double Tap ❀️ For More
❀7πŸ”₯2
Google now writes 75% of its code using AI.

If Google, the tech giant, is doing that, then it’s a proof that:

Tomorrow's recruiters will only hire people who can build with AI.

So before you get irrelevant, check out the E&ICT Academy IIT Roorkee's AI & ML Program.

βœ… Live sessions from IIT professors & industry mentors
βœ… Hands-on projects with Flipkart & Mamaearth
βœ… Networking through Campus Immersion
βœ… Placement support through Masai's network of 5000+ companies

πŸ—“ Entrance Test: 26th July

πŸ”—
https://tinyurl.com/DS-26Jul-005
❀1πŸ‘Ž1
Artificial Intelligence
Google now writes 75% of its code using AI. If Google, the tech giant, is doing that, then it’s a proof that: Tomorrow's recruiters will only hire people who can build with AI. So before you get irrelevant, check out the E&ICT Academy IIT Roorkee's AI &…
Last 6 Hours Remaining!

Before the application closes for E&ICT IIT Roorkee AI & ML Program.

Don't miss out on the chance to:

β€’ Learn live from IIT professors & industry experts

β€’ Build real AI projects

β€’ Get Placement Support from Masai.

Register NOW
❀1