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

Prevent ingestion failure on empty tables #1040

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

vkrd
Copy link
Contributor

@vkrd vkrd commented Aug 5, 2024

Motivation and Context

This address the bug mentioned in #1034 where the data preparation script fails when the table is empty.

Description

All this PR does is add a check to make sure there is a "span" of the text that each table corresponds to. If there is no such span, then it skips the table since that means it's just an empty table with no information.

Contribution Checklist

  • I have built and tested the code locally and in a deployed app
  • For frontend changes, I have pulled the latest code from main, built the frontend, and committed all static files. (N/A)
  • This is a change for all users of this app. No code or asset is specific to my use case or my organization.
  • I didn't break any existing functionality 😄

@vkrd vkrd self-assigned this Aug 5, 2024
@vkrd vkrd changed the title Change that len > 0 Prevent ingestion failure on empty tables Aug 5, 2024
@vkrd vkrd merged commit 9f17cfa into main Aug 5, 2024
9 checks passed
@vkrd vkrd deleted the vikramdu/fix_empty_table_bug branch August 5, 2024 18:42
sydneybeckcook pushed a commit to sydneybeckcook/sample-app-aoai-chatGPT-customcookgpt that referenced this pull request Aug 27, 2024
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.

2 participants