Russian Poetry Lab
A semantic text explorer for Russian poetry
I have lots of experience with text semantic similarity due to my work in applied scientometrics, expert search etc. This powerful approach allows us to measure how similar a pair of texts (or other media) are in what they are about. It is achieved via ML models trained on vast text corpora, so every text now can be turned into a multidimensional vector (bunch of numbers) that allows us to search for similar/dissimilar vectors (other texts) lightning-fast over huge collections.
I like poetry and am fascinated by how close these semantic vectors, when encoding poems and their parts, are to the notion of motif.
Merriam-Webster defines it as:
a usually recurring salient thematic element (as in the arts), especially : a dominant idea or central theme
Motifs are of course central to poetry, and the shimmering, not-quite-comprehensible for humans notion of a multi-dimensional vector of meanings is very close to this branch of human art.
I thought: let's make a semantic search over Russian poetry, to connect poems, authors and generations via their motifs, and do it in a visual way! So that a user can seed any poem and get similar ones, build networks of similar poets, find poems that are most different from one poet's own oeuvre, and search for a Russian poem most similar to any text in any language.
The collection
I started with a corpus collected by Ilya Gusev, spanning Lomonosov to Brodsky. In this run, the explorer indexed 16,694 poems by 195 poets, with dates ranging from 1725 to 1996.
The corpus overview shows when the poems were written and which poets are most represented in the collection.
From one poem to another
Start with a poem and follow its nearest matches, then follow their matches in turn. I seeded this network with Alexander Pushkin’s Winter Road (1826) and opened Pyotr Vyazemsky’s Roadside Meditation (1830) in the right panel. The two poems share a winter journey and the sound of a monotonous bell. Coloring the nodes by year makes it easier to follow the network across decades.
The poem network keeps the seed text and a selected neighbor open side by side. Thicker links show stronger similarity within this view.
From one poet to another
I can also compare poets by averaging the embeddings of their poems. Here I started with Anna Akhmatova. Her immediate neighbors include Sofia Parnok, Alexander Blok, Vladislav Khodasevich, and Marina Tsvetaeva. Expanding another step brings in poets from earlier and later periods.
Each circle represents a poet. Its size reflects the number of poems in the collection, and its color reflects the average date of those poems. The seed is highlighted in gold.
Do poets group by period?
I zoomed out to compare 65 poets with the most poems in the collection. The links come from similarities between their average poem embeddings. Adding color by average poem year reveals patches of similar dates, with some links spanning much longer gaps. Among the linked pairs with dates, the median gap was 18 years. Across all dated pairs in the same set of poets, it was 47 years.
The view focuses on the main connected group. Purple marks earlier dates and yellow marks later ones. Pushkin’s links include Baratynsky, Davydov, Delvig, and Lermontov.
From Chinese text to Russian poems
I pasted the lyrics of March of the Volunteers (义勇军进行曲), the national anthem of the People’s Republic of China, into the text search in Chinese. The first result was Vasily Lebedev-Kumach’s If War Comes Tomorrow (1938), followed by Alexander Blok’s The Scythians (1918). Lebedev-Kumach’s The Sacred War (1941) also made the top five. March of the Volunteers on Wikipedia
The search used the full Chinese text. The query box shows its opening line, and the ranked list shows poem dates and similarity scores.
Is it possible for other languages, text corpora etc.?
Sure! Would love to collaborate. Currently I'm planning the same thing for a global lyrics database like Genius.com.
How it works
I used EmbeddingGemma to embed whole poems and overlapping passages from longer poems. Passage matching lets a local image or scene surface even when the rest of a long poem goes elsewhere. Qdrant stores and searches the vectors, and the browser interface uses vanilla JavaScript and D3.js for the interactive graphs.
I can also look for the poems closest to or furthest from a poet’s own average.




