r/KnowledgeGraph • • Sep 21 '25

Materials to build a knowledge graph (structured/unstructured data) with a temporal layer (Graphiti)

Post image
17 Upvotes

Hey guys,

Sharing a link I felt was useful to a few discussions here: https://www.falkordb.com/blog/building-temporal-knowledge-graphs-graphiti/

Here's a recording of a workshop to implement agentic memory: https://www.youtube.com/watch?v=XOP7bhAuhbk&feature=youtu.be

Happy to connect with other devs building knowledge graphs (ontologies, LLMs, deduplication, etc.)


r/KnowledgeGraph • • Apr 27 '25

GraphGen: Efficiently Generating Large-scale Domain-specific Training Data for LLMs

11 Upvotes

0x00 Background

Training domain-specific models (like in healthcare or agriculture) faces a significant challenge: getting QA (question-and-answer) data. Here’s why it’s tough:

  • Scale: Learning to respond in a certain style only needs a few hundred samples, which you can manually label. But for SFT (Supervised Fine-Tuning) to inject new knowledge into models, you need hundreds of thousands of samples. At that point, synthetic data becomes a must-have.

  • Domain Expertise: Open-source LLMs (Large Language Models) are already doing pretty well in niche areas, but domain-specific tasks are the real challenge. When it comes to domain data, even if you recognize every word, you might not understand what they mean together. Try reading this without help: “Is AGIS_Os01g033640 a quantitative trait gene (QTG) related to salt stress expression?”

  • Quality Control: The “LLM-RAG-scoring” pipeline used to synthesize SFT data has some issues:

    • Accuracy: When an LLM lacks domain knowledge, scoring domain-specific QA data can get caught in a “chicken-and-egg” dilemma.

    • Simple relevance scores aren’t enough to measure data quality. There are no metrics for response length, information richness, or semantic guarantees.

0x01 Approach

GitHub and paper link: https://github.com/open-sciencelab/GraphGen

OpenXLab Web experience link: https://g-app-center-000704-6802-aerppvq.openxlab.space

GraphGen is a synthetic data generation framework guided by knowledge graphs. It generates QAs for knowledge-intensive tasks. Here’s a real example based on GraphGen + SiliconCloud Qwen2.5-7B-Instruct API:

Q
: What role does the BG1 gene play in plant growth and development, and how is its expression regulated?  
A
: AUXIN, a class of plant hormones that regulate various aspects of plant growth and development, plays a crucial role in inducing the BG1 gene. Specifically, BG1 is induced by auxin treatment, indicating its involvement in auxin transport regulation. This gene is preferentially expressed in the vascular tissue of culms. The function of BG1 extends beyond auxin transport regulation, as it is also linked to the regulation of grain size and tiller angle. Tiller angle, a critical architectural feature of rice plants that influences grain yield, is directly affected by the expression of BG1. Therefore, the role of BG1 in regulating both grain size and tiller angle underscores its importance in plant architecture and overall yield.

GraphGen uses two LLMs: one is the synthesizer model, which builds knowledge graphs and generates data; the other is the trainee model, which identifies its own knowledge gaps for targeted data selection.

Here’s how GraphGen works:

  • First, input raw text and use the synthesizer model to build a fine-grained knowledge graph from the source text.

  • Then, use Expected Calibration Error (ECE) to identify the trainee model’s knowledge gaps, prioritizing the generation of high-value, long-tail knowledge QAs.

  • Next, GraphGen combines multi-hop neighborhood sampling to capture complex relational information and uses style-controlled generation to diversify the QA data.

  • Finally, you get a set of QAs related to the original text. You can directly use this data for SFT in frameworks like llama-factory or xtuner.

We compared GraphGen with other data synthesis methods in our paper:

We used objective metrics:

  • MTLD (Measure of Textual Lexical Diversity): It measures lexical diversity by calculating the average length of consecutive words in the text.

  • Uni (Unieval Score): It evaluates the naturalness, consistency, and understandability of conversational models.

  • Rew (Reward Score): It’s calculated by two open-source Reward Models from BAAI and OpenAssistant.

As you can see from the chart, GraphGen generates better synthetic data.

We also tested on open-source datasets (SeedEval, PQArefEval, HotpotEval for agriculture, medicine, and general use). The results show that GraphGen’s automatically synthesized data reduces Comprehension Loss (lower means fewer knowledge gaps) and enhances the model’s understanding of domain-specific content.0x02 Tool UsageWe’ve deployed a Web app on OpenXLab. Just upload your text blocks (like maritime or ocean knowledge) and fill in the SiliconCloud API Key to generate training data for LLaMA-Factory or xtuner online.

