Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I have predefined the ontology, or the structure of knowledge graph. Can I ask graphrag to generate knowledge graph from documents according to my ontology?

The ontology can be provided with text. Can I put it in the input folder and not extract entity from it?

I have also tried to refer to the ontology specification from prompts, but it doesn't seem to work.

I would greatly appreciate any guidance or suggestions on how to approach this problem.

You must be logged in to vote

Replies: 2 comments

Comment options

Working on it here: censeus/hypergraph#10

You must be logged in to vote
0 replies
Comment options

The important distinction here is whether you want to constrain only entity extraction or also the allowed relationships and properties in the final graph. Those are related, but they affect different parts of the pipeline and often need different controls.

I would start by testing the ontology directly in the extraction prompt so the model reasons inside those boundaries from the beginning. Post-filtering can still help, but it is usually weaker than getting the ontology into the extraction stage itself.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.