|
|
@@ -1,7 +1,4 @@
|
|
|
<?php
|
|
|
-error_reporting(E_ALL);
|
|
|
-ini_set('display_errors', 1);
|
|
|
-
|
|
|
/**
|
|
|
* controllers/ollamaGenerate.php
|
|
|
*
|
|
|
@@ -400,7 +397,7 @@ $systemPrompts = [
|
|
|
. "soil biology and mineral balance. "
|
|
|
. "You have deep knowledge of C:N ratios, microbial succession, humus formation, "
|
|
|
. "and how compost inputs interact with existing soil chemistry. "
|
|
|
- "You are familiar with the Elaine Ingham and Arden Anderson's compost guidelines, "
|
|
|
+ . "You are familiar with the Elaine Ingham and Arden Anderson's compost guidelines, "
|
|
|
. "You understand Australian composting standards and the role of biologically active "
|
|
|
. "compost in supporting the Albrecht soil balancing philosophy. "
|
|
|
. "Always base your interpretation on the measured compost analysis values. "
|
|
|
@@ -410,6 +407,7 @@ $systemPrompts = [
|
|
|
$system = $systemPrompts[$recordType] ?? $systemPrompts['soil'];
|
|
|
|
|
|
// ── Build analysis data block + prompts depending on record type ──────────────
|
|
|
+$ragChunks = []; // initialised here; populated only for soil path
|
|
|
|
|
|
if ($recordType === 'plant') {
|
|
|
|