Repository navigation
Description
Overview
Umbrella tracking issue for the Chatty / text-fetch / LitKit roadmap defined in docs/adr/README.md (ADRs 0001–0006):
- Non-developer laptop UX across macOS, Linux, and Windows (no hidden
Application Supportpaths, no Docker/Java prerequisites). - Private PDF collections including scanned PDFs, physics LaTeX equations, and policy tables (strictly non-Chinese, permissive open-source provenance).
- HPC cluster & air-gapped scalability (full PMC OA & large private PDF collections via SLURM + Charliecloud
.sqfs+ offline.safetensors). - AI-agent readiness (named isolated corpora, progressive retrieval, structured
--jsonCLI, andSKILL.mdfor shell-capable coding agents).
ADRs
- ADR 0001 — Cross-Platform Suite Installer Layout, Lifecycle, and Linux Support
- ADR 0002 — Local PDF Conversion, Multi-Engine OCR, and LaTeX/Table Extraction
- ADR 0003 — JATS XML Contract for Equations, Tables, and Non-Academic Documents
- ADR 0004 — Single-Command Corpus Indexing and Diagnostics for Non-Developers
- ADR 0005 — HPC Scalability, Distributed PDF Ingestion, and Air-Gapped Containers
- ADR 0006 — AI-Agent Readiness, Named Corpora, Structured CLI, and Execution Backends
Implementation Slices (Dependency-Ordered)
Phase 1 — Installer UX & Linux Support (lanl/chatty)
- ADR 0001: Overhaul macOS/Linux installer layout (~/.local/bin), runtime pruning, --uninstall, and UX #60 — Overhaul macOS/Linux installer layout (
~/.local/bin+~/.local/share/chatty-suite), runtime pruning,--uninstall, migration, and UX - ADR 0001: Add Linux (x86_64/arm64) laptop suite release and verification support #61 — Add Linux (
x86_64/arm64) laptop suite release and verification support
Phase 2 — Ingestion, OCR, Equations & JATS Contract (lanl/text-fetch & lanl/litkit)
- ADR 0002/0005: Fault-tolerant corpus import, uncompressed .tar sharding, and SLURM-array rank partitioning text-fetch#67 — Fault-tolerant
corpus import, uncompressed.tarsharding, and SLURM-array rank partitioning - ADR 0002: Add per-page scan detection and pluggable OCR backends (Apple Vision and Tesseract via pypdfium2) text-fetch#68 — Per-page scan detection and pluggable OCR backends (
visionon macOS 14+,tesseractviapypdfium2) - ADR 0002/0003/0005: Add IBM Granite-Docling to JATS XML backend (Apache 2.0, equations, tables, scans) text-fetch#69 — IBM
Granite-Docling→ JATS XML backend (Apache 2.0, equations, tables, scans) - ADR 0003/0005: Index <tex-math> equations and bounded <table-wrap> tables in parse_jats() plus Stage-1 non-academic handling litkit#45 — Index
<tex-math>equations and configurable/bounded<table-wrap>tables inparse_jats(), plus Stage-1 non-academic handling
Phase 3 — Non-Developer & AI-Agent Workflows (lanl/text-fetch, lanl/litkit, lanl/chatty)
- ADR 0006: Add agent-ready CLI flags (--json, --dry-run --json, --yes, --max-papers caps, offline guard) text-fetch#70 — Agent-ready CLI flags (
--json,--dry-run --json,--yes,--max-paperscaps, offline guard) - ADR 0006: Add optional metadata columns (doi, year, authors, section) and progressive retrieval APIs (exact search, chunk context, full paper) litkit#46 — Optional metadata columns (
doi,year,authors,journal,section) and progressive retrieval APIs (search_papers, hybrid/exact search,get_chunk_context,get_paper) - ADR 0004: Add single-command chatty index workflow and extend chatty models/doctor for PDF & OCR #62 — Single-command
chatty index <folder>workflow and extendedchatty models/chatty doctorfor PDF & OCR - ADR 0006: Add named corpora registry, shared HF_HOME cache, structured --json CLI, and agent SKILL.md #63 — Named corpora registry, shared
HF_HOMEcache, structured--jsonretrieval CLI, and agentSKILL.md
Phase 4 — HPC SLURM Executor & Air-Gapped Enclave Deployment (lanl/chatty & lanl/litkit)
- ADR 0005/0006: Add declarative hpc.toml profile, slurm executor, and air-gapped offline enforcement #64 — Declarative
hpc.tomlprofile,slurmexecutor, and strict air-gapped offline enforcement - ADR 0005/0006: Add unified Charliecloud suite container flavor, offline SafeTensors model pack, and pdf_ingest_array.sbatch litkit#47 — Unified Charliecloud suite container flavor (
litkit+text-fetch+chatty+tesseract), offline.safetensorsmodel pack, andpdf_ingest_array.sbatch
Phase 5 — Agent experience: from a topic to cited answers, easy and fast (lanl/chatty, lanl/litkit)
From a comparison with lanl/bngsim's agent work (lanl/bngsim#1710). Each helps on its own; the order within each group is a suggestion.
Cheap first:
- Package descriptions and the agent skill don't say what the suite does #71 — Package descriptions and the agent skill don't say what the suite does (papers and non-scientific documents)
- The agent skill ships in the wheel, but no command prints or installs it #72 —
chatty skill: print or install the SKILL.md the wheel already ships - --json usage errors print a text box, and a missing corpus gets no suggestion #73 — JSON usage errors, close matches and remedies
- No example corpus: a first try needs the network and a model download #74 — A small example corpus that works offline
- SKILL.md's examples aren't run in CI #81 — Run SKILL.md's examples in CI
Decide before the larger items:
- chatty and LitKit each implement progressive retrieval #75 — One progressive-retrieval surface, chatty's or LitKit's
From a topic to a corpus, fast:
- Going from a topic or seed papers to a searchable corpus takes two tools and a hand-built path #80 — One command from a topic or seed papers (with citation expansion) to a searchable corpus
- A corpus can't be searched until its vectors are built #76 — Search a corpus while its vectors build
- Every semantic or hybrid query reloads the embedding model #77 — Stop reloading the embedding model on every query (measure first)
- Build and maintain an FTS5 index for exact passage search at scale litkit#56 — FTS5 index for exact search at scale
Citation networks and trust:
- The corpus drops its citation network, so nobody can follow what a paper cites or what cites it #79 — Keep the citation network in the corpus and let an agent walk it
- Passage handles can point at a different passage after a reindex #78 — Passage handles that survive a reindex
- Nothing checks that a cited passage says what the claim says #82 —
chatty verify: check that a cited passage says what the claim says
Choosing the right papers (lanl/text-fetch):
- No way to triage candidates before downloading: a cap keeps whatever the source lists first text-fetch#87 — List, rank and triage candidates before downloading, instead of keeping whatever the source lists first
- A date range is ignored by arXiv and by citation expansion, and text-fetch pmc has no date options text-fetch#85 — Apply date ranges to arXiv and (optionally) to citation expansion; date options for
text-fetch pmc - Author search matches everyone with the same name text-fetch#86 — Author search by ORCID, and scoring of same-name matches
- No way to leave out or prefer reviews, meta-analyses, editorials or retracted papers text-fetch#88 — Leave out or prefer reviews, meta-analyses and editorials; record paper types; flag retractions
- Record each paper's type (review, meta-analysis, editorial, retraction ...) and filter on it litkit#58 — Record each paper's type and filter on it (the LitKit side of No way to leave out or prefer reviews, meta-analyses, editorials or retracted papers text-fetch#88)
Reaching more users, and measuring whether it works:
- Corpus modes: a scientific research mode first, then modes for other kinds of document collections #83 — Corpus modes: a scientific research mode first, then modes for other kinds of document collections
- An MCP server for chat apps without a shell #84 — An MCP server for chat apps without a shell (revisits ADR 0006's deferral)
- Tracking: measure how well an agent using the suite builds corpora and answers with citations, and how often it cites wrongly #85 — Tracking: an agent benchmark for building corpora and answering with citations
December implementation and verification
#125 is the combined merge target for the Chatty agent-facing work in Phase 5 and the Chatty portions of Phase 4. It includes all feature PRs with their original commits. The source-package dependencies are pinned to the LitKit and text-fetch companion revisions. The text-fetch OSTI fix has merged, and the remaining LitKit integration is lanl/litkit#64. The published benchmark for #85 covers 120 registered jobs.
Native SLURM/Charliecloud/NVIDIA verification and the site distribution in lanl/litkit#47 are outstanding. The FTS5, paper-type and literature-selection issues listed above remain with their owning repositories. #124 and #126 document the next benchmark changes exposed by the pilot.
Activity