- Issue created by @mpotter
- First commit to issue fork.
- π¬π§United Kingdom scott_euser
Good spot and good shout - yeah prompt management would be great + I never considered the one-to-one relationship possibility, not sure how I missed that :)
This MR should handle both. It works already and has update hook (but backup first in case).
Needs work because I haven't done phpcs & automated test updates to coorrespond with this yet.But what it does:
- Adds an AI Auto-reference Prompt entity type
- Let's you select that entity type from the node bundle config page
- Uses that as the prompt instead
- Creates 2 default prompts in update hook (one for multiple, one for single)
- Improves the default prompts to give the LLM examples of how to reply
- Sets existing configurations to use the default for multiple (maintains status quo), but then you can subsequently edit to choose the default for single
If you have a moment to help test would be much appreciated
- π¬π§United Kingdom scott_euser
Which one to four of the following
The idea of the two to four was more like telling the LLM it does not need to actually find 4 if there are not 4 relevant ones. You can check out the new default I set for single here https://git.drupalcode.org/project/ai_auto_reference/-/merge_requests/8/... which works for me at least with openai 4o-mini in testing
-
scott_euser β
committed c9d3da3f on 1.0.x
Issue #3506582 by scott_euser, mpotter: Ability to customize prompt
-
scott_euser β
committed c9d3da3f on 1.0.x
Automatically closed - issue fixed for 2 weeks with no activity.