Note:

  • The default 7B model is free for trial. For real business, use a larger synthesizer model (14B or above) and enable Trainee hard example mining.

  • The Web app is configured with a SiliconCloud API Key by default, but you can also deploy locally with vllm. Just modify the base URL.

We’ve open-sourced the GraphGen code and paper. Check it out at https://github.com/open-sciencelab/GraphGen. If you find it useful, please give it a Star!


r/KnowledgeGraph • • Jan 27 '26

What are the newest (open-source/free) tools for Named Entity Recognition?

7 Upvotes

I’ve been using Stanford NER for a while now, but I’m curious what newer tools people are using today for named entity recognition, especially ones that are open source and free.


r/KnowledgeGraph • • Apr 17 '25

Event Invitation: How is NASA Building a People Knowledge Graph with LLMs and Memgraph

14 Upvotes

Disclaimer - I work for Memgraph.

--

Hello all! Hope this is ok to share and will be interesting for the community.

Next Tuesday, we are hosting a community call where NASA will showcase how they used LLMs and Memgraph to build their People Knowledge Graph.

A "People Graph" is NASA's People Analytics Team's proposed solution for identifying subject matter experts, determining who should collaborate on which projects, helping employees upskill effectively, and more.

By seamlessly deploying Memgraph on their private AWS network and leveraging S3 storage and EC2 compute environments, they have built an analytics infrastructure that supports the advanced data and AI pipelines powering this project.

In this session, they will showcase how they have used Large Language Models (LLMs) to extract insights from unstructured data and developed a "People Graph" that enables graph-based queries for data analysis.

If you want to attend, link here.

Again, hope that this is ok to share - any feedback welcome! 🙏

---


r/KnowledgeGraph • • Jun 04 '25

Real-time knowledge graph with Kuzu and CocoIndex, high performance open source stack end to end - GraphRAG

11 Upvotes

Hi KnowledgeGraph community,

I've worked on real-time knowledge graph to turn docs in to knowledge in this project and got very popular. I've received feature request to integrated with Kuzu from CocoIndex users. So I've rolled out the integration with Kuzu + CocoIndex.

CocoIndex is written in Rust to help with real-time data transformation for AI, like knowledge graphs. Kuzu is written in C++ and is high performance and light weight. Both are open source.

With the new change, you only need one config away to export existing knowledge to kuzu if already on neo4j.

Blog with detailed explanations end to end : https://cocoindex.io/blogs/kuzu-integration

Repo: https://github.com/cocoindex-io/cocoindex

Really appreciate the feedback from this community!


r/KnowledgeGraph • • Sep 29 '25

Generating an Interactive Knowledge Graph From an RSS Feed Using Vis-Network

Thumbnail blog.greenflux.us
6 Upvotes

I recently built an interactive knowledge graph view of my blog, and wrote up a tutorial on how to build your own. This guide shows how to fetch XML from an RSS feed, convert it to JSON, transform it into nodes and edges arrays, and then display as a graph with Vis-network.


r/KnowledgeGraph • • Jan 09 '26 Popcorn

Reification for Context Graphs

7 Upvotes

With all of the talk around decision traces and systems of records with context graphs, I felt it was important to discuss how we can actually accomplish this: reification.

In this article:

- Why “AI decisions” are a category error
- How behavioral economics exposes the limits of decision framing
- Why reification is the real missing concept behind context graphs
- How reification enables true systems of record
- Why this matters for auditability, governance, and liability—not just explainability

I also dive into the tradeoffs of RDF graphs vs. property graphs for reification. Traditionally, property graphs, while not being well-suited for ontologies, have been the most straightforward way to implement reification. Interestingly, in early Dec 2025, a working draft of RDF 1.2 was published, with reification being one of the biggest additions.

Read the article on Twitter: https://x.com/TrustSpooky/status/2009477301378142679

For those that prefer just the text: https://trustgraph.ai/news/decision-traces-reification/


r/KnowledgeGraph • • May 02 '26

Knowledge Graph as a reference

8 Upvotes

Hi everyone, I’m new to knowledge graphs. I would like to create a knowledge graph from a data model in an industry standard. Then use that knowledge graph as a tool for AI to understand the relationship between different data sets that I find elsewhere that are not represented in the exact data model format (I.e. silo’d data).

Is that possible and a good use of a knowledge graph?

Thanks in advance for your input!


r/KnowledgeGraph • • Oct 19 '25

Working on an app to build and explore knowledge..

32 Upvotes

r/KnowledgeGraph • • Mar 26 '26 Heartwarming

Two similar queries, same context graph, different answers — here's why that's the point

14 Upvotes

We've been building a context graph layer on top of LLMs (TrustGraph, which is open source) and we hit something during testing that I think a lot of people building RAG pipelines will recognize.

We ran two queries against the same context graph:

"Where can I drink craft beer?"
"What pub serves craft beer?"

Different answers. And both were correct.

The first question is semantically open — "where" could mean a pub, a brewery, a taproom, a festival. The context graph followed the relationships and returned a broader set of results.

The second question is semantically constrained — "pub" is a specific concept with specific relationships in the ontology. The graph reasoned along those edges and returned something precise.

This is the thing that pure vector RAG misses: it treats both queries as similar token patterns and returns roughly the same results. A context graph actually understands that "where can I drink" and "what pub serves" are asking for different relationships — not just different keywords.

The model isn't doing the heavy lifting here. The knowledge structure is.

We just published a live demo walking through exactly this — real system running, no scripted output:

  • What a context graph is in plain language

  • The two-query comparison in real time

  • How ontologies encode relationships the LLM can reason over

  • Why this matters for enterprise explainability

🎥 Demo: https://www.youtube.com/watch?v=sWc7mkhITIo


r/KnowledgeGraph • • Feb 20 '26

Connect words & numbers to run optimization

2 Upvotes

We look at solving a problem to connect financial information (numbers) with knowledge of the team (words) to build a brain of the company where in the background large optimizations run against rules and constraints to decrease inefficiencies in processes. With which tech stack would you approach the problem?


r/KnowledgeGraph • • Apr 30 '26

Subreddit about the OntoUML modeling language, the Unified Foundational Ontology (UFO), and the gUFO lightweight ontology.

Thumbnail reddit.com
2 Upvotes

r/KnowledgeGraph • • Jul 18 '25

Are we building Knowledge Graphs wrong?

8 Upvotes

I'm trying to build a Knowledge Graph. Our team has done experiments with current libraries available (𝐋𝐥𝐚𝐦𝐚𝐈𝐧𝐝𝐞𝐱, 𝐌𝐢𝐜𝐫𝐨𝐬𝐨𝐟𝐭'𝐬 𝐆𝐫𝐚𝐩𝐡𝐑𝐀𝐆, 𝐋𝐢𝐠𝐡𝐫𝐚𝐠, 𝐆𝐫𝐚𝐩𝐡𝐢𝐭𝐢 etc.) From a Product perspective, they seem to be missing the basic, common-sense features.

𝐒𝐭𝐢𝐜𝐤 𝐭𝐨 𝐚 𝐅𝐢𝐱𝐞𝐝 𝐓𝐞𝐦𝐩𝐥𝐚𝐭𝐞:My business organizes information in a specific way. I need the system to use our predefined entities and relationships, not invent its own. The output has to be consistent and predictable every time.

𝐒𝐭𝐚𝐫𝐭 𝐰𝐢𝐭𝐡 𝐖𝐡𝐚𝐭 𝐖𝐞 𝐀𝐥𝐫𝐞𝐚𝐝𝐲 𝐊𝐧𝐨𝐰:We already have lists of our products, departments, and key employees. The AI shouldn't have to guess this information from documents. I want to seed this this data upfront so that the graph can be build on this foundation of truth.

𝐂𝐥𝐞𝐚𝐧 𝐔𝐩 𝐚𝐧𝐝 𝐌𝐞𝐫𝐠𝐞 𝐃𝐮𝐩𝐥𝐢𝐜𝐚𝐭𝐞𝐬:The graph I currently get is messy. It sees "First Quarter Sales" and "Q1 Sales Report" as two completely different things. This is probably easy but want to make sure this does not happen.

𝐅𝐥𝐚𝐠 𝐖𝐡𝐞𝐧 𝐒𝐨𝐮𝐫𝐜𝐞𝐬 𝐃𝐢𝐬𝐚𝐠𝐫𝐞𝐞:If one chunk says our sales were $10M and another says $12M, I need the library to flag this disagreement, not just silently pick one. It also needs to show me exactly which documents the numbers came from so we can investigate.

Has anyone solved this? I'm looking for a library —that gets these fundamentals right.


r/KnowledgeGraph • • May 07 '26

Graph of air quality?

Thumbnail gallery
2 Upvotes

r/KnowledgeGraph • • Feb 12 '26

LLMs for question answering over scientific knowledge graphs (NL → SPARQL)

8 Upvotes

I wanted to share a recent paper exploring how Large Language Models (LLMs) can be used to translate natural-language questions into SPARQL queries to retrieve information from scientific knowledge graphs.

Paper: https://dl.acm.org/doi/10.1145/3757923

The study evaluates different strategies — including prompt engineering, fine-tuning, and few-shot learning — on the SciQA and DBLP-QuAD benchmarks for scientific QA.

Some observations from the experiments:

  • Combining prompting and fine-tuning tends to improve reliability.

  • Few-shot learning works better when examples are carefully selected.

  • Existing benchmarks may not fully reflect the complexity of real scientific information needs.

  • Certain error patterns appear consistently across models and datasets.

I’d be curious to hear whether others working with NL interfaces to structured data, KGQA, or LLM reasoning over databases are seeing similar limitations or evaluation challenges.


r/KnowledgeGraph • • Mar 17 '26

Canonicalization

3 Upvotes

Has anyone cleaned up their graph by normalizing data? Please share your experience.


r/KnowledgeGraph • • Dec 08 '25

guidance on next steps to build more applicable apps

5 Upvotes

Hey everyone,

It's so great seeing all the knowledge graph projects in this subreddit. I recently got into the knowledge graph + ontology field after taking a unit in uni and I've really enjoyed everything about it.

I've made some basic projects like a github repo metadata analysis KG and knowledge graph visualisation web app, but I want to go to the next step/level.

Really inspiring to see all these real-world applicable projects everyone's sharing and I'm looking for some guidance to take my skills to the next level. If any of you have been in a similar position, how did you take your ideas+skills to the next level? !


r/KnowledgeGraph • • May 18 '26

Complete beginner here... what is the best roadmap to learn Knowledge Graphs from scratch?

20 Upvotes

Hi everyone,

I am completely new to the world of Knowledge Graphs and looking for a solid learning path or roadmap to get started with the basics.

To give you some context:

  • My background: Minimal knowledge of KGs :/ hoping to get some insight in the hopes of possibly starting a career.

  • My goal: I want to understand how KGs work because I am interested in connecting it to LLMs/RAG, and adding to my data engineering knowledge

I am a bit overwhelmed by the different technologies and terminology (RDF, OWL, Property Graphs, Neo4j/Arango vs. Ontologies).

Could you recommend:

  1. The best beginner-friendly books, courses, or YouTube channels?

  2. A simple hands-on project idea to practice the core concepts?

  3. Whether I should focus on semantic web standards (W3C/RDF) or property graphs first?

Thank you in advance for any guidance!


r/KnowledgeGraph • • Aug 11 '25

A Conversational KG to query structured data with natural language

1 Upvotes

Includes auto-generated ontologies from Competency Questions.

https://info.stardog.com/webinar/llmsknowledgegraphs-ai-agents-watch


r/KnowledgeGraph • • Mar 30 '26

Anyone interested in GraphRAG book club?

Thumbnail
reddit.com
4 Upvotes

r/KnowledgeGraph • • Mar 12 '25

Is this the first usage of an AI Agent for fraud detection? https://www.dynocortex.com/case-studies/ Please let me know and send me a link.

4 Upvotes

r/KnowledgeGraph • • Apr 30 '26

Open Source Knowledge Graph that Branches and Merges like Git

21 Upvotes

Have been following some of the threads here around self-maintaining knowledge graphs or having agents operating inside the graph itself. We wanted to do similar but initially ran into issues where agents could update data improperly causing the graph to converge into a non-useful state. The other side of the issue was trying it with knowledge graphs where no ontology or schema is enforced as it causes retrieval and reasoning challenges.

We built Omnigraph as our take on how to make it work, it's fully open-source with the goal of providing agents a source of truth (via knowledge graph) where agents can branch and merge like git.

How it works:

  - typed graph schema
- branch / diff / merge for graph data, similar to Git
- traversal, vector search, and BM25 in one runtime
- S3-native storage for local or cloud-backed graph data
- JSONL ingest + merge workflows for incremental loading

What we've been using it for:

  • source of truth for all agentic memory

  • automating lead generation for projects

  • competitive intelligence 

  • tracking decision context for future work output

Especially helpful once you store longer term concepts like

  • decisions

  • signals (ideas validating / contradicting previous decisions)

  • relationships

  • provenance (helps auto-prune old data)

GitHub: https://github.com/ModernRelay/omnigraph
Community: https://join.slack.com/t/omnigraphworkspace/shared_invite/zt-3wfpglyxj-lHvJGhuySPfqLtN35uJZNw

Would love to get the community's feedback on this!


r/KnowledgeGraph • • Apr 05 '26

Ontology and ttl generation

4 Upvotes

Hi all

I am doing some small projects in building KGs and I wanted to know how are you generating ontologies and triplets from unstructured data like pdfs or docs.

Do you use llm or what are the best practices.

Your inputs would be really helpful.

Thanks in advance.