• Home
  • Get help
  • Ask a question
Last post 1 hour 44 min ago
Posts last week 82
Average response time last week 34 min
All time posts 68003
All time tickets 10512
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#10886 – Language is not considered, Meta Description is too long

Posted in ‘4AI’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 04 March 2024 15:39 UTC
coolcatcreations

Hi Yannick, I finally had the chance to test 4AI - thank you for the great tool.I have two issues... 1) when I generate a meta description for a german article it creates an english one, so I always have to mention that it should be german, maybe the current language can be included automatically into the prompt? 2) The Meta descriptions are not written like I want, I tried with following additional prompts, but it did not help. They often don't contain the requested form and are way too long. Where can I adjust the initial prompt? a) Create a concise meta description and a message following the A.I.D.A. format within a 155 character limit, including emoticons for added engagement. The message should grab attention, spark interest, create desire, and prompt action in a compelling and succinct way. Make sure it's catchy, informative, and persuasive. Use creative language and ensure the emoticons enhance the message's appeal without overshadowing the text.b) Craft a captivating meta description and message strictly in the AIDA format, limited to 155 characters, with emoticons. Start with a hook to grab attention, then spark interest with a fascinating fact or question. Create a strong desire by highlighting a unique benefit or solution. Conclude with a compelling call to action, all within a concise, emotive narrative. Make sure each AIDA component is distinct and impactful, using emoticons to enhance the emotional appeal. c) Using exactly 155 characters, including emoticons, create a message in the AIDA format. The message must grab attention, build interest, evoke desire, and prompt action. Please ensure the entire message, from start to finish, fits within the strict character limit. d) Using exactly 155 characters, including emoticons, create a message in the AIDA format. 

Monday, 04 March 2024 16:34 UTC
wb_weeblr

Hi Elisa

1) when I generate a meta description for a german article it creates an english one, so I always have to mention that it should be german, maybe the current language can be included automatically into the prompt?

The language is not exactly already included in the prompt but it's somewhat there as it includes "Write each description using the same language as the input. ". There's also a warning in the system prompt that instructions are in English but other languages are in use.

I'd rather do it this way as it's more flexible for general use case and has proven to work fine over the past year of so. Not sure why you are having this result.

You can look at the actual prompts and responses in the Joomla site log file under /{joomla logs}/forai-openai/forai.

The language is usually complied with, I get 100% accuracy with French for instance, on an English site, although your result may vary with whether you use GPT 3.5 or 4 and I don't have reports of any issue with this.

2) The Meta descriptions are not written like I want, I tried with following additional prompts, but it did not help. They often don't contain the requested form and are way too long. Where can I adjust the initial prompt?

Using the UI, you can't change the prompt, other than the available input fields, that's not what 4AI is for. 

The length is something that's nearly uncontrollable, as with anything done using LLMs (see what I have to use to specify "Shorten text" for instance. The prompt includes a size limit of 100 to 180 characters already and the model generally shoots around that size.

You can use a hook to modify the finalized API request data using forai_api_request_data.. Documentation is here

 Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 
Tuesday, 05 March 2024 14:06 UTC
coolcatcreations
Ok, thank you, Yannick! I think it's not considering the content language because germans love to use English words in between :-D You could inject the article language maybe into the prompt automatically... Elisa
Wednesday, 06 March 2024 14:19 UTC
wb_weeblr

Hi

I think it's not considering the content language because germans love to use English words in between

Nah, it's just that they are inconsistent and sometimes just fail, even on basic tasks. This happens less and less as they make progress, whch is why I asked about which model you use. GPT-4 is very different from GPT3-5 in that respect, it complies better with instructions.

Even GPT-4 would not reply consistently at the start, but over the months, they increased the quality and we have gained consistency.

That said, I have made some changes (get the latest dev version from the development versions download area) to include a language instruction when the language can be identified, which means only for com_content articles, and not for "All" languages on multilingual sites.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 07 March 2024 14:14 UTC
coolcatcreations
Hey Yannick, that's very cool, thank you. I used GPT 3.5, but I try it with 4 :-) Thanks for the Change with the language! Elisa
Thursday, 07 March 2024 14:16 UTC
coolcatcreations
PS: the download link redirects to home. I am logged in :-)
Thursday, 07 March 2024 14:17 UTC
wb_weeblr

Hi

It should not. The link is https://weeblr.com/downloads/development-versions. You can access it as well from the user menu, top right corner of the screen.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 07 March 2024 14:24 UTC
coolcatcreations
No its still redirecting and I dont have this menu item ( I am logged in)
Thursday, 07 March 2024 14:35 UTC
wb_weeblr

Hi

Yeah, Joomla access levels... Should be good now.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 07 March 2024 15:33 UTC
coolcatcreations
merci :-) works now!
Thursday, 07 March 2024 15:38 UTC
wb_weeblr

Hi

You're welcome! I will leave this ticket open in case you need to add something. It will automatically close in 2 weeks if no further comment is made.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Sunday, 07 April 2024 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.