github.com/instill-ai/component@v0.16.0-beta/pkg/connector/googlesearch/v0/config/tasks.json (about)

     1  {
     2    "$defs": {
     3      "result": {
     4        "properties": {
     5          "link": {
     6            "description": "The full URL to which the search result is pointing, e.g., http://www.example.com/foo/bar.",
     7            "instillAcceptFormats": [
     8              "string"
     9            ],
    10            "instillFormat": "string",
    11            "instillUIOrder": 1,
    12            "title": "Link",
    13            "type": "string"
    14          },
    15          "link_html": {
    16            "description": "The scraped raw html of the link associated with this search result",
    17            "instillAcceptFormats": [
    18              "string"
    19            ],
    20            "instillFormat": "string",
    21            "instillUIMultiline": true,
    22            "instillUIOrder": 4,
    23            "title": "Link HTML",
    24            "type": "string"
    25          },
    26          "link_text": {
    27            "description": "The scraped text of the link associated with this search result, in plain text",
    28            "instillAcceptFormats": [
    29              "string"
    30            ],
    31            "instillFormat": "string",
    32            "instillUIMultiline": true,
    33            "instillUIOrder": 3,
    34            "title": "Link Text",
    35            "type": "string"
    36          },
    37          "snippet": {
    38            "description": "The snippet from the page associated with this search result, in plain text",
    39            "instillAcceptFormats": [
    40              "string"
    41            ],
    42            "instillFormat": "string",
    43            "instillUIMultiline": true,
    44            "instillUIOrder": 2,
    45            "title": "Snippet",
    46            "type": "string"
    47          },
    48          "title": {
    49            "description": "The title of a search result, in plain text",
    50            "instillAcceptFormats": [
    51              "string"
    52            ],
    53            "instillFormat": "string",
    54            "instillUIMultiline": true,
    55            "instillUIOrder": 0,
    56            "title": "Title",
    57            "type": "string"
    58          }
    59        },
    60        "required": [
    61          "title",
    62          "link",
    63          "snippet"
    64        ],
    65        "title": "Result",
    66        "type": "object"
    67      }
    68    },
    69    "TASK_SEARCH": {
    70      "instillShortDescription": "Search data via Google Search Engine.",
    71      "input": {
    72        "instillUIOrder": 0,
    73        "properties": {
    74          "include_link_html": {
    75            "default": false,
    76            "description": "Indicate whether to scrape the link and include the raw HTML of the link associated with this search result in the 'link_html' field",
    77            "instillAcceptFormats": [
    78              "boolean"
    79            ],
    80            "instillUIOrder": 3,
    81            "instillUpstreamTypes": [
    82              "value",
    83              "reference"
    84            ],
    85            "title": "Include Link HTML",
    86            "type": "boolean"
    87          },
    88          "include_link_text": {
    89            "default": false,
    90            "description": "Indicate whether to scrape the link and include the text of the link associated with this search result in the 'link_text' field",
    91            "instillAcceptFormats": [
    92              "boolean"
    93            ],
    94            "instillUIOrder": 2,
    95            "instillUpstreamTypes": [
    96              "value",
    97              "reference"
    98            ],
    99            "title": "Include Link Text",
   100            "type": "boolean"
   101          },
   102          "query": {
   103            "description": "The search query for Google",
   104            "instillAcceptFormats": [
   105              "string"
   106            ],
   107            "instillUIMultiline": true,
   108            "instillUIOrder": 0,
   109            "instillUpstreamTypes": [
   110              "value",
   111              "reference",
   112              "template"
   113            ],
   114            "title": "Query",
   115            "type": "string"
   116          },
   117          "top_k": {
   118            "default": 10,
   119            "description": "The number of results to return for each query",
   120            "instillAcceptFormats": [
   121              "integer"
   122            ],
   123            "instillUIOrder": 1,
   124            "instillUpstreamTypes": [
   125              "value",
   126              "reference"
   127            ],
   128            "maximum": 100,
   129            "minimum": 1,
   130            "title": "Top K",
   131            "type": "integer"
   132          }
   133        },
   134        "required": [
   135          "query"
   136        ],
   137        "title": "Input",
   138        "type": "object"
   139      },
   140      "output": {
   141        "instillUIOrder": 0,
   142        "properties": {
   143          "results": {
   144            "description": "The returned search results from Google",
   145            "instillUIOrder": 0,
   146            "items": {
   147              "$ref": "#/$defs/result"
   148            },
   149            "title": "Results",
   150            "type": "array"
   151          }
   152        },
   153        "required": [
   154          "results"
   155        ],
   156        "title": "Output",
   157        "type": "object"
   158      }
   159    }
   160  }