Ability to customize prompt

Created on 13 February 2025, 2 months ago

I see a comment in the code about this, but wanted to create an official issue.

We need to be able to customize the AI prompt that is being sent. Ideally we could do this for each specific entity reference field that we are processing.

In the meantime, the current prompt has a problem. In the code I see this prompt:

$prompt .= "Which two to four of the following `|` separated options are highly relevant and moderately relevant?\n```{POSSIBLE_RESULTS}\n```\n\n";

The problem with this is that I have a single-value reference field and there is only a single related content that is relevant. So not sure this prompt will work.

I manually changed the prompt in code to be "Which one to four of the following", which I think will help, but don't want to patch this in the code.

Edited: Although having played with this, I never seem to get results. The correct AI prompt is being logged, but it doesn't return any relevant results. However, if I copy/paste the exact prompt into a ChatGPT browser window, I DO get the correct response. And when using the external ChatGPT it still seems to work when using "two to four" or "one to four".

So maybe there is a problem elsewhere in the AI system that is causing this prompt to not work somehow.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mpotter

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024