Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Allow order of operations on prompt parser #16507

Open
1 task done
fcolecumberri opened this issue Sep 21, 2024 · 0 comments
Open
1 task done

[Feature Request]: Allow order of operations on prompt parser #16507

fcolecumberri opened this issue Sep 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@fcolecumberri
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Imagine the next prompt:

a cat AND a dog BREAK on a beach

Here this prompt can be parsed on 2 different ways:

1

a cat ━━━┓
         ┣━━┓
a dog ━━━┛  ┃
on a beach ━┻━━ OUTPUT

2

a cat ━━━━━━━━━━━┳━━ Output
a dog ━━━━━━━━┓  ┃
              ┣━━┛
on a beach ━━━┛

Both ways ends up with a different result. (drawing this ended up being more difficult than it looks)
My proposal is to do something similar to how math works, by a parenthesis-equivalent keywords, something like BEGIN/END so by doing that, now:

BEGIN a cat AND a dog END BREAK on a beach

and

a cat AND BEGIN a dog BREAK on a beach END

This is also relevant since other extensions create their own keywords and usually collide since there is no way to express order of operations. Having a native to the tool way of doing it might force the extension developers to respect them as well.

Proposed workflow

No change on workflow, just a couple of keywords.

Additional information

No response

@fcolecumberri fcolecumberri added the enhancement New feature or request label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant