# Data

We support the following data sources:

* [Vector Database](#vector-database)
* [Resource Loader](#resource-loader)
* [Chat History](#chat-history)
* [Google Search](#google-search)
* [YouTube Database](#youtube-database)

## Vector Database

You are able to select any text data you uploaded to the [Data Source](../data-source) in your workspace. Vector database can help you retrieve the most important segments of a long text for an LLM. For example, you can upload a text document to the vector database. When you search some text segments in the vector database, it will return the most relevant text segments.

<figure><img src="https://4112697954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlALaQ4M4Jr8FQTSwv7h%2Fuploads%2FGNl8b6flMxCSESbbqYGz%2FScreen%20Shot%202023-08-07%20at%2011.16.52%20AM.png?alt=media&#x26;token=1104d345-335b-4c0c-8bf9-729139198138" alt="" width="302"><figcaption><p>Vector Database</p></figcaption></figure>

### Parameters:

* **Limit:** Return the top n search results.
* **Query**: Input (text segment) you want to search in the vector database. Can be either dynamic (entered user input) or fixed value (set to a constant value).

## Resource Loader

This component can help you create any **text**, **image**, or **document** inputs. For example, a text Resource Loader is useful to create an instruction.

Resource loader can be either dynamic (entered user input) or fixed value (set to a constant value).

<figure><img src="https://4112697954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlALaQ4M4Jr8FQTSwv7h%2Fuploads%2F2Eg45FjzMLq3LlzUqoYX%2FScreen%20Shot%202023-08-07%20at%2011.47.04%20AM.png?alt=media&#x26;token=c4956712-a7e6-4abb-9f88-5d07c9c93ea6" alt="" width="299"><figcaption><p>Resource Loader</p></figcaption></figure>

## Chat History

Chat history component allows you to use any chat history data source you saved for the selected projects. This is useful to search for anything you talked with the selected bot.

<figure><img src="https://4112697954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlALaQ4M4Jr8FQTSwv7h%2Fuploads%2FiyqH1p21oj0uLF4z8Rms%2FScreen%20Shot%202023-08-07%20at%201.24.07%20PM.png?alt=media&#x26;token=b3321e77-7516-4dce-8c6d-41862066e2e6" alt=""><figcaption><p>Enable chat history</p></figcaption></figure>

<figure><img src="https://4112697954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlALaQ4M4Jr8FQTSwv7h%2Fuploads%2Fa06zr8oQVCXu6VghHgNh%2FScreen%20Shot%202023-08-07%20at%201.28.49%20PM.png?alt=media&#x26;token=26eab84c-44c2-4c33-8249-0d5f2963f7c0" alt="" width="375"><figcaption><p>Chat History</p></figcaption></figure>

### Parameters:

* **Limit:** Return the top n search results.
* **Query**: Input (text segment) you want to search in the vector database. Can be either dynamic (entered user input) or fixed value (set to a constant value).

## Google Search

This component will search the Google for a given search query and return the first result from the top 3 searches. This block is really useful for getting up-to-date / live information that some AI models might not have access too.

<figure><img src="https://4112697954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlALaQ4M4Jr8FQTSwv7h%2Fuploads%2FQmDl8nD0rbcT855I8M3K%2FScreen%20Shot%202023-08-07%20at%2012.02.26%20PM.png?alt=media&#x26;token=a0ec2bc8-53e3-49b6-aaaf-2f76a9c6d56c" alt="" width="291"><figcaption><p>Google Search</p></figcaption></figure>

## YouTube Database

YouTube Database component allows you to use the YouTube video content uploaded in the [Data Source](../data-source). The subtitles of the video was extracted and save to the vector database. Therefore, you can use this component to quickly search for any segments in the videos.

{% hint style="warning" %}
Must upload videos that have subtitles.
{% endhint %}

<figure><img src="https://4112697954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWlALaQ4M4Jr8FQTSwv7h%2Fuploads%2FHHW6VDzwM4G24fhA2r8r%2FScreen%20Shot%202023-08-07%20at%2012.14.06%20PM.png?alt=media&#x26;token=436633bc-194f-459f-85d7-2c86bab5c0b8" alt="" width="296"><figcaption><p>YouTube Database</p></figcaption></figure>

### Parameters:

* **Limit:** Return the top n search results.
* **Query**: Input (text segment) you want to search in the vector database. Can be either dynamic (entered user input) or fixed value (set to a constant value).
