OpenSource-Hub

cocoindex

フレームワーク

cocoindex-io/cocoindex

长周期AI代理增量引擎,实时上下文更新。

概要

CocoIndex 让AI代理从代码库、会议记录、Slack、PDF和视频中获取持续更新的数据。仅处理增量变化,开销最小。适用于生产级别的RAG和知识图谱应用。

README プレビュー

\n  \n    \n    \n    \n  \n\nYour agents deserve fresh context.\n\n\n  Star us ❤️ →   · \n    · \n    · \n  \n\n\n\nCocoIndex turns codebases, meeting notes, inboxes, Slack, PDFs, and videos into live, continuously fresh context for your AI agents and LLM apps to reason over effectively — with minimal incremental processing.  Get your production AI agent ready in 10 minutes with reliable, continuously fresh data — no stale batches, no context gap\n\n\n  Incremental · only the delta  ·  Any scale · parallel by default  ·  Declarative · Python, 5 min\n\n\n\n\n\n[](https://github.com/cocoindex-io/cocoindex)\n[](https://pepy.tech/projects/cocoindex)\n[](https://pypi.org/project/cocoindex/)\n[](https://www.python.org/)\n[](https://www.rust-lang.org/)\n[](https://opensource.org/licenses/Apache-2.0)\n[](https://discord.com/invite/zpA9S2DR7s)\n\n[](https://github.com/cocoindex-io/cocoindex/actions/workflows/CI.yml)\n[](https://github.com/cocoindex-io/cocoindex/actions/workflows/release.yml)\n[](https://github.com/cocoindex-io/cocoindex/actions/workflows/links.yml)\n\n\n\n\n\n\n\n\n\n[Deutsch](https://readme-i18n.com/cocoindex-io/cocoindex?lang=de) |\n[English](https://readme-i18n.com/cocoindex-io/cocoindex?lang=en) |\n[Español](https://readme-i18n.com/cocoindex-io/cocoindex?lang=es) |\n[français](https://readme-i18n.com/cocoindex-io/cocoindex?lang=fr) |\n[日本語](https://readme-i18n.com/cocoindex-io/cocoindex?lang=ja) |\n[한국어](https://readme-i18n.com/cocoindex-io/cocoindex?lang=ko) |\n[Português](https://readme-i18n.com/cocoindex-io/cocoindex?lang=pt) |\n[Русский](https://readme-i18n.com/cocoindex-io/cocoindex?lang=ru) |\n[中文](https://readme-i18n.com/cocoindex-io/cocoindex?lang=zh)\n\n\n\n\n\n\nBuilt with CocoIndex ❤️\n\n\n\n  \n\n\nSee all 20+ examples · updated every week →\n\n\n\nGet started\n\n```sh\npip install -U cocoindex\n```\n\nDeclare *what* should be in your target — CocoIndex keeps it in sync forever

FAQ (2)

トラブル対応
cocoindexにおいて、incremental reindexが'Forbidden global during unpickling: numpy.core.numeric._frombuffer'で失敗するのはなぜですか?

これは、cocoindex 1.0.6 で numpy 1.x を使用している場合(例:Intel Mac 上)の既知のバグです。serde の許可リストは、_frombuffer に対して numpy 2.x のパスのみを登録しています。修正するには、python/cocoindex/_internal/serde.py を更新し、('numpy.core.numeric', '_frombuffer')('numpy._core.numeric', '_frombuffer') の両方の下に _frombuffer を登録します。正確なパッチについては issue #2011 を参照するか、PR #2012 を適用してください。

参照 Issue #2011
ハウツー
CocoIndexで、.github/workflowsを除く全ての隠しディレクトリを除外する方法は?

excluded_patternsにすべての隠しディレクトリを明示的に列挙してください。これは否定構文(例:!)がサポートされるまでの現在の回避策です。例:excluded_patterns=["**/.git","**/.vscode","**/.idea","**/.ruff_cache","**/.pytest_cache","... その他の既知のドットディレクトリをすべて追加"]。このリストは新しいツールが増えるたびに拡大することに注意してください。公式の否定サポートについてはissue #1778を追跡してください。

参照 Issue #1778