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

Fix empty doc generation. #308

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Fix empty doc generation. #308

merged 1 commit into from
Oct 17, 2024

Conversation

jlewi
Copy link
Owner

@jlewi jlewi commented Oct 17, 2024

  • In 14 of our 424 examples in evaluation the input document sent to the model ends up being the empty string

  • This is the result of how our doc tailer works. Our doc tailer imposes a length cap on the tail of the document. There was a bug in the tailer where if the last cell in the document exceeded the cap (currently 1110 characters) then an empty string would be returned.

  • This PR fixes that. If the last cell exceeds the length then we take the tail of that cell.

  • This PR also checks in completer that the tail of the document is non empty; if its not empty then we fail the completion rather than continuing to generate the completion.

  • Add a level1 assertion so we can measure how often we include less than 1 full cell in the prompt.

  • Fix Suggestions stop being generated when linger on a cell - Empty String Used For Completion #305

* In 14 of our 424 examples in evaluation the input document sent to the model
  ends up being the empty string

* This is the result of how our doc tailer works. Our doc tailer imposes a length
  cap on the tail of the document. There was a bug in the tailer where
  if the last cell in the document exceeded the cap (currently 1110 characters) then
  an empty string would be returned.

* This PR fixes that. If the last cell exceeds the length then we take the tail of that cell.

* This PR also checks in completer that the tail of the document is non empty; if its not empty
  then we fail the completion rather than continuing to generate the completion.

* Fix #305
Copy link

netlify bot commented Oct 17, 2024

Deploy Preview for foyle canceled.

Name Link
🔨 Latest commit df65196
🔍 Latest deploy log https://app.netlify.com/sites/foyle/deploys/67106333a92018000817b567

@jlewi jlewi enabled auto-merge (squash) October 17, 2024 01:07
@jlewi jlewi merged commit bd6dd6d into main Oct 17, 2024
5 checks passed
@jlewi jlewi deleted the jlewi/fixemptydoc branch October 17, 2024 01:11
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.

Suggestions stop being generated when linger on a cell - Empty String Used For Completion
1 participant