AI Search Few Shot Learning is wrong
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3478065. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>AI Search few shot learning is hard coded and wrong. It should show the dynamical name and description for each of the databases available to it as an example.</p> <p>It should also not be possible to use a database that has not been chosen, to mitigate prompt injection.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>* Fix the provideFewShotLearningExample of AI Search.<br> * Fix so that the chosen database(s) are the only one that the plugin can run.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue