question stringlengths 54 212 | answer stringlengths 34 355 | must_include listlengths 1 3 | source_pmid stringlengths 8 8 ⌀ | drafted_by stringclasses 1
value | reviewed bool 1
class |
|---|---|---|---|---|---|
What is the IC50 value of the ACE inhibitory peptide VY-7 derived from bitter melon seed proteins? | The IC50 value of VY-7 is 8.64±0.60 μM. | [
"VY-7",
"IC50",
"μM"
] | 26344130 | meta-llama/llama-3.3-70b-instruct | false |
What proteins in goat milk can be precursors of antimicrobial peptides? | The proteins in goat milk that can be precursors of antimicrobial peptides are α-s1-casein, α-s2-casein, β-casein, κ-casein, α-lactoglobulin, and β-lactalbumin. | [
"goat milk",
"α-s1-casein",
"β-casein"
] | 35789493 | meta-llama/llama-3.3-70b-instruct | false |
What is the effect of fermentation on the angiotensin-converting enzyme inhibitory activity of peptides with molecular weights less than 2 kDa obtained from oat products after in vitro gastrointestinal digestion? | Fermentation causes an increase in the ACE inhibitory activities of the peptide mixture with a molecular weight less than 2 kDa. | [
"oat products",
"fermentation"
] | 36869510 | meta-llama/llama-3.3-70b-instruct | false |
What is the effect of Casein Glycomacropeptide on blood tyrosine levels in children with Tyrosinemia type I? | The median blood tyrosine level decreased from 490 μmol/L to 430 μmol/L over 12 months. | [
"Casein Glycomacropeptide",
"Tyrosinemia type I",
"tyrosine"
] | 34579102 | meta-llama/llama-3.3-70b-instruct | false |
What is the molecular weight cut-off range of the ultrafiltration membranes used to separate peptide fractions from goat milk fermented by Lactobacillus rhamnosus C25? | The molecular weight cut-offs of the ultrafiltration membranes used were 3, 5, and 10 kDa. | [
"goat milk",
"Lactobacillus rhamnosus",
"kDa"
] | 36226982 | meta-llama/llama-3.3-70b-instruct | false |
What types of caseins are the 257 peptides in bovine kefir mainly released from? | The peptides are mainly released from β-casein, followed by αS1-, κ-, and αS2-casein. | [
"β-casein",
"kefir"
] | 25613046 | meta-llama/llama-3.3-70b-instruct | false |
What molecular features are essential for bovine casein-derived peptides to present high angiotensin-converting enzyme inhibition capacity in vitro? | Two molecular features are essential: interaction with the S1 active site residues by hydrogen bonds and interaction with Zn2+ coordinated residues by short-length hydrogen bonds. | [
"angiotensin-converting enzyme",
"casein-derived peptides",
"hydrogen bonds"
] | 32066337 | meta-llama/llama-3.3-70b-instruct | false |
What happens to bovine lactoferrin during digestion with human gastrointestinal enzymes? | Bovine lactoferrin is degraded and forms bioactive peptides, with the extent of degradation depending on factors such as gastric pH and the concentration of gastrointestinal juices. | [
"lactoferrin"
] | 23141828 | meta-llama/llama-3.3-70b-instruct | false |
What types of food sources are Angiotensin I converting enzyme inhibitors derived from? | Angiotensin I converting enzyme inhibitors are derived from milk, corn and fish protein sources. | [
"milk",
"Angiotensin I converting enzyme",
"fish protein"
] | 12769739 | meta-llama/llama-3.3-70b-instruct | false |
What are the antioxidant capacities of Camelina sativa L. Crantz and Cynara cardunculus co-products as measured by the ABTS assay? | The antioxidant capacities of Camelina sativa L. Crantz cake (CAMC), cardoon cake (CC), and cardoon meal (CM) are 9511.18 ± 315.29 mg TE/100 g, 10451.40 ± 149.17 mg TE/100 g, and 10969.80 ± 18.93 mg TE/100 g, respectively. | [
"ABTS",
"mg TE/100 g"
] | 38914602 | meta-llama/llama-3.3-70b-instruct | false |
What peptides from Sardina pilchardus hydrolysate have been identified as having ACE inhibitory activity and antioxidant activities? | The peptides FIGR, FILR, FQRL, FRAL, KFL, and KLF have been identified as having ACE inhibitory activity and antioxidant activities. | [
"Sardina pilchardus",
"ACE inhibitory activity",
"antioxidant activities"
] | 37297461 | meta-llama/llama-3.3-70b-instruct | false |
What is the IC50 value range of ACE inhibition by Luffa cylindrica seed protein hydrolysates? | The IC50 value range of ACE inhibition by Luffa cylindrica seed protein hydrolysates is 0.32-0.93 mg/mL. | [
"Luffa cylindrica",
"ACE inhibition"
] | 31193002 | meta-llama/llama-3.3-70b-instruct | false |
What enzyme is stimulated by components of milk, such as casein, calcium, lactose, and fat, and has anti-inflammatory properties? | Intestinal alkaline phosphatase (IAP) is stimulated by components of milk and has anti-inflammatory properties. | [
"intestinal alkaline phosphatase",
"milk",
"casein"
] | 27241245 | meta-llama/llama-3.3-70b-instruct | false |
How does the digestive fate of human milk compare to infant formula in terms of gastric proteolysis of caseins and α-lactalbumin? | The gastric proteolysis of caseins and α-lactalbumin is significantly slower for human milk than for infant formula. | [
"human milk",
"infant formula",
"caseins"
] | 39614495 | meta-llama/llama-3.3-70b-instruct | false |
What are the functional properties of insect proteins? | Insect proteins have functional properties such as solubility, emulsification, foaming, gelation, water-holding, and oil absorption. | [
"insect proteins",
"solubility",
"emulsification"
] | 38231647 | meta-llama/llama-3.3-70b-instruct | false |
What compounds were found in the polyphenolic profile of Tannat grape skin using ultra-high performance liquid chromatography tandem mass spectrometry? | The polyphenolic profile of Tannat grape skin was found to contain mainly flavonoids, phenolic acids, and anthocyanins. | [
"flavonoids",
"phenolic acids",
"anthocyanins"
] | 35276777 | meta-llama/llama-3.3-70b-instruct | false |
What is the effect of gastric digestion on the bioavailability of phenolic compounds, such as chlorogenic acid and rutin, in roasted yerba mate infusions prepared with skimmed milk? | Gastric digestion significantly impacts the release of phenolic compounds, with chlorogenic acid remaining 100% bioavailable in the infusion prepared with skimmed milk. | [
"chlorogenic acid",
"gastric digestion",
"skimmed milk"
] | 38760137 | meta-llama/llama-3.3-70b-instruct | false |
What types of peptides are present in the 3-kDa ultrafiltrate of fermented whey protein isolate medium produced by Lactobacillus helveticus LH-2 and Lactobacillus acidophilus La-5? | The peptides present are derived from milk proteins such as β-casein, αs1-casein, αs2-casein, κ-casein, and β-lactoglobulin, and have established physiological functions including angiotensin-converting-enzyme (ACE) inhibitory, antioxidant, antimicrobial, or immunomodulating activity. | [
"β-casein",
"whey protein isolate",
"mass spectrometry"
] | 31681785 | meta-llama/llama-3.3-70b-instruct | false |
What changes occur in the milk proteome of dairy cows infected with Streptococcus uberis? | The infection leads to increases in proteins such as cathelicidins, haptoglobin, and mammary-associated serum amyloid A3, and decreases in proteins such as xanthine oxidase, butyrophilin, and β-1,4-galactosyltransferase. | [
"Streptococcus uberis",
"milk proteome",
"cathelicidins"
] | 31280743 | meta-llama/llama-3.3-70b-instruct | false |
What types of proteins are present in the skim milk fraction of bovine milk from Holstein and Jersey dairy cows? | The skim milk fraction of bovine milk from Holstein and Jersey dairy cows contains hundreds of bioactive peptides and proteins, including lactotransferrin, complement C2 protein, osteopontin, and lactoperoxidase. | [
"bovine milk",
"lactotransferrin",
"proteome"
] | 26391770 | meta-llama/llama-3.3-70b-instruct | false |
What are the antioxidative and ACE inhibitory activities of whey protein hydrolysate with pepsin hydrolysis? | The whey protein hydrolysate with pepsin hydrolysis showed antioxidative activity ranging from 84.50% to 85.96% and ACE inhibitory activity of 58.37%. | [
"whey protein hydrolysate",
"pepsin",
"ACE inhibitory activity"
] | 35584265 | meta-llama/llama-3.3-70b-instruct | false |
What was the effect of consuming high-protein concentrated pro-yogurt enriched with 20% whey protein isolate on the hemoglobin levels of athletes? | The hemoglobin levels of athletes increased significantly to 16.66 g/dl after consuming high-protein concentrated pro-yogurt enriched with 20% whey protein isolate. | [
"whey protein isolate",
"hemoglobin",
"16.66 g/dl"
] | 35127786 | meta-llama/llama-3.3-70b-instruct | false |
What is the effect of adding squid fin protein hydrolysate on the textural properties of threadfin bream surimi gel? | The addition of squid fin protein hydrolysate decreases the breaking force and deformation of threadfin bream surimi gel, but increases the water holding capacity. The optimal concentration of squid fin protein hydrolysate is 2%, which acts as a flavorant without markedly negative impact on gelling and textural propert... | [
"squid fin protein hydrolysate",
"threadfin bream surimi gel",
"2%"
] | 35593270 | meta-llama/llama-3.3-70b-instruct | false |
What effect do pepsin-pancreatin protein hydrolysates from extruded amaranth have on markers of atherosclerosis in LPS-induced THP-1 macrophages-like human cells? | Pepsin-pancreatin protein hydrolysates from extruded amaranth inhibit markers of atherosclerosis by reducing expression of proteins in LOX-1 signaling pathway. | [
"amaranth",
"LOX-1"
] | 24891839 | meta-llama/llama-3.3-70b-instruct | false |
What is the result of encapsulating casein-derived peptides within electrospun nanofibres using pullulan at concentrations of 120 and 140 g kg^-1? | The encapsulation efficiency of casein-derived peptides within electrospun nanofibres using pullulan at concentrations of 120 and 140 g kg^-1 is 72.95-86.04% with a mean diameter of 60.45-133.05 nm. | [
"casein-derived peptides",
"electrospun nanofibres",
"pullulan"
] | 34460106 | meta-llama/llama-3.3-70b-instruct | false |
What are the antioxidant activities of protein hydrolysates prepared from Chinese Pond Turtle muscle proteins? | The protein hydrolysates prepared from Chinese Pond Turtle muscle proteins have various antioxidant activities, including DPPH and ABTS radical scavenging, hydroxyl radical scavenging, reducing capacity, and lipid peroxide inhibition activity. | [
"Chinese Pond Turtle",
"DPPH",
"ABTS"
] | 34759767 | meta-llama/llama-3.3-70b-instruct | false |
What are the IC50 values of the chemosynthetic peptides ERFNVE, TELVLK, MELVLK, and FDDKLD from mulberry leaf protein hydrolysate? | The IC50 values are 2.65 mg/mL for ERFNVE, 0.98 mg/mL for TELVLK, 1.90 mg/mL for MELVLK, and 0.70 mg/mL for FDDKLD. | [
"ERFNVE",
"mulberry leaf"
] | 36825069 | meta-llama/llama-3.3-70b-instruct | false |
What effect does a diet supplemented with 4% marine bioactive peptides have on the apparent total tract digestibility of dry matter in adult cats? | The apparent total tract digestibility of dry matter is higher in adult cats fed a diet supplemented with 4% marine bioactive peptides, with a value of 84.5% compared to 80.9% in those fed a control diet. | [
"bioactive peptides",
"apparent total tract digestibility",
"adult cats"
] | 38587063 | meta-llama/llama-3.3-70b-instruct | false |
What effect do fish protein hydrolysates have on intestinal dysbiosis and muscle atrophy in Lates calcarifer juvenile fed a poultry by-product meal diet? | Fish protein hydrolysates alleviate intestinal dysbiosis and muscle atrophy induced by poultry by-product meal in Lates calcarifer juvenile. | [
"fish protein hydrolysates",
"poultry by-product meal"
] | 37057066 | meta-llama/llama-3.3-70b-instruct | false |
What properties do peptide fractions isolated from dried fermented cow milk products exhibit? | Peptide fractions isolated from dried fermented cow milk products exhibit antioxidant, antihypertensive, and antidiabetic properties. | [
"antioxidant",
"cow milk",
"peptide fractions"
] | 34146413 | meta-llama/llama-3.3-70b-instruct | false |
What are the antioxidant and enzyme inhibitory properties of hydrolyzed oat bran proteins and peptides? | Hydrolyzed oat bran proteins and peptides have antioxidant properties, retarding the oxidation of peanut oil and linoleic acid, and inhibit pancreatic lipase and α-amylase enzymes. | [
"oat bran",
"α-amylase",
"lipase"
] | 33997997 | meta-llama/llama-3.3-70b-instruct | false |
What are the effects of enzymatic hydrolysis on the antioxidant activities and functional properties of dromedary milk proteins? | Enzymatic hydrolysis of dromedary milk proteins enhances their antioxidant capacities and functional properties, such as solubility, foaming, and emulsification. The hydrolysates exhibit significantly higher antioxidant capacities than the undigested proteins. | [
"dromedary milk proteins",
"antioxidant activities",
"enzymatic hydrolysis"
] | 32831567 | meta-llama/llama-3.3-70b-instruct | false |
What effect do buffalo casein-derived bioactive peptides have on osteoblast differentiation? | Buffalo casein-derived bioactive peptides, such as PEP1, PEP2, PEP3, and PEP4, significantly up-regulate osteoblast differentiation marker genes and enhance osteoblast differentiation. | [
"buffalo casein",
"osteoblast differentiation",
"PEP1"
] | 27868152 | meta-llama/llama-3.3-70b-instruct | false |
What properties inform the separation and purification of protein hydrolyzates to obtain bioactive peptides? | The structural properties of peptides, such as molecular weight, charge, hydrophobicity or hydrophilicity, and solubility, inform the separation and purification of protein hydrolyzates. | [
"molecular weight",
"hydrophobicity",
"protein hydrolyzates"
] | 31353493 | meta-llama/llama-3.3-70b-instruct | false |
What effect does whey protein supplementation have on oxidative stress in hypothyroidism? | Whey protein supplementation causes a considerable decrease in MDA levels with an increase in the major antioxidant enzyme and ATPase activities. The effective dose is 500 mg kg-1. | [
"whey protein",
"hypothyroidism"
] | 39446129 | meta-llama/llama-3.3-70b-instruct | false |
What is the amino acid sequence and molecular weight of the novel bio-peptide isolated from walnut residual protein? | The amino acid sequence of the purified peptide is CTLEW with a molecular weight of 651.2795 Da. | [
"CTLEW",
"walnut",
"651.2795 Da"
] | 26593407 | meta-llama/llama-3.3-70b-instruct | false |
What is the ACE inhibitory activity of the novel octapeptide FPPPKVIQ derived from moth bean protein? | The novel octapeptide FPPPKVIQ showed the highest ACE inhibitory activity of 93.4% with an IC50 of 0.24 μM. | [
"FPPPKVIQ",
"ACE inhibitory activity",
"93.4%"
] | 37360301 | meta-llama/llama-3.3-70b-instruct | false |
What is the IC₅₀ value of the peptide LAPSLPGKPKPD for ACE inhibitory activity? | The IC₅₀ value of the peptide LAPSLPGKPKPD for ACE inhibitory activity is 1.97 μmol/L. | [
"LAPSLPGKPKPD",
"IC₅₀",
"ACE inhibitory activity"
] | 25138009 | meta-llama/llama-3.3-70b-instruct | false |
What are the antioxidant and enzyme inhibitory properties of sacha inchi protein hydrolysate and its peptide fractions? | Sacha inchi protein hydrolysate and its peptide fractions have antioxidant and enzyme inhibitory properties, with the smaller peptides (F1, <1 kDa) showing the most potent antioxidant properties and strongest inhibition of angiotensin converting enzyme, dipeptidyl peptidase-IV, prolyl oligopeptidase, and 3-hydroxy-3-me... | [
"sacha inchi",
"antioxidant",
"angiotensin converting enzyme"
] | 36190151 | meta-llama/llama-3.3-70b-instruct | false |
What is the effect of rice dreg enzymatic hydrolysates peptide on blood pressure in spontaneously hypertensive rats? | The rice dreg enzymatic hydrolysates peptide has a significant antihypertensive effect, with a blood pressure drop of 11-26 mmHg after oral administration. | [
"rice dreg",
"antihypertensive"
] | 17392119 | meta-llama/llama-3.3-70b-instruct | false |
What effect does Lactobacillus plantarum CQPC02 have on fatigue levels and biochemical oxidation phenomena in mice? | Lactobacillus plantarum CQPC02 has an anti-fatigue and anti-oxidation effect, increasing swimming exhaustion time and reducing lactic acid and blood urea nitrogen content in a dose-dependent manner. | [
"anti-fatigue",
"anti-oxidation"
] | 34095185 | meta-llama/llama-3.3-70b-instruct | false |
What effect does a combination of glutamine, curcumin, and fish bioactive peptides have on colonic permeability in a chronic-restraint stress model? | The combination of glutamine, curcumin, and fish bioactive peptides reduces colonic hyperpermeability. | [
"glutamine",
"curcumin",
"colonic permeability"
] | 37108383 | meta-llama/llama-3.3-70b-instruct | false |
What is the antioxidant activity of milk protein preparations fermented by Lactobacillus helveticus? | The antioxidant activity of fermented milk protein preparations depended on the type of milk protein preparation and the strain that conducted the fermentation process, with the highest values of DPPH scavenging activity recorded for SMP fermented by the reference strain (85.98%) and T80 (81.66%). | [
"milk protein preparations",
"DPPH"
] | 28703960 | meta-llama/llama-3.3-70b-instruct | false |
What is the relationship between bitterness and bioactivity in sodium caseinate hydrolysates? | The most bitter fraction of sodium caseinate hydrolysates contains the highest abundance of insulinogenic peptides, indicating a correlation between bitter taste and bioactivity. | [
"sodium caseinate hydrolysates",
"bitterness",
"bioactivity"
] | 29428747 | meta-llama/llama-3.3-70b-instruct | false |
What are the main energy sources for neonatal mammals after birth? | Lactose and fat from colostrum and milk intake are the main energy sources for neonatal mammals after birth. | [
"lactose",
"fat",
"colostrum"
] | 22480719 | meta-llama/llama-3.3-70b-instruct | false |
What analytical techniques are combined to predict the elementary amino acid composition of peptides in a rapeseed protein hydrolysate? | The combined techniques are reversed phase liquid chromatography (RPLC), hydrophilic interaction chromatography (HILIC), and capillary electrophoresis coupled with mass spectrometry. | [
"RPLC",
"HILIC",
"rapeseed protein hydrolysate"
] | 22543694 | meta-llama/llama-3.3-70b-instruct | false |
What enzyme is highly abundant in Kashmiri cattle milk and has a 17-fold higher expression compared to Jersey cattle milk? | The enzyme is flavin monooxygenase 3 (FMO3). | [
"FMO3",
"Kashmiri cattle",
"Jersey cattle"
] | 32059637 | meta-llama/llama-3.3-70b-instruct | false |
What are the antioxidant properties of Olea europaea L. seed hydrolysates produced using alcalase and papain? | Olea europaea L. seed hydrolysates produced using alcalase and papain have significant antioxidant properties, reducing free radical scavenging activities up to 65.0% and 75.7%, respectively, and increasing ferric reducing antioxidant power (FRAP) up to 13,025.0% and 12,462.5%, respectively. | [
"alcalase",
"papain",
"antioxidant properties"
] | 36139804 | meta-llama/llama-3.3-70b-instruct | false |
What is the effect of soluble protein hydrolysate on gastrointestinal inflammation and injury in 2,4,6-trinitrobenzene sulfonic acid-induced colitis in mice? | Soluble protein hydrolysate decreases the disease activity index score and colon tissue injury, and its protective mechanisms are associated with reduced infiltration of immune cells, downregulated pro-inflammatory cytokines, and upregulated anti-inflammatory cytokines and anti-oxidative genes. | [
"soluble protein hydrolysate",
"2,4,6-trinitrobenzene sulfonic acid",
"colitis"
] | 36139127 | meta-llama/llama-3.3-70b-instruct | false |
What is the effect of protein hydrolysates on postprandial blood glucose response in normoglycaemic and hyperglycaemic adults? | Protein hydrolysates significantly reduce postprandial blood glucose response in both normoglycaemic and hyperglycaemic adults, with a dose-dependent response in normoglycaemic adults for doses ≤ 30 g. The reduction in postprandial blood glucose response is -0.22 mmol/L in normoglycaemic adults and -0.88 mmol/L in hype... | [
"protein hydrolysates",
"postprandial blood glucose response",
"normoglycaemic"
] | 38276562 | meta-llama/llama-3.3-70b-instruct | false |
Which milk protein fraction is the usual source of ACE-inhibitory peptides such as IPP and VPP? | Casein, in particular beta-casein, released during fermentation by lactic acid bacteria. | [
"casein"
] | null | null | null |
What enzyme is most commonly used to hydrolyse whey protein for antioxidant peptide production? | Alcalase is the protease most frequently reported for whey protein hydrolysis. | [
"alcalase"
] | null | null | null |
Which assay is most frequently used to measure the radical-scavenging activity of food-derived peptides? | The DPPH radical scavenging assay. | [
"DPPH"
] | null | null | null |
Food Science LLM Text-Mining Protocol
Pipeline and derived data accompanying:
Guo X, Fu W. Data Mining and Text Mining Using Large Language Models. In: Li Y, Zhang D, Guo Z (eds), AI in Food Science: Methods and Protocols. Methods and Protocols in Food Science. Springer.
The chapter prints one protocol as 26 numbered steps with abbreviated code listings. This repository is the executable form of that protocol. Every step has a corresponding function here, and every number in the case study is produced by running it.
No result in this repository is typed by hand. The figures are drawn from
pipeline output, and case_study.tex regenerates the LaTeX macros that carry
the counts, so prose and data cannot drift apart.
What the pipeline does
Given a PubMed query, it retrieves abstracts, splits them into sentences, extracts food-science entities and the relations between them with an LLM, builds a knowledge graph, clusters food sources by bioactive profile, and evaluates a retrieval-augmented question-answering system against a no-retrieval control.
| Chapter steps | Module | Stage name |
|---|---|---|
| 1-4 | foodlm/retrieve.py |
retrieve |
| 5-6 | foodlm/preprocess.py |
preprocess |
| 7-9 | foodlm/ner.py |
ner |
| 10 | foodlm/normalize.py |
normalize |
| 11-13 | (optional fine-tuning; not needed to reproduce the case study) | |
| 14-16 | foodlm/relations.py |
relations |
| 17 | foodlm/rag.py |
index |
| 18-19 | foodlm/rag.py |
rag-eval |
| 20-26 | foodlm/mining.py |
mining |
foodlm/stats.py |
stats |
|
foodlm/figures.py |
figures |
Installation
Python 3.12 is required. spaCy has no prebuilt wheels for 3.13 at the time of writing and building it from source fails there.
python3.12 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.4/en_core_sci_lg-0.5.4.tar.gz
cp .env.example .env # then fill in any keys you need
LLM endpoint
Any OpenAI-compatible endpoint works. The choice lives under llm: in the run
configuration. The default is a local Ollama server,
which makes the protocol runnable at no API cost:
llm:
model: qwen2.5:72b-instruct
base_url: http://localhost:11434/v1
api_key: ollama
workers: 8 # concurrent requests
To use the OpenAI API, set model: gpt-4o-mini, drop base_url, and put
OPENAI_API_KEY in .env. Nothing else changes. This is the substitution
described in Note 3 of the chapter.
Running it
python -m foodlm.cli --config config/bioactive_peptides.yaml retrieve
python -m foodlm.cli --config config/bioactive_peptides.yaml preprocess
python -m foodlm.cli --config config/bioactive_peptides.yaml ner
python -m foodlm.cli --config config/bioactive_peptides.yaml normalize
python -m foodlm.cli --config config/bioactive_peptides.yaml relations
python -m foodlm.cli --config config/bioactive_peptides.yaml index
python -m foodlm.cli --config config/bioactive_peptides.yaml rag-eval --qa eval/qa_pairs.jsonl
python -m foodlm.cli --config config/bioactive_peptides.yaml mining
python -m foodlm.cli --config config/bioactive_peptides.yaml stats
python -m foodlm.cli --config config/bioactive_peptides.yaml figures
or ... all to run every stage in order. config/smoke.yaml is the same
pipeline over 40 abstracts, for checking the environment before a full run.
Every LLM stage is resumable and cached. Responses are cached on disk by
(model, prompt), and the extraction stages skip work already recorded in
their output files, so an interrupted run restarts for free and re-running a
completed stage costs nothing.
To measure what the Step 6 keyword pre-filter discards, as Note 5 advises:
python -m foodlm.cli --config config/bioactive_peptides.yaml filter-recall --sample 100
Where the outputs go
data/<run-name>/
corpus.csv retrieved abstracts
corpus_meta.json query, retrieval date, hit counts (Note 4)
sentences.jsonl segmented sentences + filter decision
entities.jsonl grounded entity mentions
entities_normalized.jsonl mentions with a canonical label attached
canonical_map.json synonym to canonical mapping; hand edits win
relations.jsonl every classified pair, kept or not, with its status
cooccurrence.csv food source x biological activity matrix
mining.json graph, clustering and classification results
rag_eval.json per-question RAG vs direct-query outcomes
case_study_stats.json every number quoted in the case study
case_study.tex the same numbers as LaTeX macros
Reference run
RESULTS.md reports a complete run, regenerated by
python scripts/render_results.py.
Treat it as one iteration, not a fixed benchmark. The output depends on the model, its version, the query, and the state of PubMed on the day it ran. Model behaviour moves quickly, and a run six months from now will not reproduce these counts. The pipeline therefore records the model, endpoint, query and retrieval date alongside every result. What carries across runs is the shape of the findings, not the digits.
Three findings are worth reading before you trust your own run.
- Self-reported confidence carries almost no signal. 96% of relation
predictions came back labelled
high, and the confidence filter the protocol suggests removed nothing. The filter that worked was checking the model's own supporting quotation against the sentence. About a fifth of high-confidence predictions cited evidence that was not there. - Normalisation is load-bearing, not housekeeping. Raw extraction produced
about four thousand distinct
BIOLOGICAL_ACTIVITYstrings for under ten thousand mentions. That fragmentation makes clustering and classification meaningless, and it inflates apparent model disagreement. Measured on raw surface forms, two models appeared to agree on 0.27 of mentions; measured on canonical forms, 0.64. Most of the gap was spelling. - Two strong models agree on about two thirds of what they extract.
gpt-4o-miniandllama-3.3-70breached a span-and-type F1 of 0.64 on the same sentences. Agreement is consistency, not correctness, but it bounds how far any single run should be trusted, and it puts a number on the chapter's cross-model validation advice.
Where this departs from the printed listings
The chapter's listings are written for readability in print. The differences below exist because the printed version does not survive contact with a real corpus.
The PubMed query is tuned, and its hit count is recorded. Phrase queries are brittle. Requiring exact
[tiab]phrases from two separate lists in the same abstract can shrink a result set by an order of magnitude, and PubMed does not stem inside quotation marks, so singular and plural forms retrieve different records. The query inconfig/bioactive_peptides.yamlkeeps the peptide requirement strict but accepts either a food-source phrase or a food-related MeSH heading as the food anchor. Check your own hit count before building on a query. This run's query, date and count are incorpus_meta.json.Entity offsets are recomputed, not trusted. Step 7 asks the model for character offsets. Models get offsets wrong far more often than they get spans wrong, so
ner.ground()locates each span itself and discards any entity whose text does not occur literally in the sentence. This is the cheapest hallucination filter in the pipeline.Relation extraction is restricted and batched. Only entity-type combinations that some relation in Table 1 can connect are sent to the LLM, and pairs sharing a type combination are classified several per call. Food sources are still linked to activities through the mediating compound, which is what Table 1 licenses. A predicted triple is dropped if it violates the type schema or if its
evidencequote does not occur in the sentence.Umbrella compounds are excluded from the food/activity join. Terms such as
bioactive peptideandbioactivityattach to hundreds of food sources and to every activity. Joining through them yields the product of the two sets rather than any association: in this corpus the ten broadest such terms generated 98% of all pairs, giving a matrix with near-identical rows. A compound above a configurable breadth is treated as a category label.The number of clusters is chosen, not fixed. Step 23 sets
k = 6. Herekis selected by silhouette score over a range, so the grouping is a property of the data rather than of the protocol.Step 10 is a stage, not a line. The protocol describes normalisation in one clause.
foodlm/normalize.pyimplements it as two passes, deterministic rules followed by LLM synonym grouping, writing an inspectablecanonical_map.jsonthat hand edits override.Inline markup is stripped at ingestion. 31% of the abstracts in this corpus contain
<i>,<sub>or<sup>tags. Left in place they end up inside entity spans (<i>lactis</i> bd17) and fragment the graph.Louvain comes from networkx. networkx 3.0 and later ship the Louvain method, so the separate
python-louvainpackage is no longer needed.
Data and licensing
MIT licensed (see LICENSE).
These labels are model output, not ground truth. They were produced by an LLM and filtered by the checks described above, not verified by a domain expert. Use them as a starting point, a weak-supervision source, or a reproduction target, not as an evaluation benchmark.
Abstract text is not redistributed. PubMed abstracts carry publisher
copyright that varies by journal, so corpus.csv and sentences.jsonl are not
published. What is here is the derived output: PMIDs, extracted entities and
relations, the co-occurrence matrix and the aggregate results. Running the
retrieve stage with the recorded query rebuilds the source text. PubMed is
continuously indexed, so a later retrieval returns a superset of these records.
Republishing
huggingface-cli login
python scripts/publish_hf.py --repo <user>/<name> --dry-run # review first
python scripts/publish_hf.py --repo <user>/<name>
The uploader excludes abstract text, the vector store, the response cache and the print-resolution TIFFs. Everything else is published together: pipeline source, configurations, extractions and results, so that reading a number and reading the code that produced it are the same visit.
Tests
python tests/test_units.py
These cover the parts that need neither a network nor a GPU: JSON recovery from malformed model output, entity grounding, normalisation rules, the keyword filter, record cleaning and the relation type schema.
Citation
@incollection{guo2026datamining,
author = {Guo, Xiaolong and Fu, Weimin},
title = {Data Mining and Text Mining Using Large Language Models},
booktitle = {AI in Food Science: Methods and Protocols},
series = {Methods and Protocols in Food Science},
publisher = {Springer},
year = {2026}
}
- Downloads last month
- 46