Skip to content

v1.2.1

Latest

Choose a tag to compare

@georgeh0 georgeh0 released this 26 Nov 03:41
86850c7

What's Changed

Behavior changes

  • RecursiveSplitter keeps code structure whole: a function, class or block that fits in chunk_size stays in one chunk, and a header (a def, fn, class or if line, a Markdown heading) stays with the start of its body. Its arguments are unchanged, but chunk boundaries differ from 1.2.0, so the next update re-chunks the files it splits. min_chunk_size is a soft floor: a chunk may be smaller where that avoids a worse split point by @badmonster0 in #2716 and #2803
  • cocoindex update exits with status 1 when a component failure goes unhandled (no exception handler registered for it, or every handler re-raised), so cron jobs and CI can detect a failed run. A handler that returns normally keeps the status at 0, and --live is unaffected by @Goldloli in #2661

Fixes

  • fix(core): a memoized root whose memo misses on a rerun probes the memo once, not twice, so its work (a search, a page fetch) runs once by @georgeh0 in #2836
  • fix(core): a catch-up app.update() beside a running app.update(live=True) no longer cancels the live components; it runs its own instance beside them. Dropping an app also reverts the target states of root providers a Rust SDK run registered by @badmonster0 in #2802 and #2820
  • fix(core): a component applies its target sinks in the same order on every run, and a sink's error names the target states it was applying (for a Python connector, as a note on the exception) by @badmonster0 in #2828
  • fix(py): Ctrl+C stops update_blocking() and drop_blocking() and raises KeyboardInterrupt by @georgeh0 in #2840
  • fix: a live update still running at interpreter exit is cancelled cleanly, without the "Task was destroyed but it is pending!" error and the 5 s delay by @georgeh0 in #2830
  • fix(runner): in subprocess mode (COCOINDEX_RUN_GPU_IN_SUBPROCESS=1), coco.current_gpu() returns the GPU the call was given, and calls on different GPUs run in parallel instead of one at a time, each GPU with its own workers by @NithinGoud2605 in #2390
  • fix(google_drive): folders and files in a shared drive are indexed by @pcbeingused333 in #2815
  • fix(connectors): excluded_patterns that name a directory exclude everything under it in Amazon S3, Azure Blob Storage and OCI Object Storage, as in a local directory walk by @georgeh0 in #2822, and in localfs live file events by @Sujit-1509 in #2758
  • fix(localfs): requires watchdog 7, whose Windows observer closes its handle once by @georgeh0 in #2831
  • fix(oci): logic_version is recorded only after a startup scan in which nothing failed, so a rerun after a failed scan scans again by @georgeh0 in #2825
  • fix(amazon_s3): read() with size=0 returns empty bytes instead of the whole object by @khrisshie in #2805
  • fix(doris): a table drop or replace whose DROP TABLE fails now fails, instead of being recorded as applied and leaving the old table in place by @khrisshie in #2804
  • fix(sqlite): a column type change whose DROP fails now fails, instead of being recorded as applied by @SuperMarioYL in #2798
  • fix(serde): pydantic models with bytes fields that aren't UTF-8 round-trip through serialization by @rtmalikian in #2817

Docs and examples

  • Install commands quote their extras, so they also work in zsh by @jerryqu-coco in #2809
  • The Google Drive connector docs show how to read a Google Drive for desktop folder with localfs by @georgeh0 in #2829
  • The CocoIndex Agents example researches a topic on the web, from a prompt or from named starting pages by @georgeh0 in #2833 and #2835

New Contributors

Full Changelog: v1.2.0...v1.2.1