Skip to main content
Auto-ontology replaces Cognee’s generic entity types with a taxonomy of entity types that comes from your own data, and lets you refine it by describing changes in plain language. It is part of Premium Ontology, a $99 / month add-on. The base knowledge graph stays free.

What an ontology is in Cognee

An ontology is the structure your memory is sorted into. It has three parts: Every entity Cognee extracts (a person, a ticket, an invoice) gets the most specific entity type that fits it.

Default ontology vs. auto-generated ontology

Default (free). Cognee extracts entities with generic types such as Person, Organization, Location, or Concept. That works for any dataset, but it does not know that, in your company, a customer and an employee are different kinds of person, or that incidents and incident records are the same thing. Auto-generated (Premium). Cognee reads your dataset and works out the entity types your company actually talks about, with definitions, a hierarchy, and the relations between them. Your entities are then sorted into these sharper types. On the Graph page the result appears as extra domains and sub-domains, and a type that was reorganised says what it became.
Think of it as your company’s taxonomy of entity types. The more precise it is, the easier it is for an agent to retrieve the right context: a question about “open incidents for enterprise customers” can be answered from the right entity types instead of a pile of generic Concept nodes.

How the ontology is built

There is nothing to start by hand. When you open the Graph page, Cognee checks which datasets are due for a new build of the enhanced ontology and builds them one at a time.
1

Add data first

Auto-ontology works from what is already in a dataset, so add data and let it finish processing. The richer the dataset, the better the taxonomy.
2

Unlock Premium

On the Graph page, click any Unlock and then Unlock for $99/month, or subscribe on the Billing page. You need to be a workspace owner; see Who can use it.
3

Keep working while it builds

A build takes several times longer than a normal ingestion (roughly four times as long), so you do not need to wait on the page. While builds run, the Graph page names the dataset being built and how many wait, for example “Finding more structure in default_dataset for the enhanced ontology… 15 more datasets are waiting.” When a build finishes, the map shows the new domains, the sharper entity types and the entities that moved into them.
Building calls the language model, so its tokens are billed from your workspace credits at the normal rate ($0.10 per 1M tokens), on top of the subscription. If the workspace has no credit left, builds wait until you add credits. As your data grows, the Graph page keeps placing new entity types into domains and sub-domains. A type that has been placed keeps its place. Placing new types is a small language-model call, billed from workspace credits on every plan.

Refine it with the ontology chat editor

The ontology chat editor lets you change the ontology by describing what you want, instead of editing a schema file. It sits in the left column of the Graph page; pick an entity type or an entity first to make a change about it. An entity’s panel also has Edit this entity for changes to that one entity.
1

Describe the change

Write the change in your own words. A request can hold several changes, up to 4,000 characters.
2

Review the proposal

Cognee reads your request and turns it into concrete changes, each with its impact (for example, how many entities it affects). Nothing changes yet. A change Cognee could not understand, or one that cannot be applied, is marked as such.
3

Apply

Click Apply to apply the changes Cognee could read (Apply 2 of 3 when some are refused), or Discard. The changes you apply are applied together, or none of them are.
Example requests:
  • Merge incidents into incident records.
  • Rename Client to Customer.
  • Split Event into Customer meeting and Internal meeting.
  • Move Invoice into Finance.
  • Add a new type Approver: the person who signs off a credit request.
  • Customers own contracts. (adds a relation)
  • Employees do not report to customers. (removes a relation)
Renames, merges, moves, new types and relation changes are stored as decisions on top of the graph, not written into it, so they survive rebuilds: when the graph is built again, the same decisions apply. A split is the exception: it re-types the entities in the graph itself. A dataset can hold up to 200 added entity types and 1,000 relation changes. Reading a request and splitting a type call the language model, so they use workspace credits like building does.

How it improves retrieval

Agents and search read the graph through its entity types. With an ontology built from your data:
  • Questions land on the right category (customers vs. employees, incidents vs. incident records), so fewer irrelevant entities reach the agent’s context.
  • Entities that were scattered across generic types are grouped, so “how do credit approvals usually work” can be answered from one entity type and its relations instead of dozens of loose chunks.
  • Relations carry meaning (performs, requires, blocks) instead of a vague “related to”, so multi-step questions follow the right path.

Who can use it

A Premium Ontology subscription belongs to a workspace owner and makes every workspace that person owns Premium; members of those workspaces get it at no cost. Only an owner can subscribe; members see “Only a workspace owner can subscribe.” Subscribe from Unlock on the Graph page, Premium in the top bar, or the Billing page; see Premium Ontology billing.

When Premium ends

If you cancel, Premium stays active until the end of the paid period. After that, your workspaces lose:
  • Automatically generated ontologies: new data is no longer modelled into ontologies for you.
  • The ontology chat editor: you can no longer refine ontologies by chatting with the editor.
  • Extra domains and sharper types: your knowledge graph goes back to the standard ontology.
Your data and your base graph are not deleted. Changes you already made with the editor stay on your map; you cannot make new ones until you subscribe again. If a renewal payment fails, Premium is paused until Stripe collects it: “Your last Premium payment did not go through, so Premium is paused. Stripe retries it with the card on file.”

API

The ontology chat editor is also available on the tenant API, under /api/v1/datasets/{dataset_id}/knowledge-map/edits. Making a change needs an active Premium Ontology plan and write permission on the dataset; reading the changes in force needs only read permission and works on any plan.

Uploading your own ontology

If you already maintain a formal ontology (OWL, Turtle, JSON-LD), you can upload it and use it during extraction instead. That is free and works on any plan; see Configuration & Ontologies.