Headers
Body
Request model for creating a graph
Name of the graph to create
Optional metadata filters to determine which documents to include
Optional list of specific document IDs to include
Optional customizations for entity extraction and resolution prompts Container for graph-related prompt overrides.
Use this class when customizing prompts for graph operations like create_graph() and update_graph(), which only support entity extraction and entity resolution customizations.
This class enforces that only graph-relevant override types are used.
{
"entity_extraction": {
"examples": [{ "label": "Example", "type": "ENTITY" }],
"prompt_template": "Extract entities from the following text: {content}\n{examples}"
}
}
Optional folder scope for the operation. Accepts a single folder name or a list of folder names.
Optional end-user scope for the operation
Response
Successful Response
Represents a knowledge graph