From 0c2485d29e9c6c77212fefa3f53db0fa5231800f Mon Sep 17 00:00:00 2001 From: Bill Hlavacek Date: Fri, 4 Dec 2026 22:52:35 -0700 Subject: [PATCH 1/2] Release Chatty 0.6.0 Adds corpus collection from topics and seeds, citation commands, quotation verification, warm and batch retrieval, background indexing, an MCP server, SLURM builds and the installed agent guide, so this is a minor release. Source installs pin the text-fetch 0.5.0 and LitKit 0.5.0 release commits. Signed-off-by: Bill Hlavacek --- CHANGELOG.md | 28 +++++++++++++++++++++++++++- pyproject.toml | 6 +++--- src/chatty/__init__.py | 2 +- uv.lock | 14 +++++++------- 4 files changed, 38 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8545ab..7540a37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.6.0] - 2026-12-04 + ### Added -- Named corpora record their mode. Existing corpora default to `research`. Run `chatty skill --mode research` for the research guidance shipped in the wheel. +- Build a literature corpus from a topic or from seed papers. `chatty corpus create NAME --topic "..."` or `--seed PMCID` collects papers with text-fetch, following references and citations with `--expand` and `--depth`, within a `--max-papers` budget (default 25). `--dry-run` previews the selection and `--yes` downloads and indexes it. `chatty corpus add` collects more papers into an existing corpus, and `chatty corpus index` indexes the documents in a corpus's `sources` folder. +- Follow citations inside a corpus. `chatty refs` lists the references of a paper, passage or physical page, and `--missing --fetch` collects the ones the corpus lacks. `chatty cited-by` finds the papers that cite a paper, with their citing passages, and `chatty corpus graph` exports the citation graph page by page as JSON or CSV. +- `chatty verify` checks a quotation, and a claimed value and unit, at its cited location. `--claims FILE` checks a JSONL file of claims. +- Save a passage's `evidence_handle` with a citation. After a later index, `context` and `paper` check it against the stored passage and return `stale_handle` when the text changed, with a replacement when the passage moved. +- `chatty retrieve --queries FILE` runs a JSONL batch of queries. The first hybrid or semantic search starts a private local worker that keeps the embedding models loaded for later searches of the same corpus. +- `chatty index --background` returns as soon as the imported text can be searched exactly, and hybrid retrieval uses exact matches until the vectors are built. `chatty corpus status` reports exact, semantic and hybrid readiness and vector progress. `chatty index --ocr force` re-reads scans with an unreliable text layer. +- `chatty corpus create NAME --example` installs a prepared index of public-domain Los Alamos history excerpts, so a first search works offline. +- `chatty mcp` serves Chatty to desktop MCP clients such as Claude Desktop over stdio. `--corpus` limits which corpora it can see, and `--allow-writes` exposes corpus creation, collection, indexing and deletion. `integrations/chatty.mcpb` is a desktop extension with the read-only tools. Install the `mcp` extra. +- SLURM builds. With `executor = "slurm"` in `~/.config/chatty/hpc.toml`, `chatty index` and confirmed collections run as single-node jobs in a Charliecloud image, using node-local scratch and local safetensors weights only. `chatty index --dry-run` previews the job and `chatty job status` reports its progress. +- `chatty skill` prints the agent guide for the installed version, and `--out PATH` writes it to a file. Named corpora record their mode. Existing corpora default to `research`, and `chatty skill --mode research` prints the research guidance. +- With `--json`, errors include suggested remedies. An invalid argument exits 2 with `invalid_argument`, and an unknown corpus, paper or passage exits 3 with close matches. + +### Changed + +- Local `chatty index` builds include extracted table headers and cells by default, so a table value can be retrieved with its source page. Rebuild an index to add the tables it left out. +- `chatty index --example` builds its index from public-domain Los Alamos history excerpts, including OCR of a scanned history. +- On Apple Silicon, indexing embeds eight passages at a time. +- Source installs pin text-fetch 0.5.0 and LitKit 0.5.0. + +### Fixed + +- `chatty doctor` checks that the passage tables can be read before reporting retrieval ready. +- On Windows, a query against a corpus with its own model cache releases the model files when it finishes, and piped JSON output stays readable on non-UTF-8 code pages. +- The chat UI ignores a context-window response that arrives after it starts shutting down. +- On a Linux NFS home directory, the laptop suite installer's lifecycle commands take a shared lock, so two clients can't install, upgrade or uninstall at once. ## [0.5.0] - 2026-12-03 diff --git a/pyproject.toml b/pyproject.toml index dd5f8b8..20d97dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "chatty" -version = "0.5.0" +version = "0.6.0" description = "Build and search a corpus of papers or your own documents with citations, from a terminal chat UI or a JSON CLI." readme = "README.md" license = { file = "LICENSE" } @@ -38,7 +38,7 @@ dependencies = [ mcp = ["mcp>=1.19,<2"] index = [ "chatty[rag,litkit]", - "text-fetch[docling,ocr-macos] @ git+https://github.com/lanl/text-fetch.git@19b288956ad408365f29c7d7db21773c828c880a", + "text-fetch[docling,ocr-macos] @ git+https://github.com/lanl/text-fetch.git@685ee8bc7f8178b035000cd7eb052726410dd2ce", "filelock>=3.20.3", ] rag = [ @@ -46,7 +46,7 @@ rag = [ "numpy<2", ] litkit = [ - "litkit @ git+https://github.com/lanl/litkit.git@68eb5d51ad3729d961174bb660172e0a332945a0", + "litkit @ git+https://github.com/lanl/litkit.git@3b6ee3ac074fc2440db92e5bef6e8a9ea572f340", ] [project.scripts] diff --git a/src/chatty/__init__.py b/src/chatty/__init__.py index 5979109..c08f88d 100644 --- a/src/chatty/__init__.py +++ b/src/chatty/__init__.py @@ -1,3 +1,3 @@ """Build and search a corpus of papers or your own documents with citations.""" -__version__ = "0.5.0" +__version__ = "0.6.0" diff --git a/uv.lock b/uv.lock index 623d96a..02270b1 100644 --- a/uv.lock +++ b/uv.lock @@ -212,7 +212,7 @@ wheels = [ [[package]] name = "chatty" -version = "0.5.0" +version = "0.6.0" source = { editable = "." } dependencies = [ { name = "httpx" }, @@ -269,14 +269,14 @@ requires-dist = [ { name = "filelock", marker = "extra == 'index'", specifier = ">=3.20.3" }, { name = "httpx", specifier = ">=0.25" }, { name = "httpx-sse", specifier = ">=0.4" }, - { name = "litkit", marker = "extra == 'litkit'", git = "https://github.com/lanl/litkit.git?rev=68eb5d51ad3729d961174bb660172e0a332945a0" }, + { name = "litkit", marker = "extra == 'litkit'", git = "https://github.com/lanl/litkit.git?rev=3b6ee3ac074fc2440db92e5bef6e8a9ea572f340" }, { name = "mcp", marker = "extra == 'mcp'", specifier = ">=1.19,<2" }, { name = "numpy", marker = "extra == 'rag'", specifier = "<2" }, { name = "pydantic", specifier = ">=2.0" }, { name = "pydantic-settings", specifier = ">=2.12" }, { name = "pyperclip", specifier = ">=1.11.0" }, { name = "rich", specifier = ">=13.0" }, - { name = "text-fetch", extras = ["docling", "ocr-macos"], marker = "extra == 'index'", git = "https://github.com/lanl/text-fetch.git?rev=19b288956ad408365f29c7d7db21773c828c880a" }, + { name = "text-fetch", extras = ["docling", "ocr-macos"], marker = "extra == 'index'", git = "https://github.com/lanl/text-fetch.git?rev=685ee8bc7f8178b035000cd7eb052726410dd2ce" }, { name = "textual", specifier = ">=3.1" }, { name = "tiktoken", specifier = ">=0.5" }, { name = "tomli", marker = "python_full_version < '3.11'", specifier = ">=2.0" }, @@ -859,8 +859,8 @@ wheels = [ [[package]] name = "litkit" -version = "0.4.0" -source = { git = "https://github.com/lanl/litkit.git?rev=68eb5d51ad3729d961174bb660172e0a332945a0#68eb5d51ad3729d961174bb660172e0a332945a0" } +version = "0.5.0" +source = { git = "https://github.com/lanl/litkit.git?rev=3b6ee3ac074fc2440db92e5bef6e8a9ea572f340#3b6ee3ac074fc2440db92e5bef6e8a9ea572f340" } dependencies = [ { name = "faiss-cpu", version = "1.8.0", source = { registry = "https://pypi.org/simple" }, marker = "sys_platform == 'win32'" }, { name = "faiss-cpu", version = "1.8.0.post1", source = { registry = "https://pypi.org/simple" }, marker = "sys_platform != 'win32'" }, @@ -2329,8 +2329,8 @@ wheels = [ [[package]] name = "text-fetch" -version = "0.4.0" -source = { git = "https://github.com/lanl/text-fetch.git?rev=19b288956ad408365f29c7d7db21773c828c880a#19b288956ad408365f29c7d7db21773c828c880a" } +version = "0.5.0" +source = { git = "https://github.com/lanl/text-fetch.git?rev=685ee8bc7f8178b035000cd7eb052726410dd2ce#685ee8bc7f8178b035000cd7eb052726410dd2ce" } dependencies = [ { name = "click" }, { name = "filelock" }, From c69db974134d55872c64bc4541b0b5af21a6b0ce Mon Sep 17 00:00:00 2001 From: Bill Hlavacek Date: Fri, 4 Dec 2026 22:58:05 -0700 Subject: [PATCH 2/2] Note the verify exit code, example path and smaller options in the 0.6.0 changelog Signed-off-by: Bill Hlavacek --- CHANGELOG.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7540a37..64b8655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,22 +11,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Build a literature corpus from a topic or from seed papers. `chatty corpus create NAME --topic "..."` or `--seed PMCID` collects papers with text-fetch, following references and citations with `--expand` and `--depth`, within a `--max-papers` budget (default 25). `--dry-run` previews the selection and `--yes` downloads and indexes it. `chatty corpus add` collects more papers into an existing corpus, and `chatty corpus index` indexes the documents in a corpus's `sources` folder. +- Build a literature corpus from a topic or from seed papers. `chatty corpus create NAME --topic "..."` or `--seed PMCID` collects papers with text-fetch from the `--sources` given (default `europepmc`), following references and citations with `--expand` and `--depth`, within a `--max-papers` budget (default 25). `--dry-run` previews the selection and `--yes` downloads and indexes it. `chatty corpus add` collects more papers into an existing corpus, and `chatty corpus index` indexes the documents in a corpus's `sources` folder. - Follow citations inside a corpus. `chatty refs` lists the references of a paper, passage or physical page, and `--missing --fetch` collects the ones the corpus lacks. `chatty cited-by` finds the papers that cite a paper, with their citing passages, and `chatty corpus graph` exports the citation graph page by page as JSON or CSV. -- `chatty verify` checks a quotation, and a claimed value and unit, at its cited location. `--claims FILE` checks a JSONL file of claims. +- `chatty verify` checks a quotation, and a claimed value and unit, at its cited location. `--claims FILE` checks a JSONL file of claims. With `--json`, an unsupported claim exits 7 with `claim_not_supported`. - Save a passage's `evidence_handle` with a citation. After a later index, `context` and `paper` check it against the stored passage and return `stale_handle` when the text changed, with a replacement when the passage moved. -- `chatty retrieve --queries FILE` runs a JSONL batch of queries. The first hybrid or semantic search starts a private local worker that keeps the embedding models loaded for later searches of the same corpus. +- `chatty retrieve --queries FILE` runs a JSONL batch of queries. The first hybrid or semantic search starts a private local worker that keeps the embedding models loaded for later searches of the same corpus. Set `CHATTY_RETRIEVAL_SERVICE=0` to run each command in a fresh process instead. - `chatty index --background` returns as soon as the imported text can be searched exactly, and hybrid retrieval uses exact matches until the vectors are built. `chatty corpus status` reports exact, semantic and hybrid readiness and vector progress. `chatty index --ocr force` re-reads scans with an unreliable text layer. - `chatty corpus create NAME --example` installs a prepared index of public-domain Los Alamos history excerpts, so a first search works offline. -- `chatty mcp` serves Chatty to desktop MCP clients such as Claude Desktop over stdio. `--corpus` limits which corpora it can see, and `--allow-writes` exposes corpus creation, collection, indexing and deletion. `integrations/chatty.mcpb` is a desktop extension with the read-only tools. Install the `mcp` extra. -- SLURM builds. With `executor = "slurm"` in `~/.config/chatty/hpc.toml`, `chatty index` and confirmed collections run as single-node jobs in a Charliecloud image, using node-local scratch and local safetensors weights only. `chatty index --dry-run` previews the job and `chatty job status` reports its progress. +- `chatty mcp` serves Chatty to desktop MCP clients such as Claude Desktop over stdio. `--corpus` limits which corpora it can see, `--timeout` limits each call (default 120 seconds), and `--allow-writes` exposes corpus creation, collection, indexing and deletion. `integrations/chatty.mcpb` is a desktop extension with the read-only tools. Install the `mcp` extra. +- SLURM builds. With `executor = "slurm"` in `~/.config/chatty/hpc.toml` (or a site default in `/etc/chatty/hpc.toml`, or the profile named by `CHATTY_HPC_CONFIG`), `chatty index` and confirmed collections run as single-node jobs in a Charliecloud image, using node-local scratch and local safetensors weights only. `chatty index --dry-run` previews the job and `chatty job status` reports its progress. - `chatty skill` prints the agent guide for the installed version, and `--out PATH` writes it to a file. Named corpora record their mode. Existing corpora default to `research`, and `chatty skill --mode research` prints the research guidance. +- `chatty corpus list --only NAME` lists only the named corpora. - With `--json`, errors include suggested remedies. An invalid argument exits 2 with `invalid_argument`, and an unknown corpus, paper or passage exits 3 with close matches. ### Changed - Local `chatty index` builds include extracted table headers and cells by default, so a table value can be retrieved with its source page. Rebuild an index to add the tables it left out. -- `chatty index --example` builds its index from public-domain Los Alamos history excerpts, including OCR of a scanned history. +- `chatty index --example` builds its index from public-domain Los Alamos history excerpts, including OCR of a scanned history. `chatty workspace --example` copies them into `example/los-alamos` instead of `example/documents`. - On Apple Silicon, indexing embeds eight passages at a time. - Source installs pin text-fetch 0.5.0 and LitKit 0.5.0. @@ -35,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `chatty doctor` checks that the passage tables can be read before reporting retrieval ready. - On Windows, a query against a corpus with its own model cache releases the model files when it finishes, and piped JSON output stays readable on non-UTF-8 code pages. - The chat UI ignores a context-window response that arrives after it starts shutting down. -- On a Linux NFS home directory, the laptop suite installer's lifecycle commands take a shared lock, so two clients can't install, upgrade or uninstall at once. +- On a Linux NFS home directory, the laptop suite installer's lifecycle commands take an exclusive lock, so two clients can't install, upgrade or uninstall at once. ## [0.5.0] - 2026-12-03