Ingest documents: extract entities/relationships, build graph, detect communities, generate summaries.
Remove one or more previously-ingested documents from the graph.
This subtracts the document's entity/relationship contributions and recomputes communities. It is used to keep GraphRAG in sync when a source document is deleted or moved out of indexed categories.
Global search: answers broad questions using community summaries. Best for "What are the main themes?" type questions.
Optional options: GraphRAGSearchOptionsLocal search: finds specific entities and their context. Best for "Tell me about X" type questions.
Optional options: GraphRAGSearchOptionsGet all entities
Optional options: { Optional type?: stringOptional limit?: numberGet all relationships for an entity
Get community hierarchy
Optional level: numberGet statistics
Initialize the engine with configuration