Identify Elements in a Text

Operation for finding elements within a given text.

Overview

Find specific elements within a given string. This operation supports singular and plural forms and can process associated questions or options.

Syntax

find the {items} in "{the text}" where
  the options are "{options}"
  the question is "{question}"
  the response format is "{format}"

Inputs

Required

  1. items
    • The item(s) to locate within the text, which can be singular or plural.
    • This can be a noun or a noun with adjectives (ex: animal, cute animals).
  2. the text
    • The target string in which the item(s) are to be found.

Optional

  1. options
    • A list of options from which the thing is to be identified.
  2. question
    • A question related to the item that the function will attempt to answer based on the content of the string.
  3. format
    • The desired format of the response.
    • Default: string
    • Allowed Values:
      • string
      • text
      • date
      • table
      • list of texts
      • list of numbers
      • list of dates
      • list of records
      • structured data
      • json

Example 1

💬 Prompt

find the people in "The project was completed by John, Sarah, and Tim."

📝 Breakdown

Text: The project was completed by John, Sarah, and Tim.
Items: people Results: John, Sarah, Tim


Example 2

💬 Prompt

find the very cute animals in "Today we saw a puppy and three kittens at the pet shop."

📝 Breakdown

Text: Today we saw a puppy and three kittens at the pet shop.
Items: very cute animals Results: puppy, kittens


Example 3

💬 Prompt

The email is "Hey Emily, I just wanted to tell you about some awesome places I visited during my vacation: Bali, Paris, and Tokyo. Can't wait to share my photos!"
find the places in the email

📝 Breakdown

Text: Hey Emily, I just wanted to tell you about some awesome places I visited during my vacation: Bali, Paris, and Tokyo. Can't wait to share my photos!
Items: places Results: Bali, Paris, Tokyo


Example 4

💬 Prompt

the memo is "Reminder: Don't forget to check out the new cafés I visited this weekend: Java House and Café Mocha."
find the sweet spots in the memo

📝 Breakdown

Text: Reminder: Don't forget to check out the new cafés I visited this weekend: Java House and Café Mocha.
Items: sweet spots Results: Java House, Café Mocha