> For the complete documentation index, see [llms.txt](https://utca.knowledgator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utca.knowledgator.com/conditions/semanticcondition.md).

# SemanticCondition

Semantic condition

Subclass of [**Condition**](/structural-components/condition.md).

## Module: [implementation](/framework-structure.md#implementation).conditions.semantic

## Methods and properties

Main methods and properties

***

### <mark style="color:blue;">\_\_init\_\_</mark>

#### Arguments:

* <mark style="color:orange;">**distance**</mark>**&#x20;(float):** Distance thresholde.
* <mark style="color:orange;">**targets**</mark>**&#x20;(List\[str]):** Comparison targets.
* <mark style="color:orange;">**subject\_key**</mark>**&#x20;(str):** Key associated with source of subjects to match. Source should be a list of strings.
* <mark style="color:orange;">**semantic\_schema**</mark>**&#x20;(Optional\[**[**SemanticSearchSchema**](/executable-schemas/semanticsearchschema.md)**], optional):** Schema that will be used for distance evaluation. If equals to None, default [**SemanticSearchSchema**](/executable-schemas/semanticsearchschema.md) will be used. Defaults to None.
* <mark style="color:orange;">**name**</mark>**&#x20;(Optional\[str], optional):** Name for identification. If equals to None, class name will be used. Defaults to None.

***

***
