[HN Gopher] Show HN: Built your front end in React, then let Cha... ___________________________________________________________________ Show HN: Built your front end in React, then let ChatGPT be your Redux reducer Author : mintplant Score : 42 points Date : 2022-12-28 21:26 UTC (1 hours ago) (HTM) web link (spindas.dreamwidth.org) (TXT) w3m dump (spindas.dreamwidth.org) | bogwog wrote: | This is cool. I've been using it mostly to explain APIs to me | when I'm too lazy to dig through docs. This works surprisingly | well, even for some relatively obscure APIs like | Libre/OpenOffice's "UNO" API. | | I think a really interesting use case for this would be to have | it read through a long standards document and produce a compliant | implementation, and maybe point out flaws/omissions. Maybe | implement a full web browser from scratch? Or something less | intense like a GLTF reader/writer? Or something ludicrous like a | brainfuck implementation of Office Open XML, which has like ~7000 | pages of specs. | lelandfe wrote: | This is hilarious. | | In my experience writing novels with ChatGPT, it starts to break | down after a long running thread before eventually becoming | almost useless. I wind up needing to remind it what it's doing | over and over. | | That is likely by virtue of its limit on tokens, but I think also | because the weight each token has reduces as the conversation | continues. | | I wonder if users would slowly watch the website go insane after | using over X interactions. | freeqaz wrote: | If you look at dedicated writing AI tools like NovelAI, you can | see that this is exactly how they work. They have a concept of | a "lore book" with "keywords" that you can use to remind the AI | about how to properly generate the content. | | For example, if I were writing a novel about a fantasy kingdom | and there is an evil king, then I can write a description of | the king ("The king is evil and wears a red crown") with the | keyword to "include" it being "crown", "king", etc. | | As the number of tokens increases with these AIs I think this | problem will decrease decrease (1k was NovelAI originally, and | now GPT-3 Codex is 8k). I do wonder what the "ideal" solution | is in the future though. Or do you have to create a "lore book" | for ChatGPT too? | | (A thought I've had is that maybe we can automatically "create" | the "lore book" and then re-inject that seamlessly? For | example, in the fantasy kingdom example, maybe ChatGPT can | generate a list of characters for each "chunk" of text and then | automatically inject that into the "last" batch of text.) | lelandfe wrote: | > maybe ChatGPT can generate a list of characters for each | "chunk" of text and then automatically inject that into the | "last" batch of text | | Funny enough, that's the automated version of what I do! | Every X prompts, I ask ChatGPT: | | _List the cast of this story and their goals_ | | I've found this really helps extend the shelf life of our | thread :) | [deleted] | mintplant wrote: | Hi HN! I've been playing around with ChatGPT a bunch since it | came out. This experiment has a little bit of a backstory. Some | friends and I were out at a pho restaurant; one of us put the | whole bill on his card, so the rest of us needed to figure out | how much to Venmo him. We were talking about how many bill- | splitting apps there are, and I made a joke about doing it with | ChatGPT. Then I actually tried it out. | | I OCR'd the text with Google Lens, described who had what, and | after a bit of prompt engineering (e.g., adding "Be sure to get | your math correct" to make the AI's arithmetic check out, and | convincing the AI to split shared items evenly), it totally | worked: | https://gist.github.com/spinda/967322dda1c04d9864f3efd45addc... | | Then I started experimenting with describing a hypothetical | check-splitting app to the AI, and asking it to feed me JSON | commands to update the UI in response to messages from me telling | it what the user was doing. The results were promising! And then | the similarity to the Redux data loop jumped out, and I built | this generic plugin to wire ChatGPT up to apps for real. ___________________________________________________________________ (page generated 2022-12-28 23:00 UTC)