> For the complete documentation index, see [llms.txt](https://mind-expression-docs.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mind-expression-docs.gitbook.io/home/how-to-guides/educate-ai/manage-ontologies.md).

# Manage ontologies

Users can manage ontologies using "My Ontologies" or "System (Extended)." My Ontologies is where you can add your ontology into Mind Expression to educate the AI. Whereas in System (Extended), users can extend more to cover words or sentences at a local level or global level.&#x20;

### Why users should use this feature.

Mind Expression is a powerful engine which can easily be configured by the users. Using the My Ontology feature, users will be able to create their own related sentences for the mind expression to learn, this way, the conversational ai that the users develop will be more personalized based on their needs.

### What users can do with the newly added or extended ontologies.

Users will be able to come up with their own query statements that are not in Mind Expression yet and use them for their own scopes. This new feature allows the users to correlate sentences that they may need for their conversational AI and improve the overall experience for their customers and target audience.

### Add Ontology

To add ontology, users need to input a primary statement, there are two types of primary statements.&#x20;

<figure><img src="/files/KIkCTawXdJM0em0Q21sd" alt=""><figcaption></figcaption></figure>

* General Statements are used for QA, Information Search, and Query freestyle. They are queries that are usually in the form of a statement or a request as seen below.&#x20;

<figure><img src="/files/A9yFoisTJ0auMBz7jUHZ" alt=""><figcaption></figcaption></figure>

* Problem Statements are used for Diagnosis Subject Type. It needs to have the problem statement, and the expected resolution as seen below.

<figure><img src="/files/NSl24yZ9nNEHShRpx7N5" alt=""><figcaption></figcaption></figure>

### Relations

The added primary statement needs relations. Relations are the context that helps AI understand the primary statement better. Users have an option whether their relation definitions are Hierarchical or Logical Relations.

#### Hierarchical Relations

* **More specific form** - this relation points to a more specified form of the primary statement as seen in the example below.
  * Cases:&#x20;

    1. Primary statement: I want to eat&#x20;

    2. Specific: I want to eat noodles&#x20;

    3. Primary statement: I need to go&#x20;

    4. Specific: I need to go to my house&#x20;

    5. Primary Statement: I am going to work&#x20;

    6. Specific: I am going to work this saturday.

<figure><img src="/files/hm9G3KJ5SzyhVINzFxsV" alt=""><figcaption></figcaption></figure>

* **More general form** - this relation points to a general form of the primary statement as seen in the example below.
  * Cases:

    1. Primary Statement: I want to eat.&#x20;

    2. General: want to eat.

    3. Primary Statement: Can I order a medium rare steak?

    4. General Statement: Can I order a medium rare?

    5. Primary Statement: Can I ask for VIP seats?

    6. General Statement: Can I ask for better seats?

<figure><img src="/files/QEaPMiosp7BFkrxpvmn1" alt=""><figcaption></figcaption></figure>

#### Logical Relations

* **Cause/implies -** this relation points to a statement which caused what was said in the primary statement as seen in the example below.
  * Cases:

    1. Primary Statement: I want to eat.

    2. Cause/Implies: I am hungry.

    3. Primary Statement: Can I ask for VIP seats.

    4. Cause/Implies: I want the best seats.

    5. Primary Statement: Can I ask for VIP seats.&#x20;

    6. Cause/Implies: I'd like some VIP seats.&#x20;

<figure><img src="/files/05JnP5us0aStfVGBp3tk" alt=""><figcaption></figcaption></figure>

* **Effect/entails** - this relation points to a statement which is the effect of what was said in the primary statement.
  * Cases:&#x20;

    1. Primary Statement: I want to eat.

    2. Effect/Entails: I will buy food.

    3. Primary Statement: I want the best seats.

    4. Effect/Entails: Can I ask for VIP seats?

    5. Primary Statement: I asked for VIP seats.

    6. Effect/Entails: We have VIP seats.

<figure><img src="/files/nJD1fzZD8gVp4ESzpiHu" alt=""><figcaption></figcaption></figure>

#### Related statement&#x20;

The related statement is the statement that the relation is pointing towards. It is the sentence which is being related to the primary statement.

#### Add Relation&#x20;

This button can be used to add another relation to your problem statement.

### My Ontologies&#x20;

My Ontologies is a section in the My Ontology feature where users can manage the ontologies that they have created.&#x20;

<figure><img src="/files/GDVcKLu8H5QayjjJTeS9" alt=""><figcaption></figcaption></figure>

### **System (Extended)**&#x20;

System (Extended) which is just beside the My Ontologies section is a section in the My Ontology feature where users can view the built in Ontologies of Mind Expression.&#x20;

<figure><img src="/files/loZJaEwz78ISFyLBOycR" alt=""><figcaption></figcaption></figure>

### Edit & Delete

To edit or delete a primary statement, click on the three dots right beside the statements below the My Ontologies column.

<figure><img src="/files/1r58vio5LFMk4s5WXrPT" alt=""><figcaption></figcaption></figure>

#### Edit Primary Statement

To edit a primary statement, just click on the edit button which can be seen on the screenshot above.

<figure><img src="/files/3oxHmGCaiqeWBttXorGD" alt=""><figcaption></figcaption></figure>

#### Edit Relations

To edit a relation, the user can click on the three dots below the relations column.&#x20;

<figure><img src="/files/AtlnQowu8T68INJupmCy" alt=""><figcaption></figcaption></figure>

Just click on the edit button as seen above and proceed to select the relation which perfectly fits the related statement.

<figure><img src="/files/Eno4Y3bWgDFlxG9yNIqW" alt=""><figcaption></figcaption></figure>

### Add ontology feature

Users can add ontologies without going directly to the My Ontology page. Below are the list of sections where users can add their own ontologies.

#### Component Settings

When creating components, users always have the option of adding a query statement to ensure that the AI can understand the intent behind the user's response. As seen in the image below, if the CAI does not currently have an existing ontology for the statement that the component needs, users can add an ontology instantly.

<figure><img src="/files/jRwvQz7BZa7ueGWE8uzy" alt=""><figcaption></figcaption></figure>

#### Sandbox

When testing out subjects, it's possible to get fallbacks if the CAI does not recognize statements that may be related to the original query statement, users can use the add ontology feature within the sandbox in the AI action details to add ontologies for those fallback statements.

<figure><img src="/files/wFT95DIaQGkqqe50hK1m" alt=""><figcaption></figcaption></figure>

#### Conversation History

* We can view previous conversations and check for fallbacks via the conversation history.&#x20;
* To go to the conversation history, just go to the list of subjects within the scope, and click on `Manage` on the left side of the screen beside `Set up.`

<figure><img src="/files/pYQ3JUPtFqNCTpGijYeP" alt=""><figcaption></figcaption></figure>

* Choose which environment the tests were done whether it's `Live` or `Sandbox`.
* Just click on each conversations and check if it has fallbacks or not.&#x20;
* After opening a conversation, just click on the fallback statements which are the bubbles with a red exclamation mark, then click on add ontology.&#x20;

<figure><img src="/files/6EjpPKogdOobJ3KxZmKC" alt=""><figcaption></figcaption></figure>

#### Recognition Check

* To go to the recognition check, just click on `knowledge` on the left side of the screen, then click on `recognition check`.&#x20;

<figure><img src="/files/a8XGK3hXc0xhLG0fuJ6O" alt=""><figcaption></figcaption></figure>

* This section is where users can try out whether a statement is already recognized by the AI or not, we can also see here the related sentences to the statements we enter.&#x20;

<figure><img src="/files/elx52KRXQN5DliVI2nQe" alt=""><figcaption></figcaption></figure>

* If we enter a statement which is not recognized here, it will give us an option to add an ontology for it as seen above.&#x20;

&#x20;
