Add Prettier and ESLint #229
ianarawjo
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks,
Thanks to PRs #223 and #222 by @massi-ang we have added Prettier and ESLint to ChainForge's
main
branch.prettier
andeslint
are now run uponnpm run build
, and you are encouraged to run them before suggesting any PRs onto the ChainForgemain
branch.We know this is somewhat annoying to anyone building on top of ChainForge, because it may make rebasing on top of latest
main
changes a chore. This includes myself---the changes inmulti-eval
branch, which I have been working on for a while now, are even harder to merge. However, the addition of consistent formatting and linting provides better standards for developer contributions, beyond the ad-hoc approach to writing code we had before.Recently, I have had less time for code hygiene tasks for this project. However, I think converting the entire front-end code to TypeScript is the next step. This would provide more guarantees on dev contributions, may catch existing bugs, and allows us to have a standardized
ResponseObject
format across ChainForge that is enforced and extendable. The latter:Additionally, I envision:
ResponseBox
that can then be extended to handle image outputs, if present.It doesn't seem like LLMs are going anywhere, and evaluating their output quality still suffers from the same issues. If we work together, we can make ChainForge a go-to graphical interface for "testing stuff out" ---rapid prototyping of prompt and chain ideas and rapid testing of LLM behavior, beyond ad-hoc chatting, CLIs or having to type code.
ChainForge is based on transparency and complete control. We always intend to show the prompts to developers. Developers should have access to the exact settings used for the model, too. If ChainForge adds, say, prompt optimization, it will be important to always show the prompts.
Let us know what you think of these changes, or what you'd like to see in the future. If you are a developer, please consider contributing! :)
This discussion was created from the release Add Prettier and ESLint.
Beta Was this translation helpful? Give feedback.
All reactions