YAAIP — Yet Another AI Prompter
This Miso webapp is loosely based on the miso-ui website source code.
Miso
Miso is a small, production-ready, component-oriented, reactive, isomorphic Haskell front-end framework for quickly building highly interactive single-page web and mobile applications. It features a virtual-dom, recursive diffing / patching algorithm, attribute and property normalization, event delegation, event batching, SVG, 2D/3D Canvas (WebGL), Server-sent events SSE, Websockets, type-safe servant -style routing and an extensible Subscription-based subsystem. Inspired by Elm and React. Miso is pure by default, but side effects can be introduced into the system via the Effect data type.
JSON prompting
JSON prompting is a structured way to give instructions to AI models using a format called JavaScript Object Notation (JSON). This method helps improve the clarity and accuracy of AI responses by organizing information into labeled sections, making it easier for the AI to understand what is being requested.
Also see:
YAAIP
Yet Another AI Prompter we bapp generates a JSON format prompt for AI.
The project is on Codeberg: photonsphere/yaaip and is deployed here: yaaip.photonsphere.org.
Example
Here's a ready to import JSON stored template.
1[{"tmBlocks":[{"blockId":1,"blockKey":"role","blockValue":{"contents":[{"blockId":2,"blockKey":"Haskell","blockValue":{"contents":"You are an experienced Haskell developer.","tag":"JsonPrimitive"}},{"blockId":3,"blockKey":"Rust","blockValue":{"contents":"You are a Rust developer (albeit somewhat \"rusty\")","tag":"JsonPrimitive"}}],"tag":"JsonNested"}},{"blockId":4,"blockKey":"task","blockValue":{"contents":"Port Rust project to Haskell.","tag":"JsonPrimitive"}},{"blockId":5,"blockKey":"restriction","blockValue":{"contents":[{"blockId":6,"blockKey":"git","blockValue":{"contents":"Never change git (hence no commit, etc.)","tag":"JsonPrimitive"}},{"blockId":7,"blockKey":"idiomatic","blockValue":{"contents":"Use idiomatic Haskell; remove inferior Rust code constructs.","tag":"JsonPrimitive"}}],"tag":"JsonNested"}}],"tmCategory":"Dev","tmName":"Rust to Haskell port","tmTags":["Haskell","Rust","Porting"]}]