# Similarity Check Logic

Before you proceed with the analysis of the Generated Knowledge, take a moment to familiarize yourself with the **Knowledge Generation & Similarity Check** logic in order to establish a correlation using this functionality.

When you click the **Generate Knowledge** button, the  following two processes take place:

1. Knowledge for the cluster representatives is generated, followed by&#x20;
2. The similarity of the representatives is verified and compared with the committed knowledge (in other words, comparing with knowledge repository that are available for downstream consumption)

Here is the process that tickets undergo during knowledge generation

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdp5VJipzNJ581zkxOx-MKSVDl8UeC07XqbbnERqxDVCbJIkXrGJ5vfN4VNEB4L0_vv-XPN9h0mmrmHchHNpfY-vgLoHrf4-qUvYJNnhjwREXLCUJ-WkcBKGRb1qCFlRtxQXlPDVbqVZtW6mP6z4B5DpfIYvSqFydtZPhrz1xQneEVWxE-Ox2g?key=MGYyqw-PPxQdRaE6NPnphw" alt=""><figcaption></figcaption></figure>

### Similarity check logic

The logic will analyze all the cluster representative documents and compare them against the committed knowledge repository available in the knowledge module.&#x20;

If no duplicates are found, they will be automatically approved and committed, and will be directly accessible under the knowledge module for fulfillments.&#x20;

However, if any documents are found to be duplicates, they will not be automatically committed or approved.&#x20;

You can view the duplicate documents and decide whether to commit or delete the generated document. We will delve deeper into the functional requirements in the next section.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aisera.com/aisera-platform/content-generation/kb-article-generation-from-ticket-comments/similarity-check-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
