Skip to main content

With CocoIndex, users declare the transformation, CocoIndex creates & maintains an index, and keeps the derived index up to date based on source update, with minimal computation and changes.

Project description

CocoIndex

Data transformation for AI

GitHub Documentation License PyPI version

PyPI Downloads CI release Link Check prek Discord

cocoindex-io%2Fcocoindex | Trendshift

Ultra performant data transformation framework for AI, with core engine written in Rust. Support incremental processing and data lineage out-of-box. Exceptional developer velocity. Production-ready at day 0.

⭐ Drop a star to help us grow!


CocoIndex Transformation


CocoIndex makes it effortless to transform data with AI, and keep source data and target in sync. Whether you’re building a vector index, creating knowledge graphs for context engineering or performing any custom data transformations — goes beyond SQL.


CocoIndex Features


Exceptional velocity

Just declare transformation in dataflow with ~100 lines of python

# import
data['content'] = flow_builder.add_source(...)

# transform
data['out'] = data['content']
    .transform(...)
    .transform(...)

# collect data
collector.collect(...)

# export to db, vector db, graph db ...
collector.export(...)

CocoIndex follows the idea of Dataflow programming model. Each transformation creates a new field solely based on input fields, without hidden states and value mutation. All data before/after each transformation is observable, with lineage out of the box.

Particularly, developers don't explicitly mutate data by creating, updating and deleting. They just need to define transformation/formula for a set of source data.

Plug-and-Play Building Blocks

Native builtins for different source, targets and transformations. Standardize interface, make it 1-line code switch between different components - as easy as assembling building blocks.

CocoIndex Features

Data Freshness

CocoIndex keep source data and target in sync effortlessly.

Incremental Processing

It has out-of-box support for incremental indexing:

  • minimal recomputation on source or logic change.
  • (re-)processing necessary portions; reuse cache when possible

Quick Start

If you're new to CocoIndex, we recommend checking out

Setup

  1. Install CocoIndex Python library

Note: CocoIndex v1 is currently in preview (pre-release). Use the --pre flag with pip, or configure your package manager to allow pre-releases.

pip install -U --pre cocoindex
  1. Install Postgres if you don't have one. CocoIndex uses it for incremental processing.

  2. (Optional) Install Claude Code skill for enhanced development experience. Run these commands in Claude Code:

/plugin marketplace add cocoindex-io/cocoindex-claude
/plugin install cocoindex-skills@cocoindex

📖 Documentation

For detailed documentation, visit CocoIndex Documentation, including a Quickstart guide.

🤝 Contributing

We love contributions from our community ❤️. For details on contributing or running the project for development, check out our contributing guide.

👥 Community

Welcome with a huge coconut hug 🥥⋆。˚🤗. We are super excited for community contributions of all kinds - whether it's code improvements, documentation updates, issue reports, feature requests, and discussions in our Discord.

Join our community here:

Support us

We are constantly improving, and more features and examples are coming soon. If you love this project, please drop us a star ⭐ at GitHub repo GitHub to stay tuned and help us grow.

License

CocoIndex is Apache 2.0 licensed.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocoindex-1.0.0a21.tar.gz (252.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cocoindex-1.0.0a21-cp314-cp314t-win_amd64.whl (6.4 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a21-cp314-cp314t-macosx_11_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a21-cp311-abi3-win_amd64.whl (6.4 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a21-cp311-abi3-manylinux_2_28_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a21-cp311-abi3-manylinux_2_28_aarch64.whl (6.1 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a21-cp311-abi3-macosx_11_0_arm64.whl (6.3 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a21-cp311-abi3-macosx_10_12_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

cocoindex-1.0.0a21-cp310-cp310-manylinux_2_28_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a21-cp310-cp310-manylinux_2_28_aarch64.whl (6.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

File details

Details for the file cocoindex-1.0.0a21.tar.gz.

File metadata

  • Download URL: cocoindex-1.0.0a21.tar.gz
  • Upload date:
  • Size: 252.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.12.4

File hashes

Hashes for cocoindex-1.0.0a21.tar.gz
Algorithm Hash digest
SHA256 d5a2b9761fc7cbb462c92b8a837add230d5fb7c3e4631c508f5f8dfaa9ea64a5
MD5 d79cd6161ebc1690e6fb5d07599fa709
BLAKE2b-256 635829d6f48d7445efbabee0f5855b587306b52a98e42788e6415808266e71e6

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 903d85483dd9b72e4525cce3eef3ceeb2895ccf541a6a84fd6a4eb2a6ec710b9
MD5 0c4bf522189e35b7b8324e75367b9797
BLAKE2b-256 44345a39bf23c2502d41a4b74e3b2ceab72e635eaa42c5581ed4ba0ebe5b46db

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 601a8278e25afa576408dda6fba303348be38ed452224bcb3944ae40fd7fd06d
MD5 d66ba5265e2c3c47457d6716d879f446
BLAKE2b-256 4f1b688f23389e07c7637e2200bf61614fe9ede8bf10204f89893610454f9ea0

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b7c68eea1e5a0469a88c7c3bf68c0c2651dca647679a64f7023644295ba273ee
MD5 4924626c39b1a19d806c6f604024aba6
BLAKE2b-256 43619e6cab6b2d50990de692a088d6450559cad0001a2bf379005ca616542228

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f98d43692ca8578d62e0d25ffa37b1c78a6dd3a797cc623e111c2320f7436d25
MD5 f03492fa3fd9b9493f28cfa16266be43
BLAKE2b-256 189be8c46fda9379bc3a0b551463caf929f997dad05fa8b43746cae5b3685d40

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp311-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9418aff6a43a36f2a37f7d7363e0d30b8ba071f3649beb7715a9dc71f440f474
MD5 07b1d582e4990c796bb96d5c834c9f7d
BLAKE2b-256 530c84ec553a075e1acd4fd7d2cd585336f95c2dca1bf374a6e1e926b5761259

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a093272e8f50061aaac770f73557b55097fc7366dfa800016735805c8d85aaef
MD5 b7026201991222ef3bceb9d3f0706c3b
BLAKE2b-256 f883d11f8a3de47015ee7ba47e293eee2222e2b0b279af29c6d3c46a9768d753

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 637498b754af6fe0bdb7c6d69c039c3058955d5f81df064a74837be6e04c6807
MD5 357b8ac278d4a2ba6321db8527385f43
BLAKE2b-256 c8c07ef4cebf467dd916be51d223d6a54011e2e6879da99efe4e866054bd6135

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6898991dcaf8c895a66ebb7cfa1b061f91575a11bb79c999773092097b880d20
MD5 592ea687398c0a5e7bdc747f6b1c4392
BLAKE2b-256 91b7379e772a6f9293fbcb5cdf55216f9956f5648c91088dea2162b94f4bea43

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a21-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a21-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 75420b4dc4390ca63db5a1c73b4639786beb87c788704ba44149a0bb89f86c73
MD5 760e2862910d3104b485f3a408075b4d
BLAKE2b-256 cc9d97bbb2c8d28c740747cbbc41b546d49d54f7ebf33025892e1a5b0a7f785c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page