DeepFellow DOCS

Discover a draft knowledge-graph ontology from sample files

POST
/v1/graph/ontology/propose

Kick off ontology discovery from a handful of sample files, seeded with the current ontology.

Seeds from the project's approved ontology if it has one, else from the chosen starting ontology preset (see GET /v1/graph/ontology/presets; default general), so re-running discovery extends the live schema rather than dropping previously approved types. A preset can only be chosen until an ontology is approved or a draft is saved (409 otherwise). The current draft is only replaced once discovery succeeds; the previously approved ontology (if any), which GraphService actually uses, is left untouched until the draft is next saved or approved.

Authorization

headerAuthorizationBearer <token>

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

OpenAI-Project?|

Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization

Request Body

application/json
  1. body

Request to (re-)discover a draft ontology from a set of sample files.

file_ids*array<>
Items1 <= items <= 10
boundaries?|

Free-text scope hint, e.g. 'legal contracts'.

preset?|

Starting ontology to seed discovery with (default: 'general'); only before an ontology is approved or saved.

Response Body

Successful Response

application/json
  1. response
[key: string]?any
Example Request
curl -X POST 'https://deepfellow-server-host/v1/graph/ontology/propose' \  -H 'Content-Type: application/json' \  -d '{  "file_ids": [    "5eb7cf5a86d9755df3a6c593"  ]}'
Example Response
{}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.