A boolean indicating whether to apply negation-based preprocessing. Default is TRUE.
This option addresses a common limitation in large language model (LLM) embeddings, where antonyms (e.g., "happy" and "sad") may be treated as similar due to contextual overlap.
When is_negate = TRUE, the function prepends negation terms such as "not" or "didn't" to the input sentences and evaluates whether this increases or decreases their cosine similarity.
If the similarity increases after negation, the model interprets the sentences as antonyms and returns a negative similarity score.
When is_negate = FALSE, negation is skipped and most similarity values returned will be positive.
The Harmony API defaults to is_negate = TRUE, as some users prefer detecting antonymy through negative similarity values, while others may prefer only positive scores.'