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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a20.tar.gz
Algorithm Hash digest
SHA256 dc6b9d186d14086f4aefdb48a439f2f6fb4fa9cb6ebcc652f04b294a5cd577b0
MD5 a985640db40eae754ba23d919eba88a3
BLAKE2b-256 98cc7ed5dc518148837964a05cbda2e1bcca3070e4429fa20a1dd79c9e880400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 07b20a77af34f2d054f62c2cbcd410077a7a32d02c2cf7a7a89d88a6536ad442
MD5 01eb0c25014993006d1e9702964dc781
BLAKE2b-256 1d8a7184bcc7651173a00e6ebf58043e86a07b94640253c8fe01191fd00ab725

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 735a96590869a55bc0c9ddcddf93d84a4edeab0c506f9b3347976ad893c2eb0d
MD5 90cf6e661de701ab3739c8685910550d
BLAKE2b-256 f4c2e6ec32471535b295f88e539c069ab58a9c9cfeddb7f5a933578b9a2d5521

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 43fbb7369feac4225dfd675b86596a52f30b10c73c1043f6688b94260b112f83
MD5 0e5d5cabb2af5b94a60395b26bbffdec
BLAKE2b-256 de63318d056f038ead3fe5961dd3c5e2d85aca5852acaf6a784816e6c6ce2215

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 00a95d55dceb1f66b0513b266e7685cb6e0de592350b40ac8fdedf9332b7bfba
MD5 a4252ccf540eb262caba319de6561b68
BLAKE2b-256 d937f3da937d2e53db48be13783c31acad34e51dd557a9340d90f7be2c04b193

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6422fc2b4d7e4d0f1d68392afc8af1adb9c0a2734900a9a0b710abce6ae3802b
MD5 d037e3c23752a05e67fd09e2e1a62491
BLAKE2b-256 ddbc515163f5584db96c95cb70dab4bfc1bb55dbffb18449b4dd685b10851975

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af98a797d873a74b8f42cf1dac80d59d779c12d29faf42ca9f3027891c7cc9cf
MD5 ce1cf60d4d1734185343c47fc3ef4f94
BLAKE2b-256 5e1530a14a4b2bd78a176e4e3c11073efd99a99bdf5eb949af4ec274420d4cad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6b44e26f17672df747fee61636a482d1475949739dd7926ace4192304b417c01
MD5 1e4de784518321346f428828576f9007
BLAKE2b-256 e8fa13dedfd7dbf2809675683f58b5c9c5ddd545561fd163afb16b869e6f617a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 993d3e0cd674190aceded2240640efd6c3fce79c224bd4d73d7be46dd36aec4f
MD5 33b391d96a08cb8e017d84d6e30124a9
BLAKE2b-256 5c9a30594077b3ebabd7258a23a6c50dd1d861d7982e40a66719fafdeb509d3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a20-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9baa1c00cb031ddf0ff2f577aac5ca62213c458b8878e21be2321f2d81e76f92
MD5 5c3d2525dbfb6f887db5be82b1ea6ea6
BLAKE2b-256 462d974f0709d6da66ec90a0cc28360698023e1611d2a1af18f4573ed3e2f3d3

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