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.0a17.tar.gz (250.7 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.0a17-cp314-cp314t-win_amd64.whl (6.4 MB view details)

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a17.tar.gz
Algorithm Hash digest
SHA256 aab7a1fc348495f2160a1b00bf3b0c933833849a681b48bd385ee8e8db13b437
MD5 adc023a5e2edde54ea5363e40e5bcf37
BLAKE2b-256 6413ccd44538e5fde722b96a5a6e27ae6bcd446042b5089b3c9992a158815927

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 6c6523af0bb5bb15ec18a38e371d6246b5226a8a362ca6c1a98fa4c5cd4b26f6
MD5 7bb399fc5b9e7fc6e74a6d0e2e503bcd
BLAKE2b-256 bb1e2cbb76e4ada83d1a371649dab6665fc6e71e9e345ce159b349ed9f444444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 495ae28f0650fb82fc57c0ff291d23205f3045559084ba8a700f6f2a768a2de5
MD5 01be7fe0129a1e6cda4d3480cabf58dc
BLAKE2b-256 aff8486e2a22f60a0bf1e747abe79a223449977d4ce0691cd4b0b114a109f685

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4435988a389e94f4052272516247b29da664ae7e32753959e15813dca2748a60
MD5 ec645b5c3fdbbc85165f50c91013f5e9
BLAKE2b-256 9938c52a9542f18545f5ca91bce252030ea2b24bbdac49398184f561a92a614a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f01af027cedca1ead0eac00e838056666ef19267658b9721b5c86b33fbbbd5b9
MD5 08e41a36108b09671a4b07ad7487ccb5
BLAKE2b-256 5d5ba2f65a0361a15b07d2a0178eb5e93148d67d3fc1b2de36491fdee445237e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2c75335506be350a01d94a5f3cac6f85aea551c6c0238b9697567cab6c972d98
MD5 0c5b413ecbd86b40da0331a430620427
BLAKE2b-256 1a6fd713a4c0fc6b06eaf76305eb5ceef576ed0ed97fb08f02839fd5dab27915

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3cbbac2b4793cb16699a65f73f35c24e664dc01711c3fe6c8c09a45b5dc004e1
MD5 9a2f0ef8f76ff623919117cfd4a512b1
BLAKE2b-256 119bbc4b42895f34fdca8c9e803bf34733d2154dec5d2a46034b36bac0cb5a51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 74c9397ed787fa2f6c3b056d2b3ca56816ca32a52e1b5373e96af6e49814f436
MD5 b39b1c74f5cc7942438b27823e43ce60
BLAKE2b-256 5a969f61b390a8982495624c69b2dca9dd64cfa4a74946adc5eaf27ff338441b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c55966dcc1bdd12281e1cf7528dc4764d3c333bcaf55aeea03b0e967a9e9a519
MD5 ddd1a381e871ae342c388a188321caff
BLAKE2b-256 ea27ac1cecd34ca866633f1acb83f9ee658cc599736b78c68f781fc0838a80e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a17-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 82c684e7adb0f31ccf31cecc3dd1b7e720c2da62006b1c1fb6b88d8e7471a993
MD5 9ebdbf2f6e2ab9358a300666f3b8b81a
BLAKE2b-256 b6975610c76970601d62e5a0d0b12f63bb2cdf9c3b68b1de6d4f7a2183427ea4

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