CocoIndex
Backend / API library · Free
An incremental data transformation framework: it builds continuously updated indexes and embeddings from changing sources for AI applications.
Also known as: cocoindex-io/cocoindex; cocoindex; coco-index

What you can use for free
Code and local use under Apache-2.0.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Maintain an up-to-date AI application index
- Change part of a source and verify incremental updates to the corresponding records
Example workflow
A possible workflow; this is not a report of hands-on testing.
Maintain an up-to-date AI application index.
Before you start
- A data contract or HTTP workflow.
- A project with a supported runtime.
Steps
- Define a data source and transformations leading to embeddings or another index.
- Change part of a source and verify incremental updates to the corresponding records.
- Add error handling and an integration check of the result.
Check your result
- Invalid and missing data are handled predictably.
- Types and the actual response agree; errors are not hidden.
Choosing CocoIndex
Maintain an up-to-date AI application index
Choose this when
- Maintain an up-to-date AI application index
- Change part of a source and verify incremental updates to the corresponding records
Requirements
- For v1: Python 3.11–3.13 according to current documentation, and a COCOINDEX_DB/db_path path for internal LMDB. Postgres is needed when choosing that target. Legacy v0 setup separately requires Postgres for incremental processing.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
Frequently asked questions
What can you use for free in CocoIndex?
Code and local use under Apache-2.0.
What additional costs might arise with CocoIndex?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for CocoIndex?
Apache-2.0 for the code; third-party components retain their own terms.
How do you get started with CocoIndex?
Define a data source and transformations leading to embeddings or another index. Change part of a source and verify incremental updates to the corresponding records. Add error handling and an integration check of the result.
Must every target index record be updated manually?
No: CocoIndex incrementally reprocesses changed sources or logic. In legacy v0, flow_def/dataflow connects the source, transformations, collector, and export; the example chunks Markdown, generates embeddings, and exports them to Postgres. Current v1 uses App, coco.fn, and mount_each; internal target states and memo results are stored in LMDB. The v1 example converts PDFs to Markdown in a local folder. Choose examples and APIs explicitly by major version. Legacy v0 documentation also describes observable data before and after transformation and lineage; CocoInsight displays flow schemas and data through an HTTP server.
License
Apache-2.0 for the code; third-party components retain their own terms.
Apache 2.0 — permissive license with patent terms
You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.
License termsTechnologies and topics
- CocoIndex
- API
- Development
Sources
- Official source · github.com
- Official source · raw.githubusercontent.com
- License · raw.githubusercontent.com
- Catalog / discovery source · open-source-tools.com
- Official documentation · cocoindex.io
- Official documentation · cocoindex.io
- Official documentation · cocoindex.io
- Official documentation · cocoindex.io
- Official documentation · cocoindex.io
- Official documentation · cocoindex.io
- Official documentation · raw.githubusercontent.com