Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Let us first see how we can establish a connection between OpenAI and Uchat.

Bridging Connection with OpenAI Account

1. Visit https://platform.openai.com

...

2. Login using your credentials.

Image RemovedImage Added

3. Click on top-right corner on the “Personal” tab.

...

Your account has successfully been connected with Uchat.

OpenAI Native Actions

Uchat gives a lot of actons with OpenAI which users can use for their needs. We will now discuss them in detail.

...

Create Text Completion

Text completion offers the functionality of sending prompts to OpenAI in textual form and based on the prompt receiving an answer.

...

It is also advised to adjust values like temperature, the number of completions, best of completions, etc to your use case by means of split testing. Every use case is unique and you should want the best possible utilization of the resources available.

Image Generation

Image Generation is used to generate images based on the user-input prompts. This feature will generate the best possible image that matches your given prompt.

...

AI is a developing field and hence the images produced can be quite inaccurate given the complexity of the prompts provided. Hence finding the correct prompt complexity can sometimes be a challenge.

Speech to Text

Speech-to-text action is used when you want to convert audio input into text. This has variety of use cases such as implementation in IVRs.

...

You can convert speech to text quite accurately using this feature. It is considered a best practice to provie the audio in the same language as that of the desired output for more accurate results and latency.

Translate Audio to English

Translate audio to English action is used when you want to convert audio input into text in english language. This has a variety of use cases such as implementation in IVRs.

...

Experimenting with different formats of audio can provide more (or less) accurate results. This is simply due to the quality of the audio provided so make sure you split test with different formats to achieve the best possible format for your use case.

Create Chat Completion

Chat completion offers a functionality of sending prompts to OpenAI in textual form and based on the prompt receive an answer. This is similar to text completion action but it uses ChatGPT which is 10x faster and cheaper as well.

...

Note

Since chat completion takes more input, the token consumption can be higher that text completion.

Clear Remembered Chat History

...

Clear remembered history is used to delete or clear the system field where the chat history for chatGPT is stored.

Note

The system field has a max character limit of 20000 characters after which it deletes the oldest key-pair value from the JSON in order to make room for newer values

OpenAI Embeddings & Building your Knowledge Base

OpenAI gives you the ability to provide a knowledge base of your use case or business for the AI to generate responses from. This enables the AI to give more accurate, contextual as well as particular answers instead of filtering them from the internet.

...

Note

Make sure that the first rows of all columns should be the input fields name such as type, heading, text etc. and none of them should start with a capital letter.

Image RemovedImage Added

Embedding Match & Completion Actions

...