Repository navigation
What's Changed
Behavior changes
RecursiveSplitterkeeps code structure whole: a function, class or block that fits inchunk_sizestays in one chunk, and a header (adef,fn,classorifline, 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_sizeis a soft floor: a chunk may be smaller where that avoids a worse split point by @badmonster0 in #2716 and #2803cocoindex updateexits 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--liveis 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 runningapp.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()anddrop_blocking()and raisesKeyboardInterruptby @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_patternsthat 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_versionis 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()withsize=0returns empty bytes instead of the whole object by @khrisshie in #2805 - fix(doris): a table drop or replace whose
DROP TABLEfails 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
DROPfails now fails, instead of being recorded as applied by @SuperMarioYL in #2798 - fix(serde): pydantic models with
bytesfields 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
localfsby @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
- @NithinGoud2605 made their first contribution in #2390
- @Standing-Man made their first contribution in #2819
- @khrisshie made their first contribution in #2804
- @Goldloli made their first contribution in #2661
- @pcbeingused333 made their first contribution in #2815
Full Changelog: v1.2.0...v1.2.1