-
Notifications
You must be signed in to change notification settings - Fork 20
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
Example of Jaiqu using burr #5
base: main
Are you sure you want to change the base?
Conversation
Step (1) big actions. Step (2) write smaller actions that mirror the flow chart.
jaiqu_burr_straight_port takes the code and maps it directly to burr. jaiqu_burr_granular takes the straight port and breaks it up into more actions. Note: I was hoping to use the mermaid diagram and do something reflecting that but the logic in the mermaid diagram doesn't really map to the code and thus isn't a good thing to model -- but the more granualr version does kind of look like it.
@skrawcz seems you've made a lot of changes. Can you clarify/amend:
Looks like a great idea, and it'd do a lot to help allay the complexity of Jaiqu. |
Thanks for reviewing! This was a very quick and dirty PR -- as judged by the extra cruft that made it in. 😅 . Part of this PR was to get your thoughts/feedback on it. I left the original jaiqu implementation in there for context as I was developing -- an actual implementation would as you suggest not duplicate all that code over and over. In terms of implementation is there one you prefer more? I was more or less mindlessly porting rather than thinking about an ideal structure... |
[Burr](https://github.com/dagworks-inc/burr) will enable someone to more easily debug the state of the jaiqu application if it's giving nonsense back or it hits the maxium number of retries. The design decision here is to make a close port of the original code. It could be broken down further, but that would require more work and I wasn't sure it TQDM was something that had to stay or not. This is a 100% backwards compatible change with the current API. tests have been moved to live under /tests/ and match the README. The mermaid image has been replaced with the actual application structure that Burr generates.
# Conflicts: # jaiqu/jaiqu.py # pyproject.toml # requirements.txt
So that the CLI has parity with the Burr changes.
@areibman I think I fixed things up. As far as I have tested things work equivalently! I would squash merge this change and have a commit like:
|
Missed this in the merge.
Hi I saw your hn post and thought it would be good candidate for burr!
See https://news.ycombinator.com/item?id=39917364
Feedback / thoughts welcome! Basically the mermaid diagram enticed me to try burr since the mapping should be pretty close -- I think I got to a reasonable spot -- but it could be better.
For those coming to view -- compare this with what's in the
jaiqu.py
file.Here's a run in the burr UI:
The two versions I created:
Straight port of existing code
More granular port trying to get close to the mermaid diagram