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.0a36.tar.gz (291.5 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.0a36-cp314-cp314t-win_amd64.whl (6.6 MB view details)

Uploaded CPython 3.14tWindows x86-64

cocoindex-1.0.0a36-cp314-cp314t-manylinux_2_28_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14tmacOS 11.0+ ARM64

cocoindex-1.0.0a36-cp311-abi3-win_amd64.whl (6.6 MB view details)

Uploaded CPython 3.11+Windows x86-64

cocoindex-1.0.0a36-cp311-abi3-manylinux_2_28_x86_64.whl (6.4 MB view details)

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

cocoindex-1.0.0a36-cp311-abi3-manylinux_2_28_aarch64.whl (6.2 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

cocoindex-1.0.0a36-cp311-abi3-macosx_10_12_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for cocoindex-1.0.0a36.tar.gz
Algorithm Hash digest
SHA256 c67554d30e9cf1891569a811dc54c861327e94ba820cc88da87b695f7940fe11
MD5 75c4f13c800b5c5f271ee1f4aae32ac4
BLAKE2b-256 adf8ce11d71a611b54552f9a6c6ef56ee48eeab884a3eeaf9fe31fd40e6b53df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 2931cd6fc7890802c4ef42e7b498c13137934bc891d4670567f8ed7b79146384
MD5 cc3b5f87e40203e577588b8082a4dc89
BLAKE2b-256 07d03d1094633f4595e5a383dae86d4c595593605e40ae67f590827aa6ef0941

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6a4619a0d4420efcce263c85208d90098353c5ebc3c1dc0f96a89fe1a0c65e94
MD5 c31c859554528aa980e2dccdd46b746e
BLAKE2b-256 3bec0c6ab16d33e5047149f2204bfa8aaf6e677367c2fd7a228c1cf29f7097bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8fc326ecf96a2cf6f466f7ec5a5f9e49eb202839709d90788851159bb79cc52f
MD5 365ee9b0f0e84bd4b3bb640d47542c24
BLAKE2b-256 583e8d5a6e59179f74e0a0bf254971410a2434b0b78539585d0bcfb694b760a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb9ce19ffd45190f79c95cab25d7c0e4bf0c10359ec3a1e088a25b65145c3a96
MD5 6d0d5465e6bcccd78e2aa9990330c5d6
BLAKE2b-256 6b87252ad1a4a6f02d1d6c97b8224dc8fb71b5e2620241d4e26fe8569ad9aa12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 aea634607a6f81839c0f4005bc5adebe2e75638de5130c8db9b6f2180db80042
MD5 0fcac73292e6a3de57fccec439e223db
BLAKE2b-256 8597ca6b8fc6181bedd443aadf45a0d9a83ec3c75fbaeeb75d2623df19fc554b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee01d2f6492a96ed3be26b8ffcb46a28e287d92f0e1451f93a9ea05e24b9b34a
MD5 782e97fe5f985ecdcdd908b6e375b97c
BLAKE2b-256 be7ec906b5183d1deb91ffffa2d1b5b823ed718473cfec31a194bf94ec1b0b3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 da17fe3e2c6063dcf5cfdf9db1a1b78996677d50c9e6a1a733485064b90a605f
MD5 f130201d08685c6251bfd908236f6e59
BLAKE2b-256 6b2b558ba21958dac6c5f5ced6b8b2351db1898e2295d945f087b1d9fd146cf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15095e3431ca7d00236d9a9d7ef8c00159bce102ddbc4e067ca6fd27f4142673
MD5 98001443f62cccba5a3fcf634cf3b26e
BLAKE2b-256 1dbdfb187eec87f6bbbbf3e815fd18919775e57b44aa4e8cb3a4d4a8fb415a88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cocoindex-1.0.0a36-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 09fc56903a380e390da60442fdd5fcae0a3ff5ff00f342c9cac9f583462410e4
MD5 a9a6eae77f5f0f77eda22c0764026e7e
BLAKE2b-256 6514d119e29c03aa3e53411966c0f0847b5b7b1c703500833f43ff3a95bc2883

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