AI and adornments

Since we are all experimenting with AI and Tinderbox I also wanted to share a little experiment:

I was trying to get Claude to find notes in a map view that are inside an adornment. Claude always tried to retrieve the children of the adornment, but it didn’t know that adornments don’t have any children. Surprisingly, it did not give up. It fell back to looking at coordinates of the adornment to find notes that have coordinates which would position them inside the adornments rectangle (and it succeeded). However, in larger maps that might get tedious, so I added this to the AI/Claude/Readings/Using Tinderbox note (pretty much taken from atbref):

## Adornments

Adornments cannot have child objets or be matched by queries or referenced by designators.

Queries can test the inside() operator using an adornment’s name to see if any notes lie on top of the adornment. For example: inside(item) is true for a map note that is on top of (within or overlapping) the adornment item.

Doing the same query, this time it came back with: “According to the guidance I read, adornments cannot have children in the traditional parent-child sense, but notes can be positioned on top of adornments. To find which note is inside the adornment, I need to use the inside() operator.” It then sucessfully used the inside() operator, which is probably a more efficient way to get to the notes of the adornment.

This was a fun experiment and I was surprised to see how easy it was to teach Claude new skills.

Ottmar

4 Likes