> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text Embedding

Text embeddings are numerical representations of text data that capture semantic and contextual information about words and phrases. Text embeddings are useful for variety of natural language processing (NLP) tasks.

## Overview

In the Unreal SDK we utilize text embeddings for knowledge retrieval and intent detection. In order to optimize the process of embedding text, we provide a tool that can be utilized to embed text directly within the Unreal editor.

## Inworld Text Embedder tool

<img src="https://mintcdn.com/inworldai/-ls8Yr2Q1L6X1bMA/img/unreal/runtime/text-embedder-tool.png?fit=max&auto=format&n=-ls8Yr2Q1L6X1bMA&q=85&s=a63ed982750c4009b88300f21342a2de" alt="" width="469" height="416" data-path="img/unreal/runtime/text-embedder-tool.png" />

To create an Inworld Text Embeddings asset:

1. Open the Inworld Text Embedder through the Level **Tools** menu:
   <img src="https://mintcdn.com/inworldai/RkgB7_KBZERTW3L0/img/unreal/runtime/open-text-embedder.png?fit=max&auto=format&n=RkgB7_KBZERTW3L0&q=85&s=fb687cab1e4e6f25149d28a87244098b" alt="" width="600" height="891" data-path="img/unreal/runtime/open-text-embedder.png" />
2. Input the text you would like embedded into the large input box of the tool.
   #### Input Format
   The tool expects input as a comma separated list of text records:
   * Commas are used as a delimiter (e.g. `Text Record 1, Text Record 2`)
   * Each text record can optionally be enclosed in quotes (e.g. `"Text Record"`)
   * Any comma within quotes will not be used as a delimiter (e.g. `"Text, Record"`)
   * The entire input can optionally be wrapped in brackets (e.g. `("Text Record 1", "Text Record 2")`)
   ```Text Example Input theme={"system"}
   ("What is your favorite color?","Which color do you like the most?","Do you have a preferred color?","Is there a color that you consider your favorite?","What color do you feel most drawn to?")
   ```
   <img src="https://mintcdn.com/inworldai/-ls8Yr2Q1L6X1bMA/img/unreal/runtime/text-embedder-example.png?fit=max&auto=format&n=-ls8Yr2Q1L6X1bMA&q=85&s=daa0c6536a6d789ff92568ec93ddacc8" alt="" width="471" height="403" data-path="img/unreal/runtime/text-embedder-example.png" />
3. Press the `Embed` button to embed the text and store the result in a newly created **Inworld Text Embeddings Asset**.
   <img src="https://mintcdn.com/inworldai/-ls8Yr2Q1L6X1bMA/img/unreal/runtime/text-embedder-button.png?fit=max&auto=format&n=-ls8Yr2Q1L6X1bMA&q=85&s=aed0201d27f15f54dca4ffd0402f65b0" alt="" width="128" height="46" data-path="img/unreal/runtime/text-embedder-button.png" />
4. Here you can see the result of our example input:
   ```Text Example Input theme={"system"}
   ("What is your favorite color?","Which color do you like the most?","Do you have a preferred color?","Is there a color that you consider your favorite?","What color do you feel most drawn to?")
   ```
   <img src="https://mintcdn.com/inworldai/6A_nUCUwBMoPFI4b/img/unreal/runtime/text-embedding.png?fit=max&auto=format&n=6A_nUCUwBMoPFI4b&q=85&s=ba96d67633ba59cbe0fe13d8725b6b51" alt="" width="1162" height="934" data-path="img/unreal/runtime/text-embedding.png" />
   This asset can now be used with the Knowledge or Intent node.
