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

'File partition' option and 'document' directory specification #213

Merged
merged 21 commits into from
Oct 3, 2024

Conversation

Whattabatt
Copy link
Contributor

Allows for partitioning work at the file level - checking the hash of the de-globbed file names instead of spans. Also, creates an optional 'document dir' parameter for dealing with source data that doesn't have a 'document' directory to replace with 'attributes' (previously the attribute path generator would try replacing 'documents', not find any, and use the source directory!)

Copy link
Contributor

@undfined undfined left a comment

Choose a reason for hiding this comment

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

Looks good, likely worth a test given the destructive nature of the bug you found.

src/deduper.rs Outdated
Comment on lines 140 to 148
docs_location.replace(
&format!(
"/{}/",
dedupe_config
.document_dir
.unwrap_or(String::from("documents"))
),
&attr_prefix,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a test for this?

pyproject.toml Outdated
@@ -1,6 +1,6 @@
[project]
name = "dolma"
version = "1.0.14.post1"
version = "1.0.14.dev6"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's update the version and drop devN

pyproject.toml Outdated
@@ -1,6 +1,6 @@
[project]
name = "dolma"
version = "1.0.14.dev6"
version = "1.0.5"
Copy link
Contributor

Choose a reason for hiding this comment

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

You want 1.0.15 right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No actually, when I started making dev branches I misread the version. The most recent not dev is 1.0.4

@Whattabatt Whattabatt merged commit 4615d34 into main Oct 3, 2024
18 checks passed
@Whattabatt Whattabatt deleted the file-partition branch October 3, 2024 23:37
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