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.0a30.tar.gz (285.7 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.0a30-cp314-cp314t-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a30-cp314-cp314t-manylinux_2_28_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a30-cp314-cp314t-manylinux_2_28_aarch64.whl (6.2 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a30-cp314-cp314t-macosx_11_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a30-cp311-abi3-win_amd64.whl (6.5 MB view details)

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a30-cp311-abi3-macosx_11_0_arm64.whl (6.4 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a30-cp311-abi3-macosx_10_12_x86_64.whl (6.2 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a30.tar.gz
Algorithm Hash digest
SHA256 207d173eff62db2c2cb589a45fd7474a2bf2adb109e9a13721f4e00497da0eb3
MD5 a8b13e46a5b1747462f2a30e52557db9
BLAKE2b-256 53fcc2eac6f1f83bfa71fbc0abead0d1828c7e408f5dde340e74273345f722ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 13472a4cd24b1ac92c75d9474a22d0ff3f17cb717fe54f553cb629eea6cf3886
MD5 c56b521fb813a6b46e4bcf33a73878f2
BLAKE2b-256 e0f5d9cd0dad949f159b3f2da186e4f2a6ad18e5172c3beaca9f4c97f03b9d44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 49c8ad49fa8755e47f65fc20715ce6e6046cb00cc8d7912b9c2b64c1c03c6dc7
MD5 a520187059cde7809526edf9879c9d97
BLAKE2b-256 ca16efacad54757ed7c4671344c3dd683594bd0a9abf281e874a50aa24c7d3cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6b6843cab08f5d0f9f415f566b0204477d23eb3d977e5589bcfa761a806d3d6d
MD5 b92ee305486801041451480208e72d68
BLAKE2b-256 13557ed5a42025e2332ae0799a8e9b3495f895fa57c36c2cea57e22ce692b8ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34587a74426b78deeacf9c68f436dbd15f086dbbe613f582fcc4e8f1303ffa1e
MD5 0a5bcdfa3644f28c95af45191777f632
BLAKE2b-256 3ba7db44a64c2c1d4b3be998ebb01c8fa7859ef977414a83f4b9e12da8dcfd7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c8bac048f74bcdc4c67ca38b67427c50b078cc81668f3cf3aa49e19c61fbbeaf
MD5 76dea78b180c3171ce94423947833098
BLAKE2b-256 879d7efa42b043beda3f1863352290165e253e7ea4198574f0585212beb28306

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dcaba433994bcd76ce28a0e252fdd7c766a7537de213a4de7ca34c44d5aa2a7b
MD5 43ba3d961f855e1468658a6639be5c7e
BLAKE2b-256 d563effc5ff9e63a5dd54801e99c55a46584b6482d06f49043407f044a9f6940

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 56eb660d74ad2f3c318bb602cae88eca671e3aa6f951b4539da4a3c32972fdd0
MD5 825665d5953fc35d207791d9c9178a7a
BLAKE2b-256 d4be818aec6aed9f70cd200be4a4f9683e4c27694e788cdf2e14ffc985566334

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a9c4c95760da2ce7636568f6362644d4c0a7bcb9480d13935c62e26153171f0
MD5 e1d324e052c0335de3783c7188aabd2c
BLAKE2b-256 0daf07f93e84a9756168ecbccb1c99edc6c217c5c6c4dfa89332483c7cfe23b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a30-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b3be823e05bc65a48fc51593f56e6f0b3e0fbb9312e71a5685076d4dd9c4ed4e
MD5 1fa0ece77b92aaada6623440f1874683
BLAKE2b-256 bbbc5c368f169b19879aedbb9d25898885a12c68fc1e0528ea66c13116c375c1

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