.. include:: ../Includes.txt .. _admin-manual: Administration Manual ===================== Target group: **Administrators** .. _admin-installation: Installation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Add via composer.json: .. code-block:: javascript composer require "passionweb/ai-seo-helper" - Install the extension via composer - Flush TYPO3 and PHP Cache - Add your OpenAI secret key to the extension configuration before using the extension .. _admin-configuration: Configuration ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Extension manager configuration ------------- You can adapt the following parameters to your personal needs. After the first tests, the best results were achieved with the predefined values. However, this is no guarantee that these values ​​will also achieve the best results for you. .. code-block:: none # cat=basic; type=string; label=OpenAI Secret Key openAiApiKey = YOUR_API_KEY Enter your generated API key. .. code-block:: none # cat=basic; type=string; label=Prompt-Prefix for meta description generation openAiPromptPrefixMetaDescription = Extract seo meta description in one short sentence and with a maximum of 150 characters or less for following text Enter your instruction for generating meta description. Since OpenAI calculates the length of the content with tokens (an explanation of the conversion of tokens into characters and sentences can be found `here `_) by default, we have to explicitly tell the AI ​​the desired total length and the type of expected creation .. code-block:: none # cat=basic; type=string; label=Replace first part of generated meta description content replaceTextMetaDescription = Meta Description: The content generated by OpenAI is usually supplemented with a short introduction. Here you can define the part of the generated content that should be removed. .. code-block:: none # cat=basic; type=string; label=Prompt-Prefix for keywords generation openAiPromptPrefixKeywords = Extract seo keywords from this text Enter your instruction for generating keywords. .. code-block:: none # cat=basic; type=string; label=Replace first part of generated keywords replaceTextKeywords = SEO keywords: The content generated by OpenAI is usually supplemented with a short introduction. Here you can define the part of the generated content that should be removed. .. code-block:: none #cat=basic; type=string; label=Prompt-Prefix for page title suggestions generation openAiPromptPrefixPageTitle = Suggest page title ideas in bullet point list for this text Enter your instruction for generating page title suggestions (IMPORTANT: response must be a bullet point list as the return is processed that way). .. code-block:: none #cat=basic; type=boolean; label=Show raw response content of page title suggestions showRawPageTitleSuggestions = 0 By default, the extension prepares the page title suggestions in such a way that they can be selected via radio button. If you change the prompt prefix and no bullet point list is returned as a result, display problems can occur here. With this option you can output the raw content and select your favorite page title via copy/paste. .. code-block:: none # cat=basic; type=string; label=OpenAI Model openAiModel = text-davinci-003 The id of the model which will generate the completion. See `models overview `_ for an overview of available models. .. code-block:: none # cat=basic; type=double+; label=OpenAI Temperature openAiTemperature = 0.5 What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. .. code-block:: none # cat=basic; type=int+; label=OpenAI Max-Tokens openAiMaxTokens = 175 The token (`what are tokens and how to count them `_) count of your prompt plus max_tokens cannot exceed the model's context length. Most models have a context length of 2048 tokens (except for the newest models, which support 4096). .. code-block:: none # cat=basic; type=int+; label=OpenAI Top-P openAiTopP = 1 An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. .. code-block:: none # cat=basic; type=double; label=OpenAI Frequency Penalty openAiFrequencyPenalty = 0.8 Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. .. code-block:: none # cat=basic; type=double; label=OpenAI Presence Penalty openAiPresencePenalty = 0 Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.