InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1549–1560 of 3610 questions

Generative AI & LLMsBeginner1 min read

What is a system prompt?

A system prompt provides high-priority behavioral instructions for an assistant, such as its role, boundaries, and response style. Its exact…

Generative AI & LLMsBeginner1 min read

What is zero-shot prompting?

Zero-shot prompting asks a model to perform a task without providing worked examples. It works well for familiar tasks with clear instructions,…

Generative AI & LLMsBeginner1 min read

What is few-shot prompting?

Few-shot prompting includes a small number of input-output examples that demonstrate the expected task or format. The model can infer a pattern…

Generative AI & LLMsBeginner1 min read

Why specify an output format?

Specifying a format reduces ambiguity and makes responses easier to consume. A request for JSON, a table, or a fixed set of fields helps…

Generative AI & LLMsBeginner1 min read

What is a context window?

A context window is the maximum amount of input and generated content a model can handle in one request, measured in tokens. The effective…

Generative AI & LLMsBeginner1 min read

What is a special token?

A special token is a dedicated token ID used for control or structure, such as message boundaries, end-of-turn markers, or multimodal markers.…

Generative AI & LLMsBeginner1 min read

What is an embedding?

An embedding is a numerical vector representing an item such as text, an image, or a product. Text embeddings are designed so that semantic…

Generative AI & LLMsBeginner1 min read

What is semantic search?

Semantic search retrieves items based on meaning represented in embeddings rather than requiring exact keyword overlap. A query and candidate…

Generative AI & LLMsBeginner1 min read

What is cosine similarity?

Cosine similarity measures the cosine of the angle between two vectors. It is often used to compare embeddings because it focuses on direction…