Skip to content

Conversation

@arnavsinghvi11
Copy link
Collaborator

-supports new DSPy signature declarations (dspy.Signature("{inputs}-> {outputs}")

methods added:
-attach(): defining field with prefix and description
-add_field(): supports pretending and appending InputFields and OutputFields

(note for reference - currently, modifies signature in-place as the attach() functionality supports chaining)

field_instance = field_type
else:
raise ValueError(f"non-existent {field_type}.")
if position == "prepend":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will handle append/prepend correctly considering that inputs must all go before outputs

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to find the endpoint of the input fields (for append to inputs or prepend to outputs)

@okhat
Copy link
Collaborator

okhat commented Oct 9, 2023

Do we close this one now, @arnavsinghvi11

@okhat
Copy link
Collaborator

okhat commented Oct 23, 2023

posted important old notes above, they probably didn't show for you before

also do we close this PR since this stuff is now part of PoT's PR?

@arnavsinghvi11 arnavsinghvi11 merged commit 9fd5467 into main Oct 24, 2023
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

Successfully merging this pull request may close these issues.

3 participants