Knowledge Graph Operations
create_graph
Create a graph from documents
Parameters
name
(str): Name of the graph to createfilters
(Dict[str, Any], optional): Optional metadata filters to determine which documents to includedocuments
(List[str], optional): Optional list of specific document IDs to include
Returns
graph
(Graph): The created graph object containing entities and relationships
Examples
Graph Properties
The returned Graph
object has the following properties:
id
(str): Unique graph identifiername
(str): Graph nameentities
(List[Entity]): List of entities in the graphrelationships
(List[Relationship]): List of relationships in the graphmetadata
(Dict[str, Any]): Graph metadatadocument_ids
(List[str]): Source document IDsfilters
(Dict[str, Any], optional): Document filters used to create the graphcreated_at
(datetime): Creation timestampupdated_at
(datetime): Last update timestampowner
(Dict[str, str]): Graph owner informationaccess_control
(Dict[str, List[str]]): Access control information