Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Generator: SEO Character Limits #8813

Open
allanwhite opened this issue Sep 4, 2024 · 1 comment
Open

Content Generator: SEO Character Limits #8813

allanwhite opened this issue Sep 4, 2024 · 1 comment

Comments

@allanwhite
Copy link

Description

The SEO defaults in the AI Content Generator App do not follow length guidelines, causing prompts to return generated SEO descriptions that are too long.

To reproduce

Use the AI Content Generator App to generate an SEO meta description. This does not impact other features such as translating one field to another language.

Expected behavior

From the Contentful SEO guide:

Ideally, [descriptions must be] be between 100 and 150 characters in length to avoid truncation in search results.

Proposed solution

Modify the values in the prompt parameters here and here to be 150.

In the user's content model inside Contentful, setting a validation to enforce this (GenAI output may vary in length, in spite of prompts to the contrary) will ensure output conforming to Google's SEO guidelines.

@aruby-atlas
Copy link

aruby-atlas commented Sep 10, 2024

Hi @allanwhite

You might consider setting the value at the lower end of the range, since ChatGPT doesn't really respect character counts all that well.

In our testing, we achieved a higher success rate for meeting a 158-character limit using 100 vs 150 for the value in the prompt. (We tested using the Prompt option and pasted both a modified prompt and source content as input.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants