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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a16.tar.gz
Algorithm Hash digest
SHA256 2d898305e22d0f1c692d1aef90c624b2bc0905781138fde598d80bf1e70d6508
MD5 e3a750a4c765ff18955e581399df50b3
BLAKE2b-256 7a6d306d322d76f460e8a5a29ecdc56bc69afced6f07a315bc823c620dd1b299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 9de6cbfa151a315c966fcdbc41e884508e3f703236caef1e8f5070efac1f90d7
MD5 9944bc763b60bae57a86d54a068462eb
BLAKE2b-256 9cab13ef1160291278c850125c7fcab1ca5caa103e110c3f906fb7f355a88c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ced697110c9ec46d24ed9b1baddf2e9bdd10332993db4f5d8c2c95793b55e5f2
MD5 c129505546b7609fd09c30dbb29c2e95
BLAKE2b-256 6b00342d84c9612bc7547f48692c26f32dded0af60422548fcaba3d5219b3fb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1216754cba6890904c4a715e6641334c47f4667011c49b0637a54a906c29c5f0
MD5 abba1544584f6d3481f661113df67e96
BLAKE2b-256 ff4860244857e277884de02c86f49a39f9fdfa933f7d572a571304a770c013fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f9dc3e71b98e91c7c9c14fb6ece6f7f0eca5711f8db6319935ae95142cd677c
MD5 c5ba67dfdb40903c2e2a3f44f912000b
BLAKE2b-256 2fca85d78e67ec82073fdd45818cdc0d5d915ae34ffd19bc727a11389542da2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f8bc606543fe64c4bebc76fbfce6c10fc385268ae1a54ebd33a785472701ec97
MD5 d0e25f47e36ea3fd649322630b0e15d9
BLAKE2b-256 95b5f4b37edae27e2c6d7e85ed0556f82b769340ade3500565fd175f8da0da4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 710ddabadc68909b6a11d65b99732f97f825adab5a536d8176e2612818202a2a
MD5 e6eb99a40afc133d67b772784ccf5aa4
BLAKE2b-256 6fdcd8b43ae8d2994f55189eb56a5dd1d6f16d6bbfff358d2f57ae6f88b8f639

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bba1afb1fb240529e05cb570b11dc4d31861bf13605f3c7f48034894b24259e1
MD5 564106691eaa9e55ed29ed9ca331f009
BLAKE2b-256 409d18f8e380a378dd10455267051806effb63f13a416a1d6c1ae432ce94994b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 abe86aedafffdbb2a2553f53bad84109b6e84504b5b86e4eb82027457efa8077
MD5 c2e761b89208edb620af7d39c682797e
BLAKE2b-256 cdade2348c5842fe5b16fd8a35dc6b4d6215cf9a7c2a7e7466b17bd1c542f453

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a16-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 60cfea2dfac6df5e4f961b3167cce748a030b78fc8e006fefd5c1d24387a5d4a
MD5 d703c9baedcd415d3b1a228fe14b3c8f
BLAKE2b-256 6f713545724c3ace9638e930d6e73ac92da27113619134a4291c512b8bf8ee1a

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