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

Add FewShotExamples managed value #332

Closed

Conversation

nfcampos
Copy link
Contributor

  • (API will change, this is a draft)
  • Add .score() method on checkpointer to mark checkpoints as "good"
  • Add .list_w_score() method on checkpointer to list "good" checkpoints
  • Implement score/list_w_score in sqlite and aiosqlite checkpointers
  • Add FewShowExamples managed value which can be used to attach few shot examples to state object
  • Add sync and async examples in tests

nfcampos and others added 2 commits April 29, 2024 09:10
- (API will change, this is a draft)
- Add .score() method on checkpointer to mark checkpoints as "good"
- Add .list_w_score() method on checkpointer to list "good" checkpoints
- Implement score/list_w_score in sqlite and aiosqlite checkpointers
- Add FewShowExamples managed value which can be used to attach few shot examples to state object
- Add sync and async examples in tests
@hinthornw
Copy link
Contributor

Should/are scores scoped to a node level? or whole graph? Any way to differentiate?


# below are optimization methods

def score(self, config: RunnableConfig, score: int) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

move this to metadata on put instead

Base automatically changed from nc/19apr/managed-values-is-last-step to main May 10, 2024 20:44
@andrewnguonly andrewnguonly changed the base branch from main to nc/19apr/managed-values-is-last-step May 10, 2024 20:56
@andrewnguonly
Copy link
Contributor

Closing this PR in favor of #444.

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.

None yet

4 participants