Action: classifai_openai_embeddings_single_post_embedding_similarity

do_action( 'classifai_openai_embeddings_single_post_embedding_similarity', $similarity, $embedding, $chunk, $post_id, $consider_threshold )

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

Parameters:
Name Type Description
$similarity bool | float

The embeddings similarity result.

$embedding array

Post embedding data.

$chunk array

Post chunk embedding data.

$post_id int

ID of post we're comparing.

$consider_threshold bool

Whether to consider the threshold or not.

Since:
  • 3.4.0
Source: