SELECTED WORK · NEO4J · GRAPHRAG · Q&A DEMO

Polish plant-protection product register

A knowledge graph of registered pesticide products, their active substances, the crops and target pests they are approved for, legal application windows and dosage, and the interactions between them — built from official government data and product labels, and queried in natural language through a working question-answering demo.

WHAT'S IN THE GRAPH
(:Product)-[:CONTAINS]->(:ActiveSubstance)
(:Product)-[:REGISTERED_FOR]->(:Crop)
(:Product)-[:CONTROLS]->(:Pest)
(:Product)-[:APPLIED_IN]->(:ApplicationWindow {dose, interval})
(:ActiveSubstance)-[:INTERACTS_WITH]->(:ActiveSubstance)

Every registered product is linked to its active substances, the crops and pests it is approved against, and the legal application windows with dose and spray interval. Around that core sit the reference layers — mode-of-action groups, hazard and safety classification, and substance-to-substance interactions — so a question like "what can I spray on winter wheat against aphids in May?" resolves to registered products with a legal dose, not a guess.

WHERE THE DATA COMES FROM
  • Official register of plant-protection products — the authoritative list of registered products, active substances, approved crops and target pests. gov.pl
  • Application & dosage tables — legal uses, doses and intervals, taken from the register's structured "zastosowanie" export. gov.pl
  • Substance interaction list — compatibility and interaction data between active substances.
  • Product labels & leaflets — the official PDF leaflets (ulotki), parsed for the sections the register itself does not carry. gov.pl
  • Reference classifications — EPPO codes, mode-of-action groups and hazard data, used to reconcile everything against one ontology.
HOW QUESTIONS ARE ANSWERED

Questions are answered with GraphRAG: the query is grounded against the graph, the relevant subgraph is retrieved, and the answer is written from those facts with the registered products and doses it relied on. Answer generation runs on OpenAI GPT-5.5, with GPT-4.1-mini handling the lighter routing and extraction steps.

WORKING DEMO
SOR Chat answering what happens when the flufenacet active substance is withdrawn — an impact summary (45 products, 181 registered uses, 19 with no same-mode-of-action alternative) above an interactive graph of affected products, crops and modes of action.
SOR Chat: the impact of withdrawing an active substance, answered from the graph.
Open the demo — sor.kgbuilder.dev