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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a18.tar.gz
Algorithm Hash digest
SHA256 ce4f6c06258b52f6433c3701e643f6da09db28f08798e16ea85f3a607d8817bf
MD5 6373fcd9cfb5b336aa6c9771b625a973
BLAKE2b-256 bcacef54c660b52d4d65e98b1695930526ffdcc4225cf1a9a85f8a297f2bdc41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 91c9ed1a373b74b1242ef904c48ee63b904cfc5e9fd3b86a83cb42059e263265
MD5 72c5877d67b1276bbf93826b5ee3d3ad
BLAKE2b-256 5f9bda164a07d5c679d9395d5fbb3fd380ffb3fa94c64aee495761eda9426492

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f39ba8ca77ea9e5b68926c9eb062eeb89425c742818229c1ee2ee3701265dddd
MD5 93d1d00cb77337f6b377686d492afa62
BLAKE2b-256 e6164eab041584763ff97e9d77d9f18bec6682c9df0fc72803efe45c6bab1fcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e036c44ff0a38be4866706d9eb5bba79477da83af16e079c424cebb0358d0536
MD5 9a857ed07eb7ef5f1d86151b3fc1bed7
BLAKE2b-256 56ff172f0bc777fcc04a9776e4d8359dfd1a8fbad856851ef43d4edad8555199

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c4bcb05e7d4cb809237be5270796539ea785aa4c7bb3913abeaf11a1617ee1d
MD5 2c29294e6269df78e7aae6fea1a27cab
BLAKE2b-256 f589a4c122aab2d918eca3e7eaa4f332cb38b38339db4e817c54dae98b8d41c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c4373e2a712da1e68ade0cf300ea2855619e8c9fecfc9c73e6b87666ee994ca7
MD5 3a8e9b020a44f2a262bacd912f87ea73
BLAKE2b-256 0a87252b54062884c095ec0bf796b398d2b2c01f07bfefa6a2e417282b35fa89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c71dbe46b2f4bf5d15240e2f3fe6b3805937a766296e0f97a2a28198fab44621
MD5 0a4400ace41588d32bcb51e67f19691f
BLAKE2b-256 5daede6c515afdccbfa05eea3548781689a4eb3bf2767e79c501613ccdd5f828

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8106e2d3e5bb35442373828f66f7c3fa32f0bfc4e2b580b17fa7a7127352fcc2
MD5 002b45899a9bd0caa96889cc819818a4
BLAKE2b-256 598c25c6b05c8024512df7ace32633bb9034291a08c10b26f63943bcb1b26d80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a0e77254d5bb893dc0e3e0314b32980b19c1fd6dc9e3aae1506dddbf2b000781
MD5 c7bde165b94f2b37bf1b58f77e5ec09b
BLAKE2b-256 0ce0fcd1dadf05dff55330934bda75ddd43d27803567eac39f7fc387843b2cba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a18-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f59550fc8360109684342df564953bba50a48a12de2fc1948c0eff2dfd5e25e9
MD5 7bade35d22cbf8efc34ba0345878053a
BLAKE2b-256 7e4e95bfef1df8d5c375a44e53391e513f41d8432e6d3efdf418d3b4daacad87

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