Download Latest Version v1.2.0 source code.zip (26.9 MB)
Home / v1.2.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-11-09 7.0 kB
v1.2.0 source code.tar.gz 2026-11-09 26.0 MB
v1.2.0 source code.zip 2026-11-09 26.9 MB
Totals: 3 Items   52.9 MB 0

What's Changed

Discord source connector

cocoindex.connectors.discord indexes the messages and threads of Discord text, announcement and forum channels, using the token of a bot you create and invite to your server (pip install cocoindex[discord]): DiscordChannel(app=DiscordApp(token=...), channel_id=...).

  • DiscordChannel.items() yields one DiscordMessage per message in the channel and one DiscordThread per thread, active or archived, including forum posts. Both have read_text() for embedding
  • Each run lists the channel, and only the messages and threads that changed are reprocessed; a thread's messages are fetched only when the thread reruns. message_fields and thread_fields choose which fields are exposed, and so what counts as a change
  • Misconfigurations that Discord answers with an empty or text-less success (the Message Content intent off, no Read Message History) and lost access raise an error, so the channel keeps its outputs instead of having them deleted
  • Two examples: semantic search over a channel (discord_text_embedding), and support threads turned into an FAQ knowledge base (discord_support_faq)

by @jerryqu-coco in https://github.com/cocoindex-io/cocoindex/pull/2695

Google Drive: sign in with a personal Google account (experimental)

Beside a service account, the Google Drive connector can read a Drive as a personal Google account signed in once through OAuth: GoogleDriveSource(root_folder_ids=[...], user_account=google_drive.UserAccount()). Sign in with cocoindex auth sign-in google-drive <client_secret.json> (sign out with cocoindex auth sign-out google-drive), or call UserAccount().sign_in(...) from your own program. The client file comes from a Desktop app OAuth client you create in your own Google Cloud project; the connector docs walk through it. A host with no browser prints the link and takes the pasted redirect address. The sign-in asks for read-only Drive access and is stored only on your computer; the connector docs describe the token file and how to revoke it. The service-account path is unchanged by @georgeh0 in https://github.com/cocoindex-io/cocoindex/pull/2687, https://github.com/cocoindex-io/cocoindex/pull/2689, https://github.com/cocoindex-io/cocoindex/pull/2791 and https://github.com/cocoindex-io/cocoindex/pull/2792

Data dependencies for memoized functions and components (experimental)

A calmer, clearer progress display

cocoindex update, cocoindex drop and update_blocking(report_to_stdout=True) show one status line (Running…, ● Watching for changes, ✓ Done in 3.0s), with each component in an aligned column showing a progress bar, its rate and its failures. The summary lists the first failures under their component, and the final status counts failures inside stats groups too. Every failure also logs one ERROR line, with its traceback in scrolling output by @badmonster0 in https://github.com/cocoindex-io/cocoindex/pull/2717 and https://github.com/cocoindex-io/cocoindex/pull/2731, and @georgeh0 in https://github.com/cocoindex-io/cocoindex/pull/2744

Other changes

This release also includes the fixes of v1.1.1.

Full Changelog: https://github.com/cocoindex-io/cocoindex/compare/v1.1.0...v1.2.0

Source: README.md, updated 2026-11-09