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.0a12.tar.gz (225.3 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.0a12-cp314-cp314t-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a12-cp314-cp314t-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a12-cp311-abi3-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a12-cp311-abi3-manylinux_2_28_x86_64.whl (6.0 MB view details)

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

cocoindex-1.0.0a12-cp311-abi3-manylinux_2_28_aarch64.whl (5.8 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a12-cp311-abi3-macosx_11_0_arm64.whl (6.0 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a12-cp311-abi3-macosx_10_12_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

cocoindex-1.0.0a12-cp310-cp310-manylinux_2_28_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a12-cp310-cp310-manylinux_2_28_aarch64.whl (5.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a12.tar.gz
Algorithm Hash digest
SHA256 d34897997d9b6fe56caa2d84885e5a0fe50ff92ea7f0794c6870e82da4f711fa
MD5 4d4828b5599ad3c9c981caf8d0e70485
BLAKE2b-256 b1eed0dca39218bd663166b4516b4a3c56dadc1a3f4d321c34e9e29b17274070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 b3c3314d1600e4e4abf4216b11c13153cd363c1e49b8669986e225d6dc84b646
MD5 c21987285302d536b7846422339b67c8
BLAKE2b-256 14693750374cd72baaf9d83aca5ed4027842fea03f2f3b3e108b567d63c373f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c0e94bda4d9d8c5e35c57a034e12db005d2ce1da2d902483fe866182f268d54
MD5 c552b01275b239f6b34a53d59665b84a
BLAKE2b-256 0ca07f47da853bd67b4570e516273e6bb8567b36085a719ad3d2798337ecc055

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bc350adac58edc194bb24eee4c833cb4230410e9c4bad0def598921b86aa0084
MD5 7da8fbe31aceab8f642cc13eb534c0e5
BLAKE2b-256 258ee5b8ef03aeab148b5f10fc86989f4fc457dc7b8abcd789b0f0f7ce80b2de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c5de19cd0952b54de7a2d3afedb35593e54ff3e1c1582f466328f3df3d6c71b
MD5 ef30ff3f20fa9084ecea35b9933f24ae
BLAKE2b-256 f2a41a5c56d3d4333371055608690652621c02e687b80e8a5e2b05dd9ff63619

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 55c778f43108f67eee57e7f1017d0910c20cc52ebe364eeee230b4df49ffec6b
MD5 3550ca68911b946c16ca17f29de30f86
BLAKE2b-256 3c382c2d73dc895d8a28d0a20e95dd28724e5afc5ab3532f6095e8738a9aae49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cc807d0d754ebe07b0565d4bb1750ea2d6eb32b994c4be47eca01dfc6329670
MD5 c4ebf4440df418376429fdba62ffd1e6
BLAKE2b-256 3d811094c18be5536b5ef8ddba08729626db0b797abeb26430b32a7c4516b1dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ce96afd79b6d70b13723cee5c3d1d2c390904681821bf20f83bca37c858323bb
MD5 1a4111c160381236cb968db73dda5490
BLAKE2b-256 5110528afe72573bc8ae073ad7592e4ef7903cade2005bb1a88cff900e7ebd05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ac6f755e54751c94e3121a787ab951db3feffec294d76a4e2ed3e489288bb5b
MD5 495fad932e2a3ba4e60c4ca14fd20831
BLAKE2b-256 2bb9c423dbf384ec1faa86ad75b99ef26c9d36b04fa472f4fde020852e145854

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a12-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f05d952bcebf1ae2264a3b81178a77cf1fcd9b2f939e54bdf5276d939f62daa2
MD5 5171ae598c579553a904fda4435155dc
BLAKE2b-256 957b292cb0da12a2aef34d953be2efe7495e2d9be4a9affd9e43b785340f815a

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