---
description: Information Extractor, make you data structural.
---

# Information Extractor

## Try it in the Widget Center

Click this [url](https://app.myshell.ai/robot-workshop/widget/1782446934017605632) to try this widget and copy the Pro Config template.

## Usage

Information Extractor, structurize your data. Finding the output from LLM too messy to use? Want to get the output you want from the file? Try Information Extractor, make your data structural, empower your end-to-end AI APP.

**Input Parameters**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>instruction</td><td><code>string</code></td><td>Please describe your intention for extracting information from the input content. You can specify their types and names explicitly. For example: 'Help me to extract the abstract, named as `abs`, and summarize the chapter 3 Method, named as `approach`. Count how many sections are in this paper, named as `num_sec` of type int.'</td><td></td><td>true</td></tr><tr><td>raw_content</td><td><code>string</code></td><td>The raw text content. It can be from crawler, from reader or copy-paste.</td><td></td><td>true</td></tr><tr><td>model</td><td><code>string</code></td><td>LLM backend</td><td>wizardlm-2-8x22b</td><td>false</td></tr></tbody></table>

**Output Parameters**

| Name   | Type      | Description                                       | File Type |
| ------ | --------- | ------------------------------------------------- | --------- |
| $(key) | `$(type)` | The output was designed based on your instruction |           |

**Output Example**

{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
See below
```
{% endcode %}
{% endtab %}

{% tab title="fail" %}
{% code fullWidth="false" %}
```json
throw a Http error.
```
{% endcode %}
{% endtab %}
{% endtabs %}

## Detailed Guidelines

* Example
  * input
    *   instruction

        ```python
        Tell me How to build an AI app from start to finish. The step extracted should be named as 'step_{i}', where i is the number from 1.
        ```
    *   raw\_content

        ```python

        We need to acknowledge that Artificial intelligence has become one of the most promising technologies of the 21st century, and it's rapidly transforming industries across the globe, especially those actively working to stay ahead of the competition.

        Look at industries like healthcare or transportation, proving how much potential AI has to revolutionize how we live, work, and interact with the world around us.

        Since more and more businesses and entrepreneurs are now looking to build AI applications to improve their operational efficiency or enhance customer experience, we want to discuss the steps involved in creating an AI-powered app.

        So, whether you are a startup or an established business looking to integrate AI or chatbot functionality into your operations, read on to discover valuable insights and practical tips that will help you get started.

        (... Omitted for this example.)
        ```
  *   Output

      ```python
      # This is json
      {
         "step_1": "Define the problem you’re solving by understanding the problem domain and determining if AI is the best solution. This involves choosing the appropriate AI technique based on the problem's nature, available data, and desired performance metrics.",
         "step_2": "Collect and preprocess data relevant to your AI model. This includes acquiring data from various sources, handling multiple data formats, and employing techniques like data augmentation, normalization, and feature engineering to prepare a high-quality dataset for training and validating the AI model.",
         "step_3": "Choose an algorithm that aligns with your problem and can handle the nuances of your domain. Train your AI model using the prepared dataset, adjusting the algorithm's parameters to minimize error. Use techniques like dropout, early stopping, or adversarial training to ensure the model is accurate and unbiased.",
         "step_4": "Choose a development platform and tech stack suitable for your app's complexity and scalability needs. This involves selecting programming languages, libraries, and tools for deep learning, NLP, cloud computing, data management, and IDEs. Integrate the trained AI model into the app's architecture, focusing on user input and interaction, and ensuring the model is optimized for the target platform.",
         "step_5": "Test the application thoroughly using a combination of synthetic and real-world data, and employing various testing techniques such as unit, integration, and acceptance testing. Ensure the app is reliable, secure, and ready for deployment by setting up infrastructure and resources. Once ready, deploy the app, continuously monitor its performance, and provide timely updates and enhancements based on user feedback and changing requirements."
      }
      ```
