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.0a9.tar.gz (212.4 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.0a9-cp311-abi3-win_amd64.whl (5.9 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a9-cp311-abi3-manylinux_2_28_x86_64.whl (5.9 MB view details)

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

cocoindex-1.0.0a9-cp311-abi3-manylinux_2_28_aarch64.whl (5.7 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a9-cp311-abi3-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a9-cp311-abi3-macosx_10_12_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a9.tar.gz
Algorithm Hash digest
SHA256 d6f679ab8d94634d36827ea40af09de7b28dae0250cff80d94ee83e93e4280f5
MD5 b497b59c4269bbb47ca379412b947609
BLAKE2b-256 b3ab35b3b2210f01598381a4dca529947c44768afe9712702f1ba17a7326c7ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a9-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a8a5e04b779ad1b6e4c889798d59bdd5e99bda0160c6e4445bf69dfe24617f83
MD5 777be6b32f43195ddedeae06cf0be07c
BLAKE2b-256 d4606a911d67a0de0e521dbe68838f66e0ea6fbf9c7d7964c2419c68a63635a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a9-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c02ea1d0ba0f4def9e8fd4deccdcc2cfdfca64956882842a318cfd9f4bff9740
MD5 8a8ad19ab3b7e71c8eeebf083b28afb3
BLAKE2b-256 aac9910d1f448f1a843d8e8a82f5537758d35010792e15acb08a971b3a254d56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a9-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 47025545e13e0a7a7cbd1b8a991b3b1bb346055b78ba21dad06ed0122446a54a
MD5 050394700713b2067e5fede4d8cdcc4e
BLAKE2b-256 549a9e7a9752fc8f13b5e1864310b4c6fc0e5c42b5ff503f36b4c3da9267c0ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a9-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6c30ecd3647d0ca96e539020998b7ed631b95be4b3278428fcaf587020dda07
MD5 17ae1be6e394a31d405df47e789fbe42
BLAKE2b-256 6552d0498eb7805c2c42b2172d2b98861ae2d09f60d1a24a2a84d66e5e7dc277

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a9-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 147a94f67b041c3f82abebb5cdfa3f3e1fbbb22816b24c4e0e17bd3cd94b85af
MD5 bbbbc8fc1488e85f2d899b13dd9ad307
BLAKE2b-256 c926422c26d6ebd7f75d617ceb4455dd2d0cc82a7931b43ce9ffeb1a01c202e7

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