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

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a15-cp314-cp314t-macosx_11_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a15-cp311-abi3-macosx_11_0_arm64.whl (6.2 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a15.tar.gz
Algorithm Hash digest
SHA256 2ccc9ffb286c5e73c2993b11a53dd0dfc45e589f00719b64ca76d9a099532198
MD5 b10668af30b1eaf581b34c6e4276d769
BLAKE2b-256 c5b0af8310139c0551d25014c1dc92e451e9ee0317282c41505b4f7e305e3206

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 d08804743fa942145fcc39c0402a513bc56d48bdee4c5c27c4c73cffd5e7b03f
MD5 ea3fa769e1c7bb3cd66cd0e533ec0728
BLAKE2b-256 2cc8f38f42fa5e87b0817284296e022108ba3d3675f4d94f65d1514680c4ac4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88357121c1f4cde8e5c297958c15478780608036dca75763322843c1dc16c362
MD5 30fcd7e47eb4e40268dff3d7d4a089e3
BLAKE2b-256 f9c5df7ec393174ea719241c711366e12a081f5e3935e19fe11bc25be8304fc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 347176c73fdac7776454727425d9cc4033634f5b7b09a15668f61319b61b06a0
MD5 1b6e68f8f0d470c0f36911d8b2609a5e
BLAKE2b-256 8360d7aa7c6635fd77982bf65226010040cb43ff217b8a9ca8dc28b597f2bd8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 118f6364e66ae7427911b27eae4e1179a64121f6d17384fbfa84cc3a594e602b
MD5 3d7cbf7199f711f06922d397d477099e
BLAKE2b-256 94f6cf426f30c42af2c871d44a45a0d7a5cb185906f5c5ad95de2b181890a262

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4a1810c1e6308603ec5a89dc52efa23fbdda0c86563d33c99aaa0e554296c894
MD5 e76e9ed42180cfa409272a6d2723a51f
BLAKE2b-256 040900a61f7767d8d02b78f2b99982cc8be12fb7967214cba1daa46780765244

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86fc7b037d6119d3a674d0d0c3aa9cfccc590e5e885db2992cab8fc7370f3785
MD5 b4eb32cfba39e87ad4c76d9c9ab0e3c5
BLAKE2b-256 bddd66b0495d993aa625f3809e7ee19cb7934e104a31fa527320ee420da8545a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 75aabffd7df7250a67b100a8a20ff2fc7eb917ae0309e6af4266b80c5b061163
MD5 1aba59140fab24734f8be720435eabc7
BLAKE2b-256 07785cd6e0d3dccc73b1cd0a8de449bd07b0fb504df2c3f20a5a834786af8242

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5cd7f48fdab32b02651d1fedab16a3c3248f314d909215fc897ff28fc79f2b50
MD5 a004d817d7c71d17488a358bde983cd1
BLAKE2b-256 b7078fd7f4c7d0854e7fa7e1308ff5564f0e61cb8adf29ae2c1d661c6bd990bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a15-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2b8a335ffc2096af903da65adf6a0b32a3673d937ced3c31750198312b6ef7eb
MD5 272332e63cda8f6ca58c228a7f131c4c
BLAKE2b-256 53aba86bd3531feaeb1681a4e34f7ce673bfcd24ef7182f43e89053c5b660f9d

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