Content & privacy
AI Engineering · INTERVIEW GUIDE

AI Engineering

Learn LLMs, RAG, agents, secure tools, and production AI through practical insurance examples.

Practice this topic
Filters
7 questions

Embeddings, vectors, dimensions, and semantic similarity

AI Engineering·Embeddings

An embedding is a list of numbers representing useful features of content, often its meaning. That list is a vector; its number of entries is its dimension. Semantic similarity means closeness in meaning, such as “car accident” and “vehicle collision,” even…

Foundation2 min read

Similarity and cosine similarity

AI Engineering·Embeddings

Similarity measures how close two vectors are according to a selected metric. Cosine similarity compares their direction, effectively asking whether they point in a similar direction regardless of magnitude. Dot product and Euclidean distance are other common…

Foundation2 min read

Embedding models, generation, storage, and limitations

AI Engineering·Embeddings

An embedding model creates vectors; an embedding pipeline manages generation, versions, and storage. An embedding is a derived index representation, not a replacement for the original text. Different models, dimensions, or preprocessing choices can produce…

Foundation2 min read

Explain an embedding.

AI Engineering·Embeddings

It is a numerical vector that represents useful features of content, often meaning. Similar wording or meaning tends to produce nearby vectors, enabling retrieval of “vehicle collision” for a query about “car accident.”

Foundation2 min read

What does cosine similarity tell you?

AI Engineering·Embeddings

It compares vector direction and helps rank related content. A high score is not a probability that the passage is true or sufficient. I use a compatible metric and calibrate thresholds on domain-specific queries.

Intermediate2 min read

How do you upgrade embedding models?

AI Engineering·Embeddings

I version models and index data, re-embed the intended corpus into a separate compatible space, evaluate filtered retrieval, and switch query/index routing together. I preserve source data and support rollback instead of mixing arbitrary old and new vectors.

Advanced2 min read

Policy-code search fails despite good semantic search. What do you do?

AI Engineering·Embeddings

I add exact identifier fields and lexical/hybrid retrieval. Embeddings may not preserve rare codes or precise numbers well. I test actual identifiers and keep them intact during query rewriting and text preprocessing.

Advanced2 min read

Difficulty is an editorial estimate. Completion means you chose to mark a question as understood.