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

Evaluation needs to include the SelectedIndex in the GenerateCellsRequest #275

Merged
merged 4 commits into from
Oct 5, 2024

Conversation

jlewi
Copy link
Owner

@jlewi jlewi commented Oct 4, 2024

  • In Properly handle completions in middle of document - Include LLM reque… #271 we added a SelectedIndex field to the GenerateCellsRequest to specify which cell in the notebook is active.

  • If we don't set it then it ends up defaulting to 0. In which case we end up truncating the notebook to just the first cell and then the evaluation results end up being all wrong.

  • Fix a bug in the evaluator runGenerate; if Agent.GenerateCells returns an error we need to abort execution of runGenerate otherwise we get a panic later in runGenerate when we try to access the message in the response.

…uest

* In #271 we added a SelectedIndex field to the GenerateCellsRequest to
  specify which cell in the notebook is active.

* If we don't set it then it ends up defaulting to 0. In which case
  we end up truncating the notebook to just the first cell and then
  the evaluation results end up being all wrong.
@jlewi jlewi changed the title Evaluation needs to include the SelectedIndex in the GenerateCellsReq… Evaluation needs to include the SelectedIndex in the GenerateCellsRequest Oct 4, 2024
Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for foyle canceled.

Name Link
🔨 Latest commit 3634f72
🔍 Latest deploy log https://app.netlify.com/sites/foyle/deploys/6701a1d22181d200086fb336

@jlewi jlewi enabled auto-merge (squash) October 5, 2024 00:51
@jlewi jlewi merged commit 59e16c2 into main Oct 5, 2024
5 checks passed
@jlewi jlewi deleted the jlewi/fixeval branch October 5, 2024 20:32
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.

1 participant