Skip to main content

Action: classifai_openai_embeddings_single_embedding_similarity

Fires after the embeddings similarity has been run for a single chunk.

Parameters

NameTypeDescription
$similarity`boolfloat`
$embeddingarrayPost embedding data.
$chunkarrayTerm chunk embedding data.
$term_idintID of term we're comparing.
$taxstringTaxonomy of term.
$consider_thresholdboolWhether to consider the threshold or not.

Since

  • 3.3.1

Source

Defined in includes/Classifai/Providers/OpenAI/Embeddings.php at line 939

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.