Knowledge Graph
Create Graph
Creating a graph on your documents. This endpoint takes input a list of document ids and KGCreationSettings. If document IDs are not provided, the graph will be created on all documents in the system. This step extracts the relevant entities and relationships from the documents and creates a graph based on the extracted information. In order to do GraphRAG, you will need to run the enrich_graph endpoint.
POST
/
v2
/
create_graph
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
collection_id
string | null
Collection ID to create graph for.
run_type
enum<string> | null
Run type for the graph creation process.
Available options:
estimate
, run
kg_creation_settings
object | null
Settings for the graph creation process.
Response
200 - application/json
results
object
requiredWas this page helpful?