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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a22-cp311-abi3-manylinux_2_28_x86_64.whl (6.3 MB view details)

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

cocoindex-1.0.0a22-cp311-abi3-manylinux_2_28_aarch64.whl (6.1 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a22.tar.gz
Algorithm Hash digest
SHA256 84c24cfc8e150baeae7e0e00b04e18e8316919321b38fdddfb85e3da7360bb3d
MD5 950d4baee39aba01d2d2f1c46ae44c8a
BLAKE2b-256 99dbf5280064af7b1b6d1a886982096592203998cb1de7f4f30396de13a5382f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 76a699985362a76963bba6feac60e5c89e1bb0e7204322520b0e55e40d1c12f1
MD5 935c74967765fc33cd14aaaad5db3997
BLAKE2b-256 f9338bfc734e3e0e65a3f9681c95175548ad1058c61c685e6ead6b6af26505ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2550eac5132aa52c4ae802e6ce8cae99414e2881e7364fe25af5f983b7d9866f
MD5 150a2b4e73e855db37d8973a5abde898
BLAKE2b-256 1d78bad3890bfb3f179a4277234ff487b463245b8edf8c3b37b3af6fa47ef862

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 62b66f67ae75dd84e757238ba7fba124c0ba59ed9ccd555977b30ff1f85f0dab
MD5 7ff95872fc795487e33e5a936ce17d37
BLAKE2b-256 f2de2bf7afaeb35554817f81d3451e042b9e63b2ec4426310f5f07ac7baa0b31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 23e80979532ee176d49c67f5e25eaece6ff5a078481a0aacd7bc65fadb091e16
MD5 c3db9c1888a2de314139b57f09527927
BLAKE2b-256 41d520213fca3e5a9001cce5431662e001c83fcf5636569d65a4c1e59d510051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3a803378ee12066cf9ae5902f46888f9da6a15b7f372d8a6e81219078199ca6b
MD5 a598b52b941633a2a57fae859e76e59a
BLAKE2b-256 38874ad91a569481358f9269f8ab1016a8f46fb98e4542946a6ad9eb5f6fe634

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97d595b4abe031a55c924f88b5224d9780b7e78e203b3ee94363a8421db4e91c
MD5 24bb69e7b48c0dfdacf46d507981f434
BLAKE2b-256 105d2263346b5ebf42c83582bc6f8b0f85a5e8bc810a201fff9f1433f7f2eb21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4fb3402ba487ef5097611842ed37571a547737d396cdbd7da8d88d96415e0ec5
MD5 17e4ad3230722d9029179ddb17cb2690
BLAKE2b-256 e8a9d4c4a9bcd901a0a02817b965ce259f3177815bc79f54a98348ca847936bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e706e77ed332dbb0babfdb552b8cf24144d5aea3ccc304a8b85746f2010d7c1
MD5 b5a477acd07cea99ab1377a86b11cc6c
BLAKE2b-256 30026ae527ac17b2371f3cd046658be6de5c557b1242251ba49885fe6db7bad9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a22-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 91253affc4059b6cbc749b303d012059dbf739aa7a4227448baa3b1f3d1075e7
MD5 af9a039c2bc3043dd1e193004e3bb513
BLAKE2b-256 cf5a1b30a80ef67374b256b5cb9cd64b2213c3f9be1edd2bdb5c6513b3052c04

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