Skip to content
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

Codegen workflow (WIP) #6

Open
chadbrewbaker opened this issue May 7, 2024 · 1 comment
Open

Codegen workflow (WIP) #6

chadbrewbaker opened this issue May 7, 2024 · 1 comment

Comments

@chadbrewbaker
Copy link

On my mobile playing with gpt2lmsys. I don’t disagree with its codegen workflow skeleton as to how it should split the problem into dspy optimization modules. Handle langsec formalization of IO surface first. Come up with an internal representation for the problem domain. Generate test cases to make sure the internal representation is faithfull to the spec. Emit target code for the arch. It keeps everything in prompt space till the end. Layers are not too tightly coupled.

Explanation of Layers

  1. Layer 0: Handles the input of the specification and its validation.
  2. Layer 1: Converts the specification into an intermediate representation (IR).
  3. Layer 2: Responsible for generating code from the IR.
  4. Layer 3: Generates test cases and verifies the generated code.
  5. Layer 4: Packages and deploys the generated code.
@seanchatmangpt
Copy link
Owner

I agree. I will have FSM Actors to handle the decisions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants