Discover a draft knowledge-graph ontology from sample files
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.
AuthorizationBearer <token>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
application/json- body
Request to (re-)discover a draft ontology from a set of sample files.
file_ids*array<>1 <= items <= 10boundaries?|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.
Successful Response
application/json- response
[key: string]?anycurl -X POST 'https://deepfellow-server-host/v1/graph/ontology/propose' \ -H 'Content-Type: application/json' \ -d '{ "file_ids": [ "5eb7cf5a86d9755df3a6c593" ]}'{}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.