KG Enrichment
Configuration for Restructuring data after ingestion using Knowledge Graphs
It is often effective to restructure data after ingestion to improve retrieval performance and accuracy. R2R supports knowledge graphs for data restructuring. You can find out more about creating knowledge graphs in the Knowledge Graphs Guide.
You can configure knowledge graph enrichment in the R2R configuration file. To do this, just set the kg.kg_enrichment_settings
section in the configuration file. Following is the sample format from the example configuration file r2r.toml
.
Next you can do GraphRAG with the knowledge graph. Find out more about GraphRAG in the GraphRAG Guide.