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.0a13.tar.gz (226.9 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.0a13-cp314-cp314t-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a13-cp314-cp314t-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a13-cp311-abi3-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a13-cp311-abi3-manylinux_2_28_x86_64.whl (6.1 MB view details)

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

cocoindex-1.0.0a13-cp311-abi3-manylinux_2_28_aarch64.whl (5.9 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

cocoindex-1.0.0a13-cp311-abi3-macosx_11_0_arm64.whl (6.1 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a13-cp311-abi3-macosx_10_12_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

cocoindex-1.0.0a13-cp310-cp310-manylinux_2_28_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

cocoindex-1.0.0a13-cp310-cp310-manylinux_2_28_aarch64.whl (5.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a13.tar.gz
Algorithm Hash digest
SHA256 40ca9aa53575e68db9622a9b34301429458bb5706e975533b9b1c4bb8447416e
MD5 e7ace3d4b103be5442e54b139127ef4d
BLAKE2b-256 9502bae3ea933928cdeaae14c21fc7d28e320d06b6dd8fb2dedc4941a63c17e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 d16f9122fa245bfad69415bf3cec221d55d6f9a9c09f2b181ee039b5ba94f323
MD5 6de6c1821733a736ba9503124607dc32
BLAKE2b-256 468bb0f2323b642b7db8754150407c9b8d8dafd55d10b63da57f26725c21466d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d77af1fe4273e4af6486308751fa81db3a86b7e1d8273e222933088f1ba8943
MD5 ae2ce6933650c7527aa85d5c1852a58e
BLAKE2b-256 262ae434e92c0e1e03299f3099daab0b9d5805e42927de588ff9511856189a5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 14aae68c665a311b9486d70111e83990549f9f57c2f34cb4863a8d7e5e2a7578
MD5 fb487e125d724782aeecc0d563b7bc1a
BLAKE2b-256 e7bc0c72f4d829ad7aca7d94ddeb966563d9632ddf46f13c2762a934157ab351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e09464c06536974a4531e26750f09c06f0a73dfe313ac2ce3d0148917cb18ea
MD5 805009c974e8d275e3a963c062a15a81
BLAKE2b-256 e0bcd4bf8aa162fdddfec55712b2c8484d485cf3ddfe9805f24f7104b98875c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 41bac8bf9da79e4ae6a36c81875832656b2384ea65dba7b95ba5603508a28be3
MD5 5eec565de31400fa067716b998a5631e
BLAKE2b-256 47607b7b1d639db1095757b728aa39ef8e2377ff9b6d43972127dbb51c3c80ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bef9a02fd9262fe783e57db171930b14b5be5295f8c63b121e8c26314ce7856
MD5 42d194c36f64525173a2cd5b2a3ea1b1
BLAKE2b-256 34e74c389ab4b89e198cb576ffefee75ea03f77988dd03b3462e15e115dd364d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0b7bae0b97a59f33ab5e4801150039b785ebc95b5a7560bd7d090920a32518dc
MD5 cc9c295b90844c4d67385c5071960057
BLAKE2b-256 afcdf3d617d1124d7457ba4b1bfd59eb3fd12afd617b44facc3a996b0befe7c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 58620c9df10659937bdab6d9ea9b90a74c7de90f634490a3f5b65075747dd4b8
MD5 14584e73e46f1f25f0c162929a690e52
BLAKE2b-256 02e68d2690e89d29d6b672213ab91960216c73914044a898c5b1769d28f72004

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a13-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1048adacc544aaeecf32cb8af26f976f59590e86fdba3271fd8a3511f89d45d6
MD5 8aa1ee41bb14584cfe3eb22a4be31e52
BLAKE2b-256 01f337461db310c4e9f572d3ff09343f10a9d9003c6a52719f242ef40fee70bf

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