Action: classifai_openai_embeddings_single_post_embedding_similarity
Fires after the embeddings similarity has been run for a single chunk.
Parameters
Name | Type | Description |
---|---|---|
$similarity | `bool | float` |
$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
Defined in includes/Classifai/Providers/OpenAI/Embeddings.php
at line 1085