Notable changes to LitKit, in Keep a Changelog format. Versions before the open-source release were internal and were not tagged; earlier internal versions are summarized under 0.3.33.
query_terms()now preserves 3–4 character all-uppercase acronyms (such asHIVandEGFR) instead of lowercasing tokens before checking case. (#9)
- Retrieved chunks from text-fetch corpus imports carry the source filename and, for PDF body text, the physical page. Rebuild an older index from its original archives to populate these fields.
- Windows x64 CPU builds and queries on Python 3.12, with native locking for writers.
- Open-source release under the MIT license (LANL O5068).
- macOS (Apple Silicon) support in
uv.lock, souv syncinstalls on a Mac;install_mac.sh.
- macOS requires torch ≥ 2.6, which fixes CVE-2025-32434; Linux stays on 2.5.1.
- torch is loaded only when a model is, so
litkit --version,--helpand argument errors return in about 0.1 s instead of 0.5 s. uv syncinstalls the development tools (now adevdependency group), anduv run pytestruns the new test suite.
- Stage-2 retrieval now includes JATS body paragraphs shorter than 40 characters, even when one line is the entire body. Rebuild existing indexes from their source archives to include these passages. (#32)
- References no longer add a second period before a DOI, PMCID or PMID, or after a yearless title that already ends in a period. (#23)
- Builds slowed down as the index grew, because every batch scanned the whole FAISS
index twice to remove IDs.
--rebuildnow skips the scan, and updates scan once. normalize_citations()no longer reads bracketed prose that merely starts with a number ("[3 patients]", "[95% CI 1.3–3.4]", "[2a]") as a citation, which had been inventing references and renumbering the real ones. Numeric lists may now also be separated by;and include ranges ("[1; 2-3]") or location tails ("[1–3†L3-L6]"). Range expansion is limited to the selected chunks. (#22, #8)
--strict-ingest. By default, an XML member that fails to ingest is now skipped and the build continues, instead of being retried on every run.- Batch scripts stage producer output on node-local SSD (
USE_LOCAL_STAGING) and cancel the whole job when any producer fails.
- Multi-node builds: each producer now writes its own SQLite shard database, which the consumer merges. Segment files use content-derived IDs, so they stay valid after the merge.
cli.pysplit intobuild,concurrent,config,db,index,llm,pipeline,retrieval, andsegmentspackages; LLM calls go through a provider-agnosticlitkit.llmmodule.- The writer guard no longer expires after 24 hours by default, so a long build is
never evicted while it is still running. Set
LITKIT_WRITER_GUARD_TTL(in seconds) to restore automatic expiry.
- Citations in answers could point to the wrong papers after a context-overflow retry dropped chunks.
--parse-workershad no effect; uncompressed tar files are now parsed in parallel.- macOS: crash at startup with FAISS + MPS, and on
faiss-cpubuilds withoutfaiss.cvar.seed.
doc_idcolumn onpapers(PMC ID, then PMID, then a content hash) for deduplication across producers.- Multi-node build options
--embed-producer,--consume-only, and--init-indices-only, with tar files spread across shards by size. - Charliecloud container builds (
Dockerfile.lean,justfile) and Slurm batch scripts. .nxmlfiles are ingested alongside.xml.
- With several GPUs, a fast-starting worker could take all the work while the others sat idle.
- Package layout under
src/litkit, with thelitkitcommand-line entry point. - Embedding backends: SPECTER2 for papers, SBERT MPNet for chunks, and a multi-device embedding pool.