RAG4Vrikshayurveda / vrikshayurveda_rules.yaml
Viraj77's picture
Initial commit: RAG for Vrikshayurveda with forward+backward chaining inference engine
0ee953b
Raw
History Blame Contribute Delete
18.3 kB
rules:
# ── INTERNAL VATA DISORDER ──────────────────────────────────────────────
- id: R001
name: "Trunk bent + knots β†’ internal Vata disorder"
source: vrikshayurveda
priority: 10
conditions: [trunk_bent, knots_on_trunk]
conclusions: [internal_vata_disorder]
dosha: vata
explanation: >
Bent trunk with knots are primary Vata symptoms β€” disturbed Vata
governs movement and structural integrity in Vrikshayurveda.
- id: R002
name: "Yellowing + fruit loss β†’ internal Vata disorder"
source: vrikshayurveda
priority: 10
conditions: [general_yellowing, flower_fruit_loss]
conclusions: [internal_vata_disorder]
dosha: vata
explanation: >
General yellowing of leaves and fruits combined with flower and
fruit loss indicates internal Vata imbalance from arid soil conditions.
- id: R003
name: "Hard fruits + slow defoliation β†’ internal Vata disorder"
source: vrikshayurveda
priority: 9
conditions: [hard_fruits, slow_defoliation]
conclusions: [internal_vata_disorder]
dosha: vata
explanation: >
Hard less-juicy fruits and slow defoliation are Vata symptoms
caused by root-infecting fungi, nematodes, or saline soils.
- id: R004
name: "Internal Vata β†’ arid soil cause"
source: vrikshayurveda
priority: 8
conditions: [internal_vata_disorder]
conclusions: [arid_soil_cause]
dosha: vata
explanation: >
Vrikshayurveda identifies arid land as the primary cause of
internal Vata β€” roots stressed by dry or saline soil.
- id: R005
name: "Internal Vata β†’ recommend panchmula decoction"
source: vrikshayurveda
priority: 7
conditions: [internal_vata_disorder]
conclusions: [recommend_panchmula_decoction]
dosha: none
explanation: >
Panchmula (five-root preparation) decoction is the classical
Vrikshayurveda treatment for internal Vata disorder.
- id: R006
name: "Internal Vata β†’ recommend fermented fat decoction"
source: vrikshayurveda
priority: 7
conditions: [internal_vata_disorder]
conclusions: [recommend_fermented_fat_decoction]
dosha: none
explanation: >
Fermented mixture of hog fat, porpoise oil, ghee, hemp, horsehair,
and cow horn boiled to decoction is the primary Vata treatment.
# ── INTERNAL KAPHA DISORDER ─────────────────────────────────────────────
- id: R007
name: "Delayed fruiting + bland overripe fruits β†’ internal Kapha disorder"
source: vrikshayurveda
priority: 10
conditions: [delayed_fruiting, bland_overripe_fruits]
conclusions: [internal_kapha_disorder]
dosha: kapha
explanation: >
Delayed bearing with bland overripe fruits signals Kapha excess β€”
associated with fungal gummosis, rot, or excessive watering.
- id: R008
name: "Oozing without injury β†’ internal Kapha disorder"
source: vrikshayurveda
priority: 9
conditions: [oozing_without_injury]
conclusions: [internal_kapha_disorder]
dosha: kapha
explanation: >
Spontaneous oozing from bark without physical damage is a
hallmark Kapha symptom indicating gummosis or internal rot.
- id: R009
name: "Internal Kapha + winter/spring β†’ fungal root rot cause"
source: vrikshayurveda
priority: 10
conditions: [internal_kapha_disorder, winter_spring_season]
conclusions: [fungal_rot_cause, excessive_moisture_cause]
dosha: kapha
explanation: >
Kapha disorders appearing in winter and spring are caused by
fungal gummosis, nutrient deficiency, or excessive watering.
- id: R010
name: "Internal Kapha β†’ recommend white mustard paste"
source: vrikshayurveda
priority: 7
conditions: [internal_kapha_disorder]
conclusions: [recommend_white_mustard_paste_roots]
dosha: none
explanation: >
White mustard paste applied at the roots is the primary
Vrikshayurveda treatment for Kapha disorder.
- id: R011
name: "Internal Kapha β†’ recommend sesame ash water + soil replacement"
source: vrikshayurveda
priority: 7
conditions: [internal_kapha_disorder]
conclusions: [recommend_sesame_ash_water, recommend_fresh_dry_soil]
dosha: none
explanation: >
Watering with sesame-and-ash mixture followed by replacing root
soil with fresh dry earth removes Kapha excess and excess moisture.
# ── INTERNAL PITTA DISORDER ─────────────────────────────────────────────
- id: R012
name: "Early leaf withering β†’ internal Pitta disorder"
source: vrikshayurveda
priority: 10
conditions: [early_leaf_withering]
conclusions: [internal_pitta_disorder]
dosha: pitta
explanation: >
Early withering of leaves before season indicates excess Pitta heat
β€” caused by viral disease, salinity in irrigation water, or blight.
- id: R013
name: "Early fruit/flower decay β†’ internal Pitta disorder"
source: vrikshayurveda
priority: 10
conditions: [early_fruit_flower_decay]
conclusions: [internal_pitta_disorder]
dosha: pitta
explanation: >
Premature decay of fruits or flowers is a Pitta symptom occurring
at end of summer, linked to blossom blight and fungal infection.
- id: R014
name: "Internal Pitta + end of summer β†’ heat-fungal cause"
source: vrikshayurveda
priority: 10
conditions: [internal_pitta_disorder, end_of_summer]
conclusions: [heat_fungal_cause, salinity_cause]
dosha: pitta
explanation: >
Pitta disorders at end of summer are caused by viral disease,
salinity in irrigation water, and susceptibility to fungal blight.
- id: R015
name: "Internal Pitta β†’ recommend triphala ghee honey decoction"
source: vrikshayurveda
priority: 7
conditions: [internal_pitta_disorder]
conclusions: [recommend_triphala_ghee_honey]
dosha: none
explanation: >
Watering with triphala, ghee, and honey decoction is the primary
Vrikshayurveda treatment for Pitta disorder.
- id: R016
name: "Internal Pitta β†’ recommend milk honey yastamdhu madhuka"
source: vrikshayurveda
priority: 7
conditions: [internal_pitta_disorder]
conclusions: [recommend_milk_honey_yastamdhu_madhuka]
dosha: none
explanation: >
Watering with decoction of milk, honey, yastamdhu, and madhuka
is the secondary Vrikshayurveda cooling treatment for Pitta.
# ── EXTERNAL: SCORCHING HEAT / FROST / INSECT ROOT DAMAGE ───────────────
- id: R017
name: "Yellowing + Vata-like symptoms β†’ heat or frost external cause"
source: vrikshayurveda
priority: 9
conditions: [general_yellowing, vata_like_symptoms]
conclusions: [external_heat_frost_disorder]
dosha: none
explanation: >
Leaf yellowing with Vata-like symptoms but no internal Vata cause
indicates external scorching heat, frost, or insect root damage.
- id: R018
name: "External heat/frost β†’ roots eaten by insects cause"
source: vrikshayurveda
priority: 8
conditions: [external_heat_frost_disorder]
conclusions: [insect_root_damage_cause, water_stress_cause]
dosha: none
explanation: >
External heat or frost disorders are caused by water stress
predisposing trees to attack by pathogens and root-eating insects.
- id: R019
name: "External heat/frost β†’ recommend cold water treatment 7 days"
source: vrikshayurveda
priority: 7
conditions: [external_heat_frost_disorder]
conclusions: [recommend_cold_water_7days]
dosha: none
explanation: >
Insects can be removed by cold water treatment for seven days β€”
the primary Vrikshayurveda remedy for external heat/frost disorder.
- id: R020
name: "External heat/frost β†’ recommend white mustard vasa kusta paste"
source: vrikshayurveda
priority: 7
conditions: [external_heat_frost_disorder]
conclusions: [recommend_white_mustard_vasa_kusta_paste]
dosha: none
explanation: >
Rubbing roots with white mustard, vasa, kusta, and ativisa paste
is the second treatment for insect-induced root damage.
- id: R021
name: "Insect root damage β†’ recommend milk kunapa cow dung paste"
source: vrikshayurveda
priority: 6
conditions: [insect_root_damage_cause]
conclusions: [recommend_milk_kunapa_cowdung_paste]
dosha: none
explanation: >
Paste of milk, kunapa water, and cow dung with water applied to
wounds heals insect-damaged root tissue.
# ── EXTERNAL: EXCESSIVE STORMY WINDS ────────────────────────────────────
- id: R022
name: "Uprooting + branch breaking β†’ stormy wind disorder"
source: vrikshayurveda
priority: 10
conditions: [tree_uprooting, branch_breaking]
conclusions: [stormy_wind_disorder]
dosha: none
explanation: >
Uprooting and branch breaking are the defining symptoms of
excessive stormy wind β€” mechanical damage, not biological.
- id: R023
name: "Tree twisting β†’ stormy wind disorder"
source: vrikshayurveda
priority: 9
conditions: [tree_twisting]
conclusions: [stormy_wind_disorder]
dosha: none
explanation: >
Tree twisting is a stormy wind symptom indicating mechanical
structural damage to the trunk.
- id: R024
name: "Stormy wind disorder β†’ recommend Plaksa Udumbara ghee paste"
source: vrikshayurveda
priority: 7
conditions: [stormy_wind_disorder]
conclusions: [recommend_plaksa_udumbara_ghee_paste]
dosha: none
explanation: >
Mixture of Plaksa bark, Udumbara, ghee, honey, wine, and milk
applied to damaged areas is the Vrikshayurveda wind-damage remedy.
# ── EXTERNAL: FIRE / LIGHTNING / WATER STRESS ───────────────────────────
- id: R025
name: "Drying of tree + Vata-like symptoms β†’ fire/lightning/drought"
source: vrikshayurveda
priority: 9
conditions: [tree_drying, vata_like_symptoms]
conclusions: [fire_lightning_drought_disorder]
dosha: none
explanation: >
Drying with Vata-like symptoms indicates fire, lightning strike,
soil aridity, or severe water stress as external cause.
- id: R026
name: "Fire/lightning β†’ recommend remove burned branches + milk water"
source: vrikshayurveda
priority: 7
conditions: [fire_lightning_drought_disorder]
conclusions: [recommend_remove_burned_branches, recommend_milk_water_moisten]
dosha: none
explanation: >
Burned branches must be removed and cuts moistened with milk and
water before smoking with crab shells.
- id: R027
name: "Fire/lightning β†’ recommend lotus mud + kunapa water"
source: vrikshayurveda
priority: 7
conditions: [fire_lightning_drought_disorder]
conclusions: [recommend_lotus_mud_kunapa]
dosha: none
explanation: >
Entire tree covered in lotus mud then watered with kunapa mixture
is the Vrikshayurveda treatment for severely burned trees.
- id: R028
name: "Lightning strike specifically β†’ recommend vidari arsenic sesame"
source: vrikshayurveda
priority: 8
conditions: [fire_lightning_drought_disorder, lightning_strike]
conclusions: [recommend_vidari_arsenic_sesame_milk]
dosha: none
explanation: >
Trees struck by lightning need anointing with vidari, sugar, red
arsenic, and sesame then sprinkled with milk and water.
# ── EXTERNAL: MECHANICAL WOUND (AXE ETC.) ───────────────────────────────
- id: R029
name: "Tree wounds + drying up β†’ mechanical wound disorder"
source: vrikshayurveda
priority: 9
conditions: [tree_wounds, tree_drying]
conclusions: [mechanical_wound_disorder]
dosha: none
explanation: >
Wounds from axe or other implements causing drying are classified
as mechanical wound disorder in Vrikshayurveda.
- id: R030
name: "Mechanical wound β†’ recommend Nyagrodha Udumbara cow dung paste"
source: vrikshayurveda
priority: 7
conditions: [mechanical_wound_disorder]
conclusions: [recommend_nyagrodha_udumbara_cowdung_paste]
dosha: none
explanation: >
Paste of Nyagrodha bark, Udumbara, cow dung, honey, and ghee
applied to wounds is the Vrikshayurveda mechanical wound remedy.
# ── FAULTY SEED DISORDER ─────────────────────────────────────────────────
- id: R031
name: "Unproductive tree β†’ faulty seed disorder"
source: vrikshayurveda
priority: 9
conditions: [tree_unproductive]
conclusions: [faulty_seed_disorder]
dosha: none
explanation: >
Trees that fail to bear fruit or produce are classified as faulty
seed disorder β€” caused by untreated or pathogen-infected seeds.
- id: R032
name: "Faulty seed β†’ seed pathogen or insect cause"
source: vrikshayurveda
priority: 8
conditions: [faulty_seed_disorder]
conclusions: [seed_pathogen_cause]
dosha: none
explanation: >
Unproductive trees trace back to seeds infected with pathogens
or damaged by insects at the seed stage.
- id: R033
name: "Faulty seed β†’ recommend milk mustard ash seed treatment"
source: vrikshayurveda
priority: 7
conditions: [faulty_seed_disorder]
conclusions: [recommend_milk_mustard_ash_seed_treatment]
dosha: none
explanation: >
Seeds should be treated with milk, mustard, ash of sesame and
brhati, rubbed with cow dung, honey, and vidanga.
# ── ANTS / INSECT INFESTATION ────────────────────────────────────────────
- id: R034
name: "Foul smell + fragrance loss β†’ insect infestation"
source: vrikshayurveda
priority: 10
conditions: [foul_smell, fragrance_loss]
conclusions: [insect_infestation_disorder]
dosha: none
explanation: >
Foul smell replacing original fragrance is the primary indicator
of ant or insect infestation in Vrikshayurveda.
- id: R035
name: "Reduced leaf size + stunted seedlings β†’ insect infestation"
source: vrikshayurveda
priority: 9
conditions: [reduced_leaf_size, stunted_seedlings]
conclusions: [insect_infestation_disorder]
dosha: none
explanation: >
Reduction in leaf size and stunted seedling growth indicates
insect (ant/caterpillar) activity damaging the root system.
- id: R036
name: "Insect infestation β†’ recommend vidanga smoke fumigation"
source: vrikshayurveda
priority: 7
conditions: [insect_infestation_disorder]
conclusions: [recommend_vidanga_smoke_fumigation]
dosha: none
explanation: >
Smoking with white mustard, ramatha, vidanga, vaca, usana mixed
with beef and pigeon flesh removes caterpillars and insects.
- id: R037
name: "Insect infestation β†’ recommend vidanga ghee ointment + soft water"
source: vrikshayurveda
priority: 7
conditions: [insect_infestation_disorder]
conclusions: [recommend_vidanga_ghee_ointment, recommend_soft_water_7days]
dosha: none
explanation: >
Anointing with vidanga mixed with ghee and watering for seven
days with soft water is the second insect treatment.
# ── EXCESSIVE WATERING DISORDER ─────────────────────────────────────────
- id: R038
name: "Tree indigestion + destruction β†’ excessive watering disorder"
source: vrikshayurveda
priority: 9
conditions: [tree_indigestion, tree_destruction]
conclusions: [excessive_watering_disorder]
dosha: kapha
explanation: >
Trees suffering indigestion and destruction from water excess are
classified as excessive watering disorder β€” a Kapha-adjacent cause.
- id: R039
name: "Excessive watering β†’ recommend honey vidanga root application"
source: vrikshayurveda
priority: 7
conditions: [excessive_watering_disorder]
conclusions: [recommend_honey_vidanga_roots]
dosha: none
explanation: >
Honey and vidanga applied to every root of tender plants after
uprooting and scratching with nails is the watering excess remedy.
# ── CROSS-DISORDER CHAINS ────────────────────────────────────────────────
- id: R040
name: "Excessive moisture + Kapha β†’ excessive watering overlap"
source: derived
priority: 8
conditions: [excessive_moisture_cause, internal_kapha_disorder]
conclusions: [excessive_watering_disorder]
dosha: kapha
explanation: >
When Kapha disorder is accompanied by excessive moisture cause,
the tree is likely suffering from both Kapha imbalance and
overwatering simultaneously.
- id: R041
name: "Arid soil + water stress β†’ fire/drought overlap"
source: derived
priority: 7
conditions: [arid_soil_cause, water_stress_cause]
conclusions: [fire_lightning_drought_disorder]
dosha: none
explanation: >
Arid soil cause combined with water stress can produce symptoms
indistinguishable from fire or drought damage.
- id: R042
name: "Vata-like symptoms + insect root damage β†’ external heat/frost"
source: derived
priority: 8
conditions: [vata_like_symptoms, insect_root_damage_cause]
conclusions: [external_heat_frost_disorder]
dosha: none
explanation: >
Vata-like symptoms caused by insect root damage confirm external
heat or frost as the predisposing condition.