text-embedding-3-small. The same shape works for any HTTP embeddings endpoint; swap the client and model name to switch providers.
Code
- Python
- TypeScript
Input mapping
Output configuration
Continuous score in the range-1.0 to 1.0 (cosine similarity). Optimization direction: maximize.
In practice, OpenAI’s text-embedding-3 models produce non-negative similarities on natural-language pairs, so a 0.0 – 1.0 range with a low-end threshold (e.g. 0.7 for “close enough”) is also reasonable.
Runtime requirements
Related
- Pairwise Evaluator — apply embedding distance to two candidate outputs and pick a winner.
- scikit-learn TF-IDF — a cheaper, offline alternative when embeddings are overkill.

