do_action( 'classifai_azure_openai_embeddings_single_embedding_similarity', $similarity, $embedding, $chunk, $term_id, $tax, $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 | Term chunk embedding data. |
$term_id |
int | ID of term we're comparing. |
$tax |
string | Taxonomy of term. |
$consider_threshold |
bool | Whether to consider the threshold or not. |
- Since:
- 3.3.1
- Source: