Skip to content

Keep corpus builds streaming across missing or malformed input - #37

Merged
wshlavacek merged 3 commits into
mainfrom
fix/corpus-tar-ingest
Dec 1, 2026
Merged

wshlavacek merged 3 commits into
mainfrom
fix/corpus-tar-ingest

Conversation

@wshlavacek

Copy link
Copy Markdown
Collaborator

Corpus builds

A PMC manifest entry can now omit the tar extension even when the shard name contains dots. The CLI reports unresolved entries on stderr. Compressed shards skip rootless XML and continue indexing later articles.

Parallel parsing now limits outstanding work to four members per worker and preserves archive order across unsuccessful parses. Manifest scans, training and ingest also release tar headers as they go.

When a corpus has no training text, the writer saves a flat FAISS index under the writer locks. Reopening an untrained index created by --init-indices-only runs the same training decision. Training writes the index before updating its marker, including when save throttling is active.

Closes #11
Closes #12
Closes #19
Closes #24

Verification

  • Ran the targeted regression tests against the unchanged base and the branch, including fail-to-save, read-only, and bootstrap/reopen cases.
  • Ran the default pytest suite, the installed CLI build/query smoke test, and the cached SPECTER2 and SBERT CPU tests on macOS ARM64.
  • Independent full-branch review found two manifest edge cases on successive rounds. Both have regression tests. A fresh third round reviewed the complete diff through 07a7320 and returned clean.

The range-citation fix for #8 already shipped in #27. All 43 formatting tests pass on the unchanged base, including the range-to-references cases. Closes #8 as already resolved.

Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
Signed-off-by: Bill Hlavacek <hlavacek@lanl.gov>
@wshlavacek
wshlavacek merged commit 8e78224 into main Dec 1, 2026
4 checks passed
@wshlavacek
wshlavacek deleted the fix/corpus-tar-ingest branch December 1, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant