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.0a14.tar.gz (231.4 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.0a14-cp314-cp314t-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a14-cp314-cp314t-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a14-cp311-abi3-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a14-cp311-abi3-manylinux_2_28_x86_64.whl (6.1 MB view details)

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

cocoindex-1.0.0a14-cp311-abi3-manylinux_2_28_aarch64.whl (5.9 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a14-cp311-abi3-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a14-cp311-abi3-macosx_10_12_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

cocoindex-1.0.0a14-cp310-cp310-manylinux_2_28_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a14-cp310-cp310-manylinux_2_28_aarch64.whl (5.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a14.tar.gz
Algorithm Hash digest
SHA256 99312b765f40a1c0816f04f0edab0492c383a2e403dfd0c624835ea7e395e909
MD5 ae0f1cc9f9850f84d0c3d0f080879599
BLAKE2b-256 ca2f49b7032f7a0e2bb7d48ac8943c2803db65baa21d498440ec409af617cb5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 1bc9aa9d869b2a0f32237f5aa53e0adb2c230bef6a05aac3072c8fcf9e0425c0
MD5 771167d11994959e0941c7383922c9bb
BLAKE2b-256 30fb686da9c22fa930b9d9daaeeab0b81bb7f9d6272fd465bc1aeab2a3918673

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fe1034385a90bb8af73a928e0a43c33635e5b150cecc6e1430dd4af323b8537
MD5 c2c8d334a3f62c97da038bfe6e14be98
BLAKE2b-256 1fdddbf5e75f4c1eceab232eedb95aa7daf764c89e063beb76db815537045cae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 578db1330c03733e6c19fab125062538d0e65027053034aed51572c1ff35bc80
MD5 17ceb5412b9b11efd34496dc97bcd081
BLAKE2b-256 d76cf4694ab8b4074322141b228dfdbab1ed8db5280df5d71de3d89140b88faf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a337bcd183cf642d0ea3b0ffdcaa2dc1e2801bfd966ee4a43f11afdddf69ca43
MD5 37624c65db00bf8bac04c7c0dd613f13
BLAKE2b-256 ef3f5e714ebb0c43c630579067a0a72f7a33ba7eaec29cafec4fc88c4996327e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0ca99e4e5a64b5dce010e40c829e5f9e6af2e51fac552f6fd4a0af7cc419fda5
MD5 0413c5db6a5e2eef04d0e4f3080e3098
BLAKE2b-256 a6da6941f55ea76717f6bdebfce6d5b1b2a07d1b046506dc593fc7fb7780bbcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 366c488173a04e5658aac98f1a3153b0086e3b0af28a4e42333901beee0c1145
MD5 ee7fffd0f404f65fd825dba589b60c32
BLAKE2b-256 798e4d52c31ce8e056bda6804d891f93690bd5e32f3565675531cc413c280887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 30196cda7f449aed2e553fb69d4bad8e0fc3b16fd3a4e1c3ad79381bc2b8dd88
MD5 041f76b2ba8c0d3ea917a351fc087a98
BLAKE2b-256 d4a4e347f4d04ab0f32980ce17459d84b092759a4cb95dd8c08b244ce7a52f0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a843c93e32a92a67fb4d712ff8ba3bd85b6f2c28a74b8e0cd3a224033a7e8299
MD5 638643a408bf54f80cda8388d04f0c20
BLAKE2b-256 918f746e553b69414b9807c75a3767ba1890ae9d25cb7b734742d57b5ef5d22f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a14-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8ed7512d1146f6bf1cb1f7f57f411bb2d5a8cf55bf0f8ad0c3c33ba5209b3a03
MD5 4bf5737361decb6ef01c1c61196374c5
BLAKE2b-256 7dd8b836827c6c582f823f153dcfa8254066e2848319581f0a378a0b790170df

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