# word2vec-style vector arithmetic on docs embeddings

DevFeed: [word2vec-style vector arithmetic on docs embeddings](<https://devfeed.tech/articles/word2vec-style-vector-arithmetic-on-docs-embeddings-31146.md>)

Original publisher: [Read original article](<https://technicalwriting.dev/2025/10/arithmetic/index.html>)

Published: 2025-10-29T00:00:00Z

Content type: article

Language: en

Sources: [technicalwriting.dev](<https://devfeed.tech/sources/technicalwriting-dev.md>)

Topics: [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [Angular](<https://devfeed.tech/topics/angular.md>), [Supabase](<https://devfeed.tech/topics/supabase.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [database](<https://devfeed.tech/tags/database.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [experiment](<https://devfeed.tech/tags/experiment.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [models](<https://devfeed.tech/tags/models.md>), [research](<https://devfeed.tech/tags/research.md>), [results](<https://devfeed.tech/tags/results.md>), [technical](<https://devfeed.tech/tags/technical.md>), [vector](<https://devfeed.tech/tags/vector.md>)

## AI overview

This article investigates whether word2vec-style vector arithmetic works with document embeddings in technical writing. It describes experiments that subtract and add word or concept vectors to document vectors, using documentation from Supabase and the EmbeddingGemma model, with different task types and comparative verification.

## Source excerpt

Does vector("king") - vector("man") + vector("woman") ~= vector("queen") work in technical writing contexts?