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.0a46.tar.gz (338.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.0a46-cp314-cp314t-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a46-cp314-cp314t-manylinux_2_28_x86_64.whl (6.6 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a46-cp314-cp314t-manylinux_2_28_aarch64.whl (6.4 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a46-cp314-cp314t-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a46-cp311-abi3-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a46-cp311-abi3-manylinux_2_28_x86_64.whl (6.6 MB view details)

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

cocoindex-1.0.0a46-cp311-abi3-manylinux_2_28_aarch64.whl (6.4 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a46-cp311-abi3-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a46-cp311-abi3-macosx_10_12_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a46.tar.gz
Algorithm Hash digest
SHA256 d37734d136efb4795ffd239d6ce65700b6c2ec6db3aa506cdb6ba3f770b5d1da
MD5 d62e4c8c3ee19f070212b69ce784a966
BLAKE2b-256 00493630e46606b98213ae73c692a584aec375c470e91fa615d46e701610c39f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 751af83c4ab85d5ac01530894cbfbc1cc314c35fd6ec921c5de408909b33af11
MD5 a75975523761c907860b10299d31dafc
BLAKE2b-256 8cfdf6d899ba8a7b8439745bd189d4e716e7b8c6a4ab79f856504acc997d7294

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a46-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aa2640616370f5ec4f20ef93d0534c958c35af7f686a65e22b537e927bcc2458
MD5 b881ac2e63053f694a435ad3b8b32149
BLAKE2b-256 a00a86187d228258dc4b9de210f68daa0734ce5c4c41ae227cfbde4268f380e1

See more details on using hashes here.

File details

Details for the file cocoindex-1.0.0a46-cp314-cp314t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a4f80d4836eb2329b93c7265ca0741d79edb3f60b0bb26b7086115590fec3927
MD5 3d942d52d6a68ea859ff163513145a47
BLAKE2b-256 82aacee61bf64d6b439d41f14e189a6a0899be19f0ed3e47ce92d60ece371c11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d002963fd61b51f57cc70cffeb93a08afc1f583ee7de82e43fccec6d0bd3637
MD5 97ac5a5186ef2c25fab5a109bb8c9159
BLAKE2b-256 f18e619dc5bbb58a4849b588be96818c434c4174de2ae77418d976759068af9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0595360c3bdbb4d6faa29afde7d7c8c0e17dad8dd8fdd072efa22d867cb16634
MD5 a81539c67222935275a00431a664d274
BLAKE2b-256 ecbd9dc8f6e3488a58cca866737dce80c8fa5fc4dcc8510f5e67c12a3a3476b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b83ffe351ec331877167dea24ade1d3b11b730cb268e14e38f9571f0e965ddd4
MD5 678323be4df28ca31b66114c468430a5
BLAKE2b-256 199b278997dafb1e58b58edea1115eabc2498570fa8e0d32210e4549c016cf56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fdccb45e98a8eb60e1100ba57f7783feff5ae4aff320d1e75ecbda62be37efb6
MD5 eeeddd816962b03ebb21e8eb12e727e1
BLAKE2b-256 a3707a18ffa5787061027ce3e7ed6cc30b406de1190e6add69317f99beba39b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b66b00f7eac184948d7201c4fec4fd9ac559796ad7649b3e73f1526ed9467e6a
MD5 0c17373011b97150d9d939cbc31c908f
BLAKE2b-256 bd93bbf72c8508871a523d53592e4706abb460378c97feee92209414db99036e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a46-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 104d1c58cb2753ce02be8d9a6b465ef079a9bceac76845dcc5e33eb31d335c6e
MD5 70e04a5f98729055f6f42755a4b4b000
BLAKE2b-256 c2dd330fb06c88cca2736f6897f54cb0eb480029e951aee060dc0b9e4bcbcefe

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