How to Use Open AI with MindBehind

How to Use Open AI with MindBehind

To connect Open AI on Mindbehind, open the company page from navigation bar and select AI&NLP tab:



Select "Open AI" as an your AI provider and from the configurations tab add a name for the new Open AI integration:



After adding a new openAI implementation you will be able to see it in the AI&NLP page:


Add the AI module to your assistant and select the new openAI provider as the AI type:



Then you can select the options accordingly for testing.



Through the AI action settings you can add intents and entities. There is also a test button to test sample user inputs and see the results.

Description for fields:

Temperature:

The "temperature" option on OpenAI playground determines how creative or conservative the language generated by the model will be.

When you increase the temperature, it makes the model more creative and unpredictable, generating more diverse and unusual responses. This means the model is more likely to come up with novel and unexpected responses, but it may also generate nonsensical or irrelevant ones.

On the other hand, when you decrease the temperature, it makes the model more conservative and predictable, generating responses that are more coherent and consistent with what it has learned from the training data. This means the model is more likely to generate responses that are relevant to the context and grammatically correct, but it may also be less creative and more repetitive.

In summary, changing the temperature on OpenAI playground allows you to adjust the balance between creativity and consistency in the language generated by the model, depending on your specific needs or preferences.

Maximum Length:

The "maximum length" option on OpenAI playground sets a limit on the length of the text that the model can generate in response to a prompt.

When you increase the maximum length, it allows the model to generate longer and more detailed responses. This means the model can provide more information and context in its answers, but it may also result in longer wait times for the response to be generated.

On the other hand, when you decrease the maximum length, it limits the amount of text the model can generate. This means the response may be more concise and to the point, but it may also lack sufficient detail or context.

In summary, changing the maximum length on OpenAI playground allows you to control the length and level of detail in the language generated by the model, depending on your specific needs or preferences.

Stop Sequences:

The "stop sequences" option on OpenAI playground allows you to specify certain words or phrases that, if generated by the model, will cause it to stop generating text.

When you add stop sequences, the model will generate text until it encounters one of the specified words or phrases. This means you can control the output of the model and ensure that it does not generate responses that are irrelevant or inappropriate.

For example, if you are using the model to generate product descriptions and you don't want the descriptions to include certain words like "expensive" or "outdated", you can add those words to the stop sequences. This will prevent the model from generating descriptions that contain those words.

In summary, changing the stop sequences on OpenAI playground allows you to specify words or phrases that will cause the model to stop generating text, helping you to control the output and ensure that it meets your specific requirements.

Top P:

The "Top P" option on OpenAI playground determines how many possible words or tokens the model considers when generating its next word or sequence of words.

When you increase the Top P value, the model will consider more possible words to use in its response. This means that the model has a wider range of options to choose from, potentially resulting in more diverse and creative responses.

On the other hand, when you decrease the Top P value, the model will consider fewer possible words. This means that the model is more likely to choose words that have a higher probability of being correct, resulting in responses that may be more predictable but less creative.

In summary, changing the Top P value on OpenAI playground allows you to adjust how widely the model searches for the best next word or sequence of words, depending on your specific needs or preferences.

Frequency Penalty:

The "Frequency Penalty" option on OpenAI playground penalizes the model for repeatedly using the same words or phrases in its response.

When you increase the frequency penalty, the model is penalized more for using the same words or phrases multiple times in its response. This means the model will try to generate responses that are more diverse and use a wider range of vocabulary.

On the other hand, when you decrease the frequency penalty, the model is penalized less for using the same words or phrases multiple times in its response. This means that the model may generate responses that are more repetitive or use the same words multiple times.

In summary, changing the frequency penalty on OpenAI playground allows you to encourage or discourage the model from using the same words or phrases multiple times in its response, depending on your specific needs or preferences.

Presence Penalty:

The "Presence Penalty" option on OpenAI playground penalizes the model for generating responses that contain words or phrases that were in the prompt.

When you increase the presence penalty, the model is penalized more for generating responses that contain words or phrases that were in the prompt. This means the model will try to generate responses that are more distinct from the prompt, using less common or unrelated vocabulary.

On the other hand, when you decrease the presence penalty, the model is penalized less for generating responses that contain words or phrases that were in the prompt. This means that the model may generate responses that are more closely related to the prompt, using similar or related vocabulary.

In summary, changing the presence penalty on OpenAI playground allows you to encourage or discourage the model from generating responses that contain words or phrases that were in the prompt, depending on your specific needs or preferences.

Best Of:

The "Best Of" option on OpenAI playground determines how many response options the model generates before selecting the "best" one to display.

When you increase the Best Of value, the model generates more response options before selecting the "best" one to display. This means that the model has more opportunities to generate different responses, potentially resulting in a better overall response.

On the other hand, when you decrease the Best Of value, the model generates fewer response options before selecting the "best" one to display. This means that the model has fewer opportunities to generate different responses, potentially resulting in a less optimal overall response.

In summary, changing the Best Of value on OpenAI playground allows you to adjust how many response options the model generates before selecting the "best" one to display, depending on your specific needs or preferences.

Publish the bot and enjoy!

Sample Test button response:



    • Related Articles

    • How to Add Generative AI Provider

      This document is created to explain how to add an AI provider for Generative AI 1) Select the AI Provider Type User can add 2 types of subscription for Generative AI. First is MB Subscription. It is basically the deployment models of MindBehind. ...
    • How to Create Custom Azure Sub for Gen AI

      In order to use Generative AI Module with partner’s subscription, partner needs to follow needed steps. The purpose of having partner’s own subscription is being able to have scalable resources as partner planned to increase its Generative AI ...
    • How to Use CraftGate?

      Before Starting In order to receive payment through CraftGate, the integration setup in this link. How to Create Payment Link In order to create a payment link via an assistant, a "POST" request must be sent to the following endpoint using the ...
    • How to Use OTP Service

      What is OTP Service? OTP service is a password validation service which sends a password as sms to defined number and validate this password with its validator service. In MindBehind products, it can be used before user starts chatting with chatbot ...
    • Use of WhatsApp sandbox API

      We provide a developer-friendly test environment, for anyone who wants to check out the usage of our WhatsApp API. The WhatsApp API allows for direct-like access to the WhatsApp Business API. Sandbox Base Path: https://waba-sandbox.mindbehind.com ...