Theme-Based Media Retrieval: Methods Description¶
This note describes the AI-assisted retrieval approach developed in the Reading Between the Lines (RBTL) project. It is intended as supporting material for a scientific publication and explains what the system measures, which data it draws upon, and how keyword-level findings are combined into theme-level results.
System overview¶
The RBTL GraphRAG application integrates survey data on young people in the Netherlands with YouTube and TikTok content consumed by the influencers they follow. Survey respondents are represented as persons with demographic and geographic attributes. Social-media content is represented as videos and creators, linked where possible across platforms. A further layer of AI-generated text and vector representations makes large volumes of video and comment material searchable by meaning rather than by exact wording alone.
For the analysis reported here, four thematic domains were defined. Each theme was operationalised through a set of keywords, typically short noun phrases. For every keyword, an identical sequence of retrieval queries was executed. Counts and identifier lists were then merged at theme level so that creators or videos matching more than one keyword within the same theme were not counted twice.
Data preparation and representation¶
The knowledge graph stores standard platform metadata, including video titles, descriptions, tags, engagement counts, and channel identifiers. To describe what influencers present in their own content, each video was enriched offline with AI-generated thumbnail descriptions and thumbnail keywords, in addition to the platform text. These creator-side fields were combined and embedded using a large language model embedding model (text-embedding-3-large), yielding a video-level content representation used for semantic retrieval of published material.
Audience discussion was represented in two ways. First, an LLM-generated narrative summary was produced for the comment section of each video, capturing recurring themes and overall tone across all comments. This comment-section summary was embedded separately and supports retrieval of videos whose audiences discuss a theme in a holistic sense, including paraphrases and indirect references. Second, discrete audience discussion topics were extracted from comment sections, embedded individually, and linked to videos with an associated weight reflecting prominence. These topic nodes support counting and ranking at the level of labelled discussion themes.
Thumbnail descriptions, comment summaries, topic labels, and their embeddings were all generated in batch preprocessing pipelines prior to analysis. The retrieval application searches precomputed representations; it does not regenerate them at query time. Where the same creator appears on both YouTube and TikTok, results can be deduplicated through a shared influencer identity. Survey respondents remain linked to influencers through follow relationships, allowing theme retrieval to be combined with demographic or geographic filters when required, although the present workflow focused on theme and keyword retrieval alone.
Retrieval procedure¶
All keyword retrievers rely on semantic similarity. Each keyword is embedded and compared with stored vectors in the graph. Matches above a predefined cosine-similarity threshold (0.75 in the present analysis) are retained. Retrieval therefore reflects conceptual relatedness rather than literal keyword occurrence. Queries were run separately for YouTube and TikTok where applicable.
Three semantic signals were distinguished. The content signal indexes what creators publish, drawing on titles, descriptions, thumbnail text, and tags. The topic signal indexes labelled audience discussion themes attached to videos. The comment-summary signal indexes LLM-generated summaries of entire comment sections. For each keyword, the operations in Table 1 were performed. Count operations returned totals together with creator and video identifiers to support theme-level aggregation and manual validation; illustrative operations returned ranked videos for reporting and qualitative review.
Table 1. Retrieval operations executed per keyword.
| Perspective | Operation | Output | Analytical use |
|---|---|---|---|
| Creator content | Influencer count | Number of distinct influencers whose published content matched the keyword; influencer identifiers | Quantify creator-side exposure to the keyword |
| Creator content | Video count | Number of distinct matching videos; video identifiers | Quantify volume of on-video content related to the keyword |
| Creator content | Content examples | Ranked videos with strongest content similarity | Illustrate what influencers publish about the keyword |
| Audience discussion | Influencer count | Number of distinct influencers whose videos carry matching audience topics; influencer identifiers | Quantify creators whose audiences discuss the keyword |
| Audience discussion | Video count | Number of distinct videos with matching audience topics; video identifiers | Quantify videos with labelled audience discussion of the keyword |
| Audience discussion | Topic-based examples | Ranked videos with strongest associated audience topic labels | Select cases with explicit thematic matches in comment sections |
| Audience discussion | Summary-based examples | Ranked videos by similarity to the comment-section summary | Illustrate how audiences talk about the keyword, including indirect phrasing, comparisons, and evaluative discourse |
The two audience-side illustrative operations are complementary. Topic-based examples prioritise videos with clearly assigned discussion labels and are suited to reporting named themes. Summary-based examples draw on holistic LLM summaries of entire comment sections and are better suited to qualitative description of audience discourse where discussion may not appear as a discrete topic label.
At runtime, natural-language queries are interpreted by an intent classifier and routed to a media retrieval component that selects the appropriate operation and extracts a clean keyword string from the question. The keyword is embedded, searched against the relevant vector index, and returned with supporting evidence such as titles, matched topics, summary excerpts, and similarity scores to support researcher review.
Theme-level aggregation¶
Because several keywords may belong to one theme, theme-level counts were not obtained by summing keyword-level counts directly. For each retrieval type, identifier lists from all keywords within a theme were combined as a set union of unique creator or video identifiers, and the cardinality of that union was reported as the theme total. The same principle applies to pools of example videos intended for qualitative reporting. Per-keyword results may be retained for sensitivity analysis or to describe overlap between keywords within a theme.
Limitations¶
Results depend on the quality of offline LLM enrichment and on the similarity threshold chosen. Semantic matching may include indirectly related content; threshold values and embedding model specifications should be reported alongside findings. Cross-platform deduplication depends on correct linkage between platform accounts and influencer identities. Automated matches should be reviewed using the evidence returned with each result, particularly where exemplar videos or comment-related descriptions are quoted in the paper.