Skip to content

Latest commit

 

History

History
87 lines (71 loc) · 4.03 KB

CHANGELOG.md

File metadata and controls

87 lines (71 loc) · 4.03 KB

Changelog

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.

[Unreleased]

Fixed

  • query_terms() now preserves 3–4 character all-uppercase acronyms (such as HIV and EGFR) instead of lowercasing tokens before checking case. (#9)

[0.3.36] - 2026-11-30

Added

  • 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, so uv sync installs on a Mac; install_mac.sh.

Changed

  • 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, --help and argument errors return in about 0.1 s instead of 0.5 s.
  • uv sync installs the development tools (now a dev dependency group), and uv run pytest runs the new test suite.

Fixed

  • 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. --rebuild now 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)

[0.3.35] - 2025-12-24

Added

  • --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.

Changed

  • 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.py split into build, concurrent, config, db, index, llm, pipeline, retrieval, and segments packages; LLM calls go through a provider-agnostic litkit.llm module.
  • 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.

Fixed

  • Citations in answers could point to the wrong papers after a context-overflow retry dropped chunks.
  • --parse-workers had no effect; uncompressed tar files are now parsed in parallel.
  • macOS: crash at startup with FAISS + MPS, and on faiss-cpu builds without faiss.cvar.seed.

[0.3.34] - 2025-12-12

Added

  • doc_id column on papers (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.
  • .nxml files are ingested alongside .xml.

Fixed

  • With several GPUs, a fast-starting worker could take all the work while the others sat idle.

[0.3.33] - 2025-10-27

Added

  • Package layout under src/litkit, with the litkit command-line entry point.
  • Embedding backends: SPECTER2 for papers, SBERT MPNet for chunks, and a multi-device embedding pool.