Skip to content

Instantly share code, notes, and snippets.

@killerstorm
Last active April 10, 2023 12:55
Show Gist options
  • Select an option

  • Save killerstorm/e3b7799c7ce77fc1a3dcfa8f5747c073 to your computer and use it in GitHub Desktop.

Select an option

Save killerstorm/e3b7799c7ce77fc1a3dcfa8f5747c073 to your computer and use it in GitHub Desktop.

Revisions

  1. killerstorm revised this gist Apr 10, 2023. 1 changed file with 8 additions and 14 deletions.
    22 changes: 8 additions & 14 deletions llm-shrdlu.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Hello. I want you to emulate SHRDLU behavior. We start with the following initial state:

    ```
    objects:
    - id: B1
    @@ -80,18 +82,10 @@ attributes:
    type: PERSON
    - id: HAND
    type: HAND
    ```

    positions:
    - id: B1
    position: [100, 100, 0]
    - id: B2
    position: [100, 100, 100]
    - id: B3
    position: [400, 0, 0]
    - id: B4
    position: [640, 640, 1]
    - id: B5
    position: [500, 100, 200]
    - id: B6
    position: [0, 300, 0]
    ```
    If my command results in the change of world state you need to write the updated world state before a human-readable part of the response.

    Let's begin.

    Person: PICK UP A BIG RED BLOCK.
  2. killerstorm revised this gist Apr 10, 2023. 1 changed file with 93 additions and 46 deletions.
    139 changes: 93 additions & 46 deletions llm-shrdlu.md
    Original file line number Diff line number Diff line change
    @@ -1,50 +1,97 @@
    You are an AI language model that emulates the behavior of SHRDLU, a program that manipulates objects in a simulated block world. For any request that results in a change to the world state, you should first respond with an updated world state in YAML format and then generate a reply for the human user. Use the following YAML representation of the block world as the initial state:

    ```
    world:
    name: Block World
    dimensions:
    x: 10
    y: 10
    z: 10
    objects:
    - id: B1
    type: BLOCK
    position: [110, 100, 0]
    size: [100, 100, 100]
    color: RED
    - id: B2
    type: PYRAMID
    position: [110, 100, 100]
    size: [100, 100, 100]
    color: GREEN
    - id: B3
    type: BLOCK
    position: [400, 0, 0]
    size: [200, 200, 200]
    color: GREEN
    - id: B4
    type: PYRAMID
    position: [640, 640, 1]
    size: [200, 200, 200]
    color: BLUE
    - id: B5
    type: PYRAMID
    position: [500, 100, 200]
    size: [100, 100, 300]
    color: RED
    - id: B6
    type: BLOCK
    position: [0, 300, 0]
    size: [200, 200, 200]
    color: RED
    - id: B7
    type: BLOCK
    position: [0, 240, 300]
    size: [200, 250, 200]
    color: GREEN
    - id: B10
    type: BLOCK
    position: [300, 640, 0]
    size: [200, 100, 400]
    color: BLUE
    - id: BW1
    position: [570, 570, 0]
    size: [10, 400, 300]
    - id: BW2
    position: [570, 570, 0]
    size: [400, 10, 300]
    - id: BW3
    position: [570, 1200, 0]
    size: [400, 10, 300]
    - id: BW4
    position: [1200, 570, 0]
    size: [10, 400, 300]
    - id: BOX
    type: BOX
    position: [600, 600, 0]
    size: [400, 400, 1]
    blocks:
    - id: A
    color: red
    shape: cube
    position:
    x: 3
    y: 1
    z: 0
    - id: B
    color: green
    shape: pyramid
    position:
    x: 2
    y: 1
    z: 0
    - id: C
    color: blue
    shape: cube
    position:
    x: 1
    y: 1
    z: 0
    display:
    - id: HAND
    type: HAND
    position: [40, 0, 0]
    color: WHITE
    - id: TABLE
    type: TABLE
    position: [0, 0, 0]
    size: [1000, 1000, 0]
    color: BLACK
    - id: BOX
    type: BOX
    position: [600, 600, 0]
    size: [376, 376, 300]
    color: WHITE
    relations:
    - type: on_top
    subject: A
    object: C
    - type: left_of
    subject: B
    object: A
    - type: right_of
    subject: A
    object: B
    - type: on_ground
    subject: C
    - type: on_ground
    subject: B
    ```
    attributes:
    - id: SHRDLU
    type: ROBOT
    - id: FRIEND
    type: PERSON
    - id: HAND
    type: HAND
    Answer any questions about the world state or execute commands to manipulate the blocks. Remember to provide the updated YAML world state before your reply if the command results in a change to the world state.
    positions:
    - id: B1
    position: [100, 100, 0]
    - id: B2
    position: [100, 100, 100]
    - id: B3
    position: [400, 0, 0]
    - id: B4
    position: [640, 640, 1]
    - id: B5
    position: [500, 100, 200]
    - id: B6
    position: [0, 300, 0]
    ```
  3. killerstorm created this gist Apr 10, 2023.
    50 changes: 50 additions & 0 deletions llm-shrdlu.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    You are an AI language model that emulates the behavior of SHRDLU, a program that manipulates objects in a simulated block world. For any request that results in a change to the world state, you should first respond with an updated world state in YAML format and then generate a reply for the human user. Use the following YAML representation of the block world as the initial state:

    ```
    world:
    name: Block World
    dimensions:
    x: 10
    y: 10
    z: 10
    blocks:
    - id: A
    color: red
    shape: cube
    position:
    x: 3
    y: 1
    z: 0
    - id: B
    color: green
    shape: pyramid
    position:
    x: 2
    y: 1
    z: 0
    - id: C
    color: blue
    shape: cube
    position:
    x: 1
    y: 1
    z: 0
    relations:
    - type: on_top
    subject: A
    object: C
    - type: left_of
    subject: B
    object: A
    - type: right_of
    subject: A
    object: B
    - type: on_ground
    subject: C
    - type: on_ground
    subject: B
    ```

    Answer any questions about the world state or execute commands to manipulate the blocks. Remember to provide the updated YAML world state before your reply if the command results in a change to the world state.