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.0a44.tar.gz (331.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.0a44-cp314-cp314t-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a44-cp314-cp314t-manylinux_2_28_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a44-cp314-cp314t-manylinux_2_28_aarch64.whl (6.4 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a44-cp314-cp314t-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a44-cp311-abi3-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a44-cp311-abi3-manylinux_2_28_x86_64.whl (6.6 MB view details)

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

cocoindex-1.0.0a44-cp311-abi3-manylinux_2_28_aarch64.whl (6.4 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a44-cp311-abi3-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a44-cp311-abi3-macosx_10_12_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a44.tar.gz
Algorithm Hash digest
SHA256 992f820658638fe7970fbc542ae95e03bd1b0197714fd932a2ca8611196d7e98
MD5 2cefe246b46b8fe5bbd8ea4d75dda6ec
BLAKE2b-256 572cb5ba52c1f0db5e77e2389416c5b332771b24c1a21b264170078d42c87733

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 7e90ccdccb0b96e9659775e04401c830c1491f3f0106cd2cb97f4d6c2a05b098
MD5 19a6060ae738bda2909a606debdc6e3e
BLAKE2b-256 449e84f24b7e0f214d3d6ab49e8cf208689d0924bbd7aa7b3633dbef845018c2

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a44-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 956492bf7ed82e26c7be3e9b4c8af937e992cbd3b5cf453159a19b3dcc3bae1b
MD5 8a3e57d3be453e7457e79a038eb07830
BLAKE2b-256 3741e5c77f3aecf76f9b282e9ab94570b45770734f5967cf9f97133f2e6b0cf2

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a44-cp314-cp314t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e90b8f793392c5c2355e7585670cd224946b65d868fd77d386c4ecbf0a071099
MD5 e0633597e41477d39005aa6a83f5d4be
BLAKE2b-256 5266f5eeff3026c1d018e48d07bcc03ebbbe081809e85039eae234e083b561ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd52c254dd582314db505e8778a74fe05441d9cce485425532a213928a3d45ea
MD5 a85249610b06030d65d831abe6add97f
BLAKE2b-256 255c5e58db06fc06cc1c12d1a1b38aab093c6e1132cf564628088478ee0b70c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9ea6ca409e92a47d9101b3e4e643a53ba82898735aa968e58cdd90ea5355ef7d
MD5 30c25bb079d777063fd1a8f00de7c0be
BLAKE2b-256 37420ae6b8c898836ec47be4e543728f985abb17f1759ae581000d0800ab9428

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b5678c2b45da3a32376600e842ac2728911be4007996e92cec5439aeb4205793
MD5 e6bdd98335c90a2efa1777277c6c3b90
BLAKE2b-256 cb33f58b0a35a6eb8497bc69a2492d488b0d8369f7401496d8a89dedaa20f84d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7d85c34c9a428d71c1a2079b723314b57ea3ed771b6f1d43bf5a8a083a37be4b
MD5 cb2944dab4c19c589103b064b328fef8
BLAKE2b-256 a9ac623882b340f5eadeb64160e40b29823cac918b2b1bd3bbbc998ea055408b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3eff9fc816582076a7d3780ccca2dff7e639a326b90b2dd93260334161f933b8
MD5 d88f534ba409a405305d5122774034dd
BLAKE2b-256 34d458d6745d8fc894f189c6b49d4c5c665ea5d22e6db4bed9d1d9502371781e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a44-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 313bde7bc13c3d8e8b67020993380683cfc41244e787236b88b9aef812dd4b57
MD5 22cd7d0fb1eaf830e928fdcd8e0b4085
BLAKE2b-256 c5c19e484b8963639a3c7bc70fea18809c0fe4e00070fcf928493d545cfa13aa

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