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

Remove unnecessary filename field in FileData #173

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Remove unnecessary filename field in FileData #173

merged 3 commits into from
Nov 13, 2024

Conversation

dyastremsky
Copy link
Contributor

Remove the field in FileData that holds a reference to the file's name. It is not needed, since GenericDatastructure holds a dictionary of filenames to file data and is the way that file data are referenced. The field results in duplication, which could mask bugs.

@dyastremsky dyastremsky self-assigned this Nov 8, 2024
@dyastremsky dyastremsky changed the title Remove unnecessary filename field Remove unnecessary filename field in FileData Nov 8, 2024
@lkomali
Copy link
Contributor

lkomali commented Nov 12, 2024

LGTM. Would wait for @nv-hwoo to take a look and approve/comment accordingly.

nv-hwoo
nv-hwoo previously approved these changes Nov 12, 2024
Copy link
Contributor

@nv-hwoo nv-hwoo left a comment

Choose a reason for hiding this comment

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

Just one nit suggestion to update the docstring. Otherwise, looks great 👍

genai-perf/genai_perf/inputs/retrievers/generic_dataset.py Outdated Show resolved Hide resolved
@dyastremsky
Copy link
Contributor Author

Just one nit suggestion to update the docstring. Otherwise, looks great 👍

Thanks, done!

Copy link
Contributor

@nv-hwoo nv-hwoo left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

@dyastremsky dyastremsky merged commit 1e0c897 into main Nov 13, 2024
6 checks passed
@dyastremsky dyastremsky deleted the dyas-files branch November 13, 2024 00:24
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