Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

271 bites

Test yourself: Top 30 easy AI & ML interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Easy everything in AI & ML, page 14

easy2 min read

What is the role of temperature in token sampling?

This tests your understanding of how to control the creativity and randomness of a language model's output. A great answer explains that temperature is a divisor applied to the model's logits before the softmax function. Low temperature makes the output more deterministic by sharpening the probability distribution, while high temperature increases randomness by flattening it. A common red flag is vaguely saying it 'controls randomness' without explaining the underlying softmax mechanism.

Gemini API Webhooks Eliminate Polling for Long Jobs
intermediate1 min read

Gemini API Webhooks Eliminate Polling for Long Jobs

The Gemini API now includes event-driven Webhooks, eliminating the need for continuous polling on long-running jobs like batch processing or video generation. Instead of repeatedly calling GET operations, your server will receive a real-time HTTP POST payload the instant a task finishes. This simplifies building efficient, agentic workflows that might take minutes or hours, reducing latency and infrastructure overhead for your applications.

Google's April AI Push: Gemma 4 and Agent Platform
intermediate2 min read

Google's April AI Push: Gemma 4 and Agent Platform

Google's April AI update introduces the Gemma 4 open model, an eighth-generation chip, and the Gemini Enterprise Agent Platform. This signals a major push into the "agentic era," providing engineers with the foundational models, hardware, and platforms to build more autonomous AI systems. The release also includes a personalized coding tutor in Colab and the Deep Research Max data analysis tool. Evaluate Gemma 4 for your open-source needs and explore the new agent platform for building complex w

easy2 min read

Softmax Function: Turning Scores into Probabilities

The softmax function turns a list of raw scores from a model into a clean probability distribution where all values sum to 1. It's most often the final step in a neural network for multi-class classification, like deciding if an image is a 'cat', 'dog', or 'bird'. The main footgun is mistaking a high softmax probability for high model confidence; it only reflects the score's strength relative to the other scores, not its absolute certainty.

easy2 min read

Prompt Engineering: How to Talk to AIs

Think of prompt engineering as giving a smart but literal intern a precise set of instructions. It's the skill of structuring your text input to guide a generative AI toward a specific, desired output, moving beyond simple keywords. This is essential for getting reliable results, from formatted JSON to correctly styled text. The biggest mistake is treating the AI like a search engine instead of a collaborator that needs clear direction.

easy2 min read

Prompt Engineering: Steering AI with Words

Prompt engineering is steering an AI with carefully chosen words instead of code. You use it to get reliable results from chatbots like ChatGPT or to build applications that use large language models (LLMs). The biggest mistake is treating the AI like a search engine; effective prompts provide context, examples, and constraints to guide the model, rather than just asking a simple question.

AI Hallucination: Confabulation, Not Perception
easy2 min read

AI Hallucination: Confabulation, Not Perception

An AI hallucination is a confident answer that contains false or misleading information. It can happen when a model lacks reliable evidence, contradicts supplied context, or is asked for a very specific fact. Example: a chatbot invents a citation that sounds real. Check important claims against an authoritative source.

easy2 min read

Cosine Similarity: Measuring Direction, Not Distance

Cosine similarity measures the angle between two vectors, not their distance, to gauge similarity. It asks, "Do these point in the same direction?" This is fundamental in AI for comparing text embeddings, where a vector's direction represents its meaning. The main footgun is confusing it with Euclidean distance; cosine similarity ignores vector magnitude, so two vectors can be far apart in space but still be considered nearly identical if their orientation is the same.

Word Embeddings: Turning Words into Vectors
easy2 min read

Word Embeddings: Turning Words into Vectors

Word embeddings turn words into numerical vectors, like coordinates on a map of meaning. Words with similar meanings, like "king" and "queen," are placed close together in this vector space. This is fundamental for text analysis in machine learning, allowing models to grasp semantic relationships instead of just matching text. The footgun is assuming the vector's individual numbers are human-interpretable; they are abstract features learned from data.

easy2 min read

Byte Pair Encoding: Compressing Text for LLMs

Think of Byte Pair Encoding (BPE) as creating custom abbreviations for common letter pairs to compress text. It repeatedly finds the most frequent pair, like 'th', and merges it into a new token. LLMs use this to build vocabularies of common sub-word units, helping them understand rare words. The main footgun is that the final vocabulary size is fixed; choosing the wrong size can hurt model performance and efficiency.

easy2 min read

Large Language Models (LLMs)

A large language model is a sophisticated pattern-matching engine trained on a massive library of text. They power modern chatbots and can generate, summarize, or translate text by predicting the most probable next word based on the patterns they've learned. The key footgun is that their output reflects the biases and inaccuracies of their training data, making them confident but potentially unreliable.

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles