跳到主要内容
知仓学习社ZHICANG

cognee-community

Use when the user needs something that ships outside cognee core — community database adapters (Qdrant, Milvus, Weaviate, Redis, Pinecone, FalkorDB,…

不碰外部(只输出文字)无严重或高危命中topoteretes/cognee

它会碰到什么

扫了多少1 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Use and contribute cognee-community packages

Community-maintained plugins live in a separate monorepo:

https://github.com/topoteretes/cognee-community. Everything installable is

under packages/; experimental/ holds demos (n8n nodes, dlt demos,

bauplan, tower) that are not published packages. Each package publishes to

PyPI as cognee-community-<family>-<kind>-<name> and imports as the same

name with underscores.

Package families

| Family | Packages |

|---|---|

| Vector adapters | azureaisearch, milvus, moss, opengauss, opensearch, pinecone, qdrant, redis, singlestore, turbopuffer, valkey, weaviate |

| Graph adapters | arcadedb, memgraph, networkx, pggraph, spanner, turbopuffer, turingdb |

| Hybrid (graph+vector in one DB) | arcadedb, duckdb, falkordb, helixdb |

| Connectors (data sources) | confluence, gmail, google-drive, notion, slack |

| Tasks / pipelines / retrievers | codify_tasks, codify_pipeline, code_retriever, exa_tasks, scrapegraph_tasks |

| Observability | keywordsai (MONITORING_TOOL=keywordsai + KEYWORDSAI_API_KEY) |

Using a database adapter

Install, then **import the package's register module before cognee touches

any engine** — registration is what makes the provider name valid:

uv pip install cognee-community-vector-adapter-qdrant
import cognee
from cognee import config
from cognee_community_vector_adapter_qdrant import register  # noqa: F401

config.set_vector_db_config({
    "vector_db_provider": "qdrant",
    "vector_db_url": "http://localhost:6333",
    "vector_db_key": "...",
    "vector_dataset_database_handler": "qdrant",  # only if the adapter ships one
})

The register.py calls use_vector_adapter(name, AdapterClass) /

use_graph_adapter(...). Setting VECTOR_DB_PROVIDER/GRAPH_DATABASE_PROVIDER

to a community name without the register import raises "Unsupported

vector database provider". Hybrid adapters (e.g. falkordb) register as both

graph and vector — set both configs to the same provider name.

Multi-tenancy caveat: with ENABLE_BACKEND_ACCESS_CONTROL=true (the

default), both backends must have a dataset-database handler or cognee raises

EnvironmentError. Community adapters that ship one (registered via

use_dataset_database_handler in their register.py): qdrant, moss,

singlestore, turbopuffer (vector + graph), falkordb, arcadedb, helixdb. All

other community adapters need ENABLE_BACKEND_ACCESS_CONTROL=false.

Using a connector

Connectors expose a dlt source you hand straight to remember(); they

reuse core's DLT ingestion path, so snapshot sync and forget-on-delete work

with no core changes:

from cognee_community_connector_slack import slack_export_source

await cognee.remember(
    slack_export_source("/path/to/slack-export"),
    dataset_name="team-slack-export",  # use a dedicated dataset
    max_rows_per_table=0,
)

Same shape for gmail ("ask my inbox"), notion, confluence, and google-drive

(incremental, forget-on-delete). Each package README documents its

credentials; always give a connector its own dataset.

Verifying an install

Every package has examples/example.py (run uv run python examples/example.py

from the package dir) and a tests/ directory. An LLM API key is still

required (LLM_API_KEY, OpenAI by default).

Contributing a package

  • Branch from main — unlike the core repo, cognee-community does not

use a dev branch.

  • Follow the existing structure: package dir under packages/<family>/<name>/

with pyproject.toml, a README.md (install + usage), examples/example.py,

and tests/ that go beyond the example.

  • New DB adapters implement VectorDBInterface / GraphDBInterface from

core, expose a register.py, and should run the shared conformance tests

in packages/shared/contract_suite/ (vector_contract.py / graph_contract.py).

  • Add a handler via use_dataset_database_handler(...) if the backend can

isolate per user+dataset — that's what makes it work with access control on.

  • Name it cognee-community-<family>-<kind>-<name> and add it to the tables

in the repo README. Lint config is the repo-root ruff.toml.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 30,732
本站分层T1
该仓技能数8
原文件路径.claude/skills/cognee-community/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 8 个技能