Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Gato Prompt Lang – keep prompt content and responses short in JSON (github.com/listfulal)
16 points by cat-turner 59 days ago | hide | past | favorite | 5 comments
It started with me trying to get consistent json output but then evolved to something I can use to get consistent outputs structured in the way I need with, which is essential to consume responses in software. I seem to get json consistent 100% of the time when I use the API but when I use the UI I occasionally some response data not in the json.



Unfortunate name/acronym (GPL will conflict with at least one well-established thing). Also - it’s a programming language to tell AIs what to do? I thought most of the point was that you can tell them what to do in natural language?


Hi, thanks for that name feedback.

You can def tell AI what to do but the point is to have them do and reply to you in a way that's structured and expected, such that you can have your software process their responses and apply it according to your logic! With the least amount of words possible! The Human Response field is for people-facing responses (where you generally need more words) and the system response field is for responses to be used directly by your software.


Why not use JSON schema and a token corraller?


Thank you for the suggestion! JSON Schema and a token corraler are definitely powerful tools for enforcing structure and validation. However, the goal of GPL is to provide a lightweight, easy-to-use way for users to structure their prompts without requiring them to install additional software or external dependencies.

While JSON Schema offers great flexibility, I'm focused on a format that works out of the box. I want to keep the process simple and frictionless, so introducing a token corraler with additional steps wouldn’t align with that goal.

That said, I’m open to incorporating JSON Schema as an optional feature for advanced users who want more control over their prompts. My goal is to keep installation as simple as copying and pasting the text at the beginning of the system prompt.


Will try the JSON schema for a bit: https://github.com/ListfulAl/gpl/issues/1




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: