---
title: "verify a kg against the dataset"
method: POST
path: "/entity/verify"
tags: ["entity"]
---

# verify a kg against the dataset

`POST /entity/verify`

## Request body

- VerifyParams
  - `dataset` string, required
  - `entity_graph` LLMKnowledgeGraph, required — Knowledge graph info structured to deserialize and display in the same format that the LLM outputs. Also the first representation of an LLM output in the pipeline from raw tool output to being merged into a DB
    - `entities` LLMEntity[], required
      - `id` integer, required
      - `properties` object, required
      - `type` string, required
    - `relationships` LLMRelationship[]
      - `properties` object
      - `source` integer, required
      - `target` integer, required
      - `type` string, required
  - `fix` boolean — Whether to apply fixes to the dataset

## Response `200`

verified knowledge graph

- LLMKnowledgeGraph — Knowledge graph info structured to deserialize and display in the same format that the LLM outputs. Also the first representation of an LLM output in the pipeline from raw tool output to being merged into a DB
  - `entities` LLMEntity[], required
    - `id` integer, required
    - `properties` object, required
    - `type` string, required
  - `relationships` LLMRelationship[]
    - `properties` object
    - `source` integer, required
    - `target` integer, required
    - `type` string, required

---

[API](https://skmtc.dev/structifyai/apis/structify.md) · [All operations](https://skmtc.dev/structifyai/apis/structify/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/structifyai/structify/revisions/1364930b6980/schema)
