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에서 '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