You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#116952 JCE Aia Prompt Execution

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Thursday, 09 January 2025 14:13 GMT

Picannick

Hello everyone,

We are currently in the process of integrating Aia and are testing it. We are having problems with the output after triggering a prompt.

"```html", "```" or "<h1>```html" and "```</h1> are always added to the output. Examples are attached.

We just don't know why this is the case and are therefore turning to you.
Can you please check this? ;-)

Thank you in advance

Marius
Webman

Ryan

Please try Aia 1.0.3 Beta - https://www.joomlacontenteditor.net/downloads/plugins/development/editor-aia-dev

Clear your browser cache after install.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Picannick

Hi Ryan,

Thank you for your feedback and providing the file.
The "```html" and "```" phases are no longer set.

  • In short:
  • If heading tags are first in the JCE, then continue to use heading tags once around everything
  • If only "p" tags, then it works perfectly
  • When checking grammar with German text, "br" tags are added
  • When checking grammar with English text, the "p" tag is placed once around everything in a paragraph and "meta" and "title" tags are added

Thanks a lot

Marius
Webman

Attachments

aia-problem-attachment-1.zip

Ryan

Are you using a custom prompt? Can you post an example of the prompts you are using?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Picannick

Yes we use custom prompts.

Here are the prompts:

Übersetzung auf EN
Translate the text into English. Keep the HTML structure and HTML tags.
Require Selection: Nein
The problem also occurs if you omit the statement with the HTML tags.

Übersetzung auf FR
Translate the text into French. Keep the HTML structure and HTML tags.
Require Selection: Nein

Grammatik Überprüfung
Check the grammar, punctuation and pronunciation.
Require Selection: Ja

Text formell umformulieren
Revise the content to achieve a more formal writing style
Require Selection: Ja

Ryan

This is the default prompt that is sent with all requests:

Respond to the Request at the end of this prompt based on the included Content if any.
Do not explain yourself. Do not annotate, introduce or quote the response. Do not include the Request in your response.
Return only your response content in HTML format. Preserve all HTML tags from the original Content in your response.
Respond in the language of the original content unless instructed otherwise.

One of the issues with ChatGPT is sometimes it just does it's own thing, regardless of how you attempt to instruct it.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Picannick

Hi Ryan,

Please excuse the lack of feedback for a while.
As it was the end of the year, we had to pause testing with Aia.

I have now done a few more tests and am giving you a short update on which problems still exist and which no longer exist:

  • If heading tags are first in the JCE, then continue to use heading tags once around everything, if only "p" tags, then it works perfectly
    • Problem still exists
  • When checking grammar with German text, "br" tags are added
    • This is no longer relevant, as it now works
  • When checking grammar with English text, the "p" tag is placed once around everything in a paragraph and "meta" and "title" tags are added
    • This is no longer relevant, as it now works

Regarding your feedback:
So we no longer need to include the instruction regarding compliance with the HTML structure in our prompts if this instruction is passed along by default anyway?

Thank you very much ;-)

Ryan

So we no longer need to include the instruction regarding compliance with the HTML structure in our prompts if this instruction is passed along by default anyway?

I have updated the default prompt to include this, but if adding your own gets you a better result, then do that too.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.