Giving AI your knowledge · wrap-up
Cheat sheet & self-check
9 questions across 3 lessons. Each answer links back to the lesson it came from.
Pick an answer to see if you got it, and why.
Q1. What does an embedding represent?
Show answer
B. Texts with similar meaning get vectors that are close together, even when they share no words.
From lesson 05 · Embeddings: meaning as numbersQ2. A user searches 'my laptop won't turn on'. Which document would semantic search find that keyword search might miss?
Show answer
B. It shares almost no words with the query but has the same meaning. Keyword search would favour 'turn on dark mode'.
From lesson 05 · Embeddings: meaning as numbersQ3. Can you compare an embedding from model A with one from model B?
Show answer
B. Each model arranges meaning differently. Changing the embedding model means re-embedding all stored documents.
From lesson 05 · Embeddings: meaning as numbersQ4. What does a vector database do that a normal SQL query does not?
Show answer
B. Its core operation is nearest-neighbour search over embeddings, which ordinary indexes are not built for.
From lesson 06 · Vector databasesQ5. An HR assistant uses one vector database for all company documents. What must the search include?
Show answer
B. Retrieved text goes straight into the answer. Without permission filters, the assistant can leak documents to the wrong people.
From lesson 06 · Vector databasesQ6. You already run PostgreSQL and have 200,000 document chunks. A sensible first choice is…
Show answer
B. At this scale an extension to an existing database is usually enough and avoids running another system. Move to a dedicated one when scale or features demand it.
From lesson 06 · Vector databasesQ7. What problem does RAG solve?
Show answer
B. Relevant documents are retrieved and placed in the prompt at question time, so the answer is grounded in your content.
From lesson 07 · RAG: retrieval-augmented generationQ8. A RAG bot gives a wrong answer. The right document exists. What should you check first?
Show answer
B. Most RAG failures are retrieval failures. If the right chunk never reached the prompt, the model could not use it.
From lesson 07 · RAG: retrieval-augmented generationQ9. When is fine-tuning a better fit than RAG?
Show answer
B. Fine-tuning shapes behaviour and style. Changing facts, citations and permissions are much easier with RAG.
From lesson 07 · RAG: retrieval-augmented generation