Establishing Relationships Between Extracted Entities and other Custom Nodes in a Knowledge Graph #1079
Replies: 1 comment 1 reply
-
Hey Daniel. Via GraphRAG Manual Prompting: Table -> HAS_COLUMN -> Column Column, Table and Views would all contain, details about their own details like the following:
Column
Even with this. I find the custom solution to have more accurate and comprehensive results for defining the database structure, but I am also looking to find a way to apply my custom solution as part of the indexing engine. All of this is still a work in progress. Maybe we could collab. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently working on indexing my project's documentation into the Knowledge Graph. This graph includes several business domain-specific entities, and the RAG works quite effectively in this context. However, I now need to establish relationships between these entities and the corresponding SQL tables within my project, where applicable.
To achieve this, I have developed a script that processes a list of .sql schemas and constructs a schema representation in Neo4j. The schema consists of three primary node types: Database, Table, and Column. The relationships are defined as follows:
Database -> HAS_TABLE -> Table
Table -> HAS_COLUMN -> Column
Each Table node also includes a description to facilitate the creation of embeddings for future similarity searches.
And Each Column node have also a description and other properties as "type (INTEGER or DATE or CHARVAR)" and also have other relationships with other Columns and the parent table that represents IS_FOREIGN_KEY and IS_PRIMARY_KEY .
My question is: How can I identify and establish relationships between the extracted entities, document chunks, and other components within the Knowledge Graph, and my custom-created nodes (e.g., Table, Column)?
I would greatly appreciate any guidance or suggestions on how to approach this problem.
Beta Was this translation helpful? Give feedback.
All reactions