
GenAI & LangChain
LLMs (GPT, Gemini, Claude), prompting, LangChain, chains, agents, RAG, vector stores, embeddings
1What is an LLM (Large Language Model)?
What is an LLM (Large Language Model)?
Answer
An LLM is a deep learning model trained on massive amounts of text to understand and generate natural language. These models use the Transformer architecture with billions of parameters, enabling them to capture language nuances, follow complex instructions and generate coherent text. GPT-4, Claude and Gemini are examples of LLMs used in production.
2What is the main difference between zero-shot and few-shot prompting?
What is the main difference between zero-shot and few-shot prompting?
Answer
Zero-shot prompting asks the model to perform a task without providing prior examples, relying only on instructions. Few-shot prompting includes a few input/output pair examples in the prompt to guide the model. Few-shot generally improves performance on specific tasks because the model can infer the expected format and style from the provided examples.
3What is chain-of-thought (CoT) prompting?
What is chain-of-thought (CoT) prompting?
Answer
Chain-of-thought prompting is a technique that encourages the LLM to break down its reasoning step by step before giving its final answer. By adding phrases like 'Let's think step by step' or showing reasoning examples, performance on logical, mathematical or multi-step reasoning tasks improves significantly. This approach also makes the decision process more transparent and verifiable.
What is LangChain and what is its main objective?
What is a chain in LangChain?
+21 interview questions
Other Data Science & ML interview topics
Python Basics
Python Object-Oriented Programming
Python Data Structures
Git Fundamentals
SQL Basics
NumPy Fundamentals
Pandas Basics
Jupyter & Google Colab
SQL Joins & Advanced Queries
Advanced Pandas
Visualization with Matplotlib & Seaborn
Interactive Visualizations with Plotly
Descriptive Statistics
Inferential Statistics
Web Scraping
BigQuery & Cloud Data
Feature Engineering
Supervised ML: Regression
Supervised ML: Classification
Decision Trees & Ensembles
Unsupervised ML
ML Pipelines & Validation
Time Series & Forecasting
Deep Learning Fundamentals
TensorFlow & Keras
CNN & Image Classification
RNN & Sequences
Transformers & Attention
NLP & Hugging Face
MLOps & Deployment
Master Data Science & ML for your next interview
Access all questions, flashcards, technical tests, code review exercises and interview simulators.
Start for free