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

Uploaded CPython 3.14tWindows x86-64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

Uploaded CPython 3.11+macOS 10.12+ x86-64

cocoindex-1.0.0a25-cp310-cp310-manylinux_2_28_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a25.tar.gz
Algorithm Hash digest
SHA256 5edff1f32ce105c99ca238d4fd428c1c69a4ce126fc0a56ef4faedbd8cc85ccd
MD5 646d89f2f6c183ae0c42ee2d77aba67a
BLAKE2b-256 063ab2d0bee5aa4d29ae2972d481fa7102eb632d53c45a9e7978aadb0498093d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a25-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 945f9f7cb57189c7602b496e8f77c6a4b1d8a20fba80cc7193a07cc2cea3dfce
MD5 728d93ed4236eb0078567150b8a86b46
BLAKE2b-256 7f9c7ce995947b0cb7549c88df7f2928eb2919b5b11868300e36357dc9d94929

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a25-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f2ce5f0a0d116f6e6663546b959da3b179c6beac18d6645770ccf1461a524f60
MD5 c11af6f4dc2af67e007251687d9fcc55
BLAKE2b-256 4dac37bb70ae9f59463799fec38064fc06e264133fae355327d180bffaf1320f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a25-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dfd4d436eac98d0f4c5e5cce83816e29710c3b858ad1be2593dbaf082805e027
MD5 1bc808455a373484e51548e43bb376cb
BLAKE2b-256 7a9ebaa2c61e0ef7fe3cc2e8ea2b35b9cf0814ab72ced2323706d6cacc24d21a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a25-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c66f1b0d19a35f8186c5e84f755d0d0aa3bcced22dd22bea5a518de9b17a2c28
MD5 28401e11f3c7dbefc12a29013927cf60
BLAKE2b-256 152e7c410a7bb8a8b8db2e5c72698f41ed4082a19f6b118156e93aa76cb8e932

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a25-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 241533541b68140873f32a5c09b190b43e51201b28e166a050f712df9ec6bddc
MD5 13d977c3dc38d31d817d56d9e4e19bc1
BLAKE2b-256 72b8907f4e29d2e1809698861af201017febb40fb59105f27e6031c496a52fe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a25-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a6b5bbe57b29813a5a43279634aee6ec91176c91557f1573f30f74be72c81681
MD5 d0f70a8c3b3d941278a9205b16b0de01
BLAKE2b-256 4ee6f1c4aeb4d596f8029ef034aa2052e8ffd499776425045b84696c47135d11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a25-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f382f5eba7b4dde1d7e3029351613e82357e3682a9b8c1227977f2b326d746a3
MD5 1829ae252b2343be1f11fd5d2c73a4a8
BLAKE2b-256 252dbad989da6d221d71ea6cf0ec233569d1d32a09fce4ce3d5eff2d4fe0c72a

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