# Chatbots, search engines and LLMs

## GPT-3

GPT-3 (Generative Pre-trained Transformer 3) is a Large Language Model (LLM) that has been trained to GENERATE TEXT given a PROMPT.

<figure><img src="https://4092288392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8AeUFC5KYkaUv3lbFhX%2Fuploads%2F8xfZjDe4LCmTrvWJGMha%2Fgpt3-example.gif?alt=media&#x26;token=6520ef92-2112-4d24-9559-1020cf1f1e92" alt=""><figcaption><p>Basic QA with GPT-3</p></figcaption></figure>

It has a huge amount of parameters that we can tweak to specialize it for more specific tasks, and the Open AI platform has some presets we can use:

* QA
* Grammar correction
* Translation
* Code generation
* Classification
* Brainstorming
* ...

<figure><img src="https://4092288392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8AeUFC5KYkaUv3lbFhX%2Fuploads%2FTSDO29vufJRWb6S9qXZz%2Fgpt3-for-text2command.png?alt=media&#x26;token=2baeac0b-844d-41ef-aadc-a4c017040904" alt=""><figcaption><p>Prompt and parameters for a "Text to command tool" task</p></figcaption></figure>

<figure><img src="https://4092288392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8AeUFC5KYkaUv3lbFhX%2Fuploads%2FjJDxguhISjaEi8LUddur%2Fgpt3-for-interview.png?alt=media&#x26;token=9555a922-d952-4333-82f7-0cb1eed99f2d" alt=""><figcaption><p>Prompt and parameters for an "Interview questions generator" task</p></figcaption></figure>

{% hint style="info" %}
In the following link, you can find a detailed explanation about all these settings and hyperparameters we can tweak:

[https://www.twilio.com/blog/ultimate-guide-openai-gpt-3-language-model](https://www.twilio.com/blog/ultimate-guide-openai-gpt-3-language-model)
{% endhint %}

## ChatGPT

ChatGPT is an AI-powered chatbot developed by OpenAI. It is based on OpenAI's GPT LLM, it has been fine-tuned with both supervised and reinforcement learning techniques for generating responses and continue a conversation.

{% embed url="https://openai.com/blog/chatgpt/" %}

#### ChatGPT prompts

Here you can find several tips for creating better prompts to get the desired answer:

{% embed url="https://github.com/f/awesome-chatgpt-prompts" %}

> _**i want you to act as a linux terminal**. **I will type commands** and **you will reply with what the terminal should show**. I want you to **only reply with the terminal output** inside one unique code block, and nothing else. **do not write explanations**. do not type commands unless I instruct you to do so. **when i need to tell you something in english, i will do so by putting text inside curly brackets {like this}**. my first command is pwd_

## Character.AI

This tool allows you to create a chatbot inspired in a character such as Super Mario, Bowser or Einstein, with their own peculiarities.

{% embed url="https://beta.character.ai" %}

<figure><img src="https://4092288392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8AeUFC5KYkaUv3lbFhX%2Fuploads%2FRxDY7GBOORvwz8YcEQSu%2Fmario-chat.gif?alt=media&#x26;token=575d1ce3-5b39-42b6-ae6b-0a188575c135" alt=""><figcaption><p>Chatting with Super Mario, why no?</p></figcaption></figure>

## Chatsonic

Chatbot that has integration with Google to enable tasks involving the use of recent information, with the possibility of interacting through voice commands and support for artistic creation of digital images in a wide variety of styles.

{% embed url="https://writesonic.com/chat" %}

## Perplexity.ai

Perplexity.ai is a search engine that uses LLMs to answer complex questions.

{% embed url="https://www.perplexity.ai" %}

<figure><img src="https://4092288392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FY8AeUFC5KYkaUv3lbFhX%2Fuploads%2FyReyvcvF3AJIcze6XOb7%2Fperplexity.gif?alt=media&#x26;token=f2711bdb-e337-4c05-ad46-d97632f7972c" alt=""><figcaption></figcaption></figure>
