Skip to content

AIMI 103 · Module 2

Semantic & LLM Personalization

Core question: when does matching by meaning beat matching by keyword, and what new risks come with it?

Start Section 1
0 / 6 completed
Sync my progressJoin a session to keep progress across devices and share it with your instructor

Info

After you join, your completed lesson numbers are sent to your instructor together with your learner code, so they can see your progress. Use the codes your instructor gave you or the email you sign in with, and do not enter your name, company secrets or other personal data. Progress is kept with the rest of that session's data.

Learning objectives

  • Explain what an embedding is and why similar meanings end up close together
  • Compare keyword search with semantic search, including where each one wins
  • Design a hybrid recommender that combines rules, semantic retrieval and other signals
  • Describe how LLM-assisted re-ranking works and which controls it needs
  • Identify popularity bias, source concentration and filter-bubble risk, and propose diversity controls
  • Compare two recommendation lists for the same persona on relevance and diversity

Embeddings

10 min

Embeddings: Representing Meaning as Position

Learning objective: explain, without mathematics, how an embedding model turns text into a list of numbers so that texts with similar meanings sit close together.

From text to similarity
  1. Persona need or article text
  2. Embedding model converts it to a vector
  3. Compare vectors by similarity
  4. Closest articles become candidates
Simulated example

An ESG professional's need reads "carbon disclosure rules for listed companies". A keyword match misses an article titled "New climate reporting requirements for issuers", because no word overlaps; an embedding places the two close together because their meanings are similar.

  • Similar is not the same as relevant: an article can be close in meaning but outdated or too advanced
  • Embeddings can carry biases from the text they were built on
  • Why two texts are "close" is hard to explain to a reader, so keep an explainable reason alongside
Check yourself

What does an embedding make possible that keyword matching cannot?

What does an embedding make possible that keyword matching cannot?

Key takeaway: Embeddings match by meaning, not words; similar still needs checking for relevance, recency and level.

Hybrid Recommendation

10 min

Hybrid Recommendation

Learning objective: design a hybrid recommender that combines the strengths of rules, semantic retrieval and other signals, with each part reviewable.

A hybrid design for financial news
  1. Rules filter (recency, rights, no promotional content)
  2. Keyword candidates + semantic candidates, merged
  3. Score by topic match, difficulty fit and recency
  4. Diversity re-ranking
  5. Editor spot check
  • Rules carry non-negotiables: compliance, rights, recency limits
  • Keyword retrieval covers exact names; semantic retrieval covers paraphrases
  • Collaborative signals can be added later, once consented interaction data exists
  • Write down the weight or priority of each part so a reviewer can trace a result
Check yourself

In a hybrid design, where should the rule "never recommend unlicensed content" sit?

In a hybrid design, where should the rule "never recommend unlicensed content" sit?

Key takeaway: Hybrid means each part does what it is best at: rules for limits, keywords for exact matches, semantics for meaning.

LLM-Assisted Re-ranking

12 min

LLM-Assisted Re-ranking

Learning objective: describe how a large language model can re-order a short candidate list for a persona and explain its choices, and which controls keep that step trustworthy.

  1. Fix the candidates
    Give the model only the candidate list from retrieval; it may re-order but not add articles.
  2. Describe the persona
    Use the synthetic persona description, never real personal data.
  3. State the criteria
    Relevance to the need, difficulty fit, recency and diversity, in writing.
  4. Ask for reasons
    Request a one-line reason per article that can be checked against the article.
  5. Human review
    Spot-check reasons and order; log the prompt and output version.
Risks of LLM re-ranking and controls
RiskControl
Invented reasons or article detailsCheck reasons against article text; restrict to the given list
Inconsistent order across runsFixed prompt and settings; compare repeated runs
Position or popularity biasShuffle input order; add a diversity criterion
Personal data sent to an external serviceUse only synthetic personas; follow your organisation's data policy
Check yourself

An LLM re-ranker returns a reason that mentions a figure not found in the article. What should happen?

An LLM re-ranker returns a reason that mentions a figure not found in the article. What should happen?

Key takeaway: An LLM may re-order and explain a fixed candidate list; people define the criteria and check the reasons.

Fairness, Diversity and Filter Bubbles

10 min

Fairness, Diversity and Filter Bubbles

Learning objective: identify how personalisation can narrow or skew what readers see, and propose controls (103-CLO4).

Information-filtering risks
RiskWhat it looks like in financial newsControl
Filter bubbleA reader only sees one view of a sector or marketReserve a slot for a contrasting or broader view
Popularity biasHot topics crowd out useful backgroundCap popular items; include explainers
Source concentrationMost items come from one source or deskLimit items per source
Sensational driftSpeculative, high-emotion headlines rise to the topDo not rank on clicks alone; editorial standards filter

Warning

Readers have a right to know that their list is personalised. Hiding the information-filtering risk of personalisation is a Critical Fail in this course's artifact review.
Check yourself

A novice investor's Top-5 is all about one trending sector, each item more optimistic than the last. Which control helps most?

A novice investor's Top-5 is all about one trending sector, each item more optimistic than the last. Which control helps most?

Key takeaway: Personalisation can narrow the view; measure diversity, add balance controls and disclose that lists are personalised.

Exercise: Recommendation List Comparison

8 min

Exercise: Recommendation List Comparison

Learning objective: compare two recommendation lists for the same synthetic persona, a keyword/rule baseline and a semantic list, using the relevance labels provided.

  1. Pick a persona
    Choose one of the three synthetic personas.
  2. Read both lists
    Use the baseline Top-5 and the semantic Top-5 shown on the practice page.
  3. Mark relevance
    Use the relevance labels file to mark each item relevant or not.
  4. Check diversity
    Count how many distinct topics each list covers.
  5. Write the comparison
    Two sentences: which list serves the persona better, and what risk you see in each.

Done

Completing this comparison counts as Exercise 2 (aimi103-m2-list-comparison). The financial news recommender lab extends it to all three personas.

Key takeaway: Module summary: semantic and LLM methods add reach and flexibility; compare them with a baseline and control diversity and privacy.

What next?