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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a10-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.0a10-cp311-abi3-manylinux_2_28_aarch64.whl (5.8 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a10-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.0a10-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.0a10-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.0a10.tar.gz.

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a10.tar.gz
Algorithm Hash digest
SHA256 4e1a692eb2bac4f353334ba1747f72a0dd9033802cbc3e3b25580dfb2da80b40
MD5 9c3dec800d07b0e83a834a56d34df1f6
BLAKE2b-256 f631237c6b9b41efd56ab5a5b03622a395452de5260c10244ad3374abb013834

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 27c27ec1f32d27ac4b33c00b67c488b45c31e177c51491cac4aa7e9b805231b1
MD5 64ad5c957ed276db4839a8e385c8459d
BLAKE2b-256 a9abc983abfcc1441f692840173a7432be96fa4432e5108a61e7b094014bb886

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be6e2a0c4b3a54b357c49c58bf9b8c4c6be895b946918a958315cf583eb0bb0a
MD5 383a410d7685b5150392193928048ecf
BLAKE2b-256 6c4b3af3c0d029acbecb6468ad40ee28345e6ad3fe1a40953edcbf1f7129dbda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6fcc7a7e4c364d7e20f8d4f829a5ec2511021eddadbe9bffefba617512d08bde
MD5 04fec9097a741ea36ea8b6a2e453d43f
BLAKE2b-256 412fe8c4ff4410a2d48074a360fe1bc63d2412ab9f4547058edb76fcc21de072

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8d3907612c5d52e9a32d366b302ec6d68add4b87ea081b9beb1b858b283d0356
MD5 157160003811703dbca9e9f7f93d90a8
BLAKE2b-256 888f75203d8f24d29bfb9fcc3df6560767874a840741d6e63c3a58c06a26f31b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 022850fb034b7b216acce50f4ae15c8c928b7514b694b7f98f5cd448b7b0268d
MD5 f09f2f57e9babc46962f0043debbb00e
BLAKE2b-256 a70feca65f3203a2fde915f39e13aee825a493c178b238b6535d0999789074b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36f057e969488a251db6b2981071a8b84b8fa83ac28bacb3563d528c17137ac4
MD5 5b14f2fb065067d7384c076f1867866a
BLAKE2b-256 dbfab0bbd5caa35fbdd66b6eceb03bc943f6ba602703c383c816ba3de850bda3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8a18d214ae804d8b8a9a77a988dc8f04d042d3dac4cc6c9ed8d556152b191927
MD5 e41d477bd49890b0738e0c1022169a2e
BLAKE2b-256 ccbb74a3d46f104bda195f5fa54dfbb977653ef09ff29d6b902ddfacc3f78252

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 523d99a83d121458011e07280c22c2a8d305b51b24e65c13b3ced774377727f6
MD5 c16588f07295cb96cf0106fd1ece27c9
BLAKE2b-256 e83649d80f263019b4eff2081da0277ff1abc28e1fc8cb5f88e8cc8a577ed78f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a10-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ec20ba6cf7023dc8fcee0eecb02c89cba04c6b8ebbab2a2a5692a2619ccfa007
MD5 e6ad049dd268c9839f2e4f7d3932199e
BLAKE2b-256 1fbacdd026e7f88a7dedcc8cd703bc4a3f512517ec500dd4d75c57e9b0c68cc8

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