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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a11.tar.gz
Algorithm Hash digest
SHA256 f499fe5e2cd97e99f2da47f3f53bd73b212dd2cf9a9b0073ede4d93b29618530
MD5 e535a9501f0cd4c7238fda7c2b7ef88a
BLAKE2b-256 5d4989927c1fb94a57dae2c2dd88c59f326880860e534a36da5d3c42ab1fd099

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 f90a4e6b02636d55d64ecacb7fc6ae8024e60ef601604722c243afa19735e4e6
MD5 3e87614dce949e4c10e92516e7f0c372
BLAKE2b-256 7b4dbae57c182833ab4b2d9dfac1c69cf2d47360ff28b867dfbf6d94e101bc2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aa3f6848bbb332b3c1c46a52e90cfc6ff70160bf2f63786da6d839b8e0d40f4
MD5 cdc039d2cce5f0a3c0003a7b5733a773
BLAKE2b-256 8e39c85fbdab141e9be8ba04e5448d38d8b9dfb84ed4d963d0dbf29856098967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 df23ef62bab3d0a1949a9d2a52ec1fde4b4bbaef9da05a59e965ea60b67d16b0
MD5 9a78485472917d28b46fc5fcb65d353f
BLAKE2b-256 095526e09aa98a09a082e4fc4816976ea29cf664cd2ba3f8e7ebd8ed45f94d74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 15c86fc32f11690a2979b02de5fdeff0c7f7bd72693a7662312ebbea5f2f120a
MD5 8b5553c7f3a70de252d0e6ee89cad28f
BLAKE2b-256 42f5d93b4efc02650b7af86ca41f1779c26c10af4b343fa65ea6ed7258c6627c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fab6ddb26dd1a943b5cd9199574c830802b4f5fc24d1b0de4bb361156ca51fb8
MD5 98ec244f19b5f6789ff394a021f9adf3
BLAKE2b-256 8f84d43ca8407251f522b84a69f5f7585f48a563234f3d15ef6aa0d5db66b921

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc1aaa8d2aade068d8b8cc74cd37f87c2e12664c22cf89752740b3e3078c61d6
MD5 3b315852ead608c088177f212806c191
BLAKE2b-256 65aa2bd6dc70213b7275332aaea69e4a4e951613593fa58623b0ee20e43f05e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4b2a5a1994a813c5002ef86a01f1fc1035e45e4bcb8d9db3c6166d04e4b99425
MD5 92acc68e507e7914be09cb9c240a1bc7
BLAKE2b-256 ce9ac2bd2603a773f09f3655620225ad8877e626ddc125db4e7b6c614354fbe3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 801541e9ee5a7c30129c11bc97c9b9fbc95f3d8968815af0aac00db27490f416
MD5 c48a8e8146f838a6eeb09172e016b954
BLAKE2b-256 d83251a0dfea22ab3ee35d24c5d8e949e4cc6b806645a3506dd02e466aa235fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a11-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 01bded6f788f02c0526ee090545d73b641b194a438d7295c9342e7a1cf324d1f
MD5 b4e533699f82052c35139d0bfda660f0
BLAKE2b-256 d16533bfb6e4d23d520f516271bc48965c6a0668425e1dbda6bc57e6fad586f2

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