cognee-performance 是什么?
Use when cognee is slow, expensive, or hitting rate limits — speeding up or throttling ingestion (remember/cognify batching, chunk size, LLM and embedding rate limits, per-stage models), cutting read latency, estimating cost before ingesting, running work in the background, or planning how to scale a deployment.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
cognee-performance,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 cognee-performance
请在 Codex 的当前工作环境中安装并检查 cognee-performance 这个 Skill。
项目身份:topoteretes/cognee / cognee-performance
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-performance/SKILL.md
已定位的源文件:.agents/skills/cognee-performance/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 cognee-performance
请在 Claude Code 的当前工作环境中安装并检查 cognee-performance 这个 Skill。
项目身份:topoteretes/cognee / cognee-performance
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-performance/SKILL.md
已定位的源文件:.agents/skills/cognee-performance/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 cognee-performance
请在 Cursor Agent 的当前工作环境中安装并检查 cognee-performance 这个 Skill。
项目身份:topoteretes/cognee / cognee-performance
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-performance/SKILL.md
已定位的源文件:.agents/skills/cognee-performance/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 cognee-performance
请在 当前 Agent 的当前工作环境中安装并检查 cognee-performance 这个 Skill。
项目身份:topoteretes/cognee / cognee-performance
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-performance/SKILL.md
已定位的源文件:.agents/skills/cognee-performance/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-23T04:29:48.865Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
.agents/skills/cognee-performance/SKILL.md · 抓取时间 2026-11-23T04:29:48.865Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Use when cognee is slow, expensive, or hitting rate limits — speeding up or throttling ingestion (remember/cognify batching, chunk size, LLM and embedding rate limits, per-stage models), cutting read latency, estimating cost before ingesting, running work in the background, or planning how to scale a deployment.
查看源文件章节 / Source sections
- 原文:Tune cognee's performance
- 原文:Use it
- 原文:1. Estimate before you ingest
- 原文:2. Ingestion knobs
- 原文:3. LLM throttling and models
- 原文:4. Embeddings
- 原文:5. Skip the LLM for extraction
- 原文:6. Read latency
- 原文:7. Several datasets at once
- 原文:8. Scaling a deployment
- 原文:Pitfalls
- 原文:How it works
- 原文:Extending it
原文:Tune cognee's performance
**The LLM is the bottleneck.** Building the graph costs two LLM calls per chunk (graph extraction and summarization), and almost every other tuning question comes down to how many of those calls run, how fast, and on which model. Database and embedding work is small next to that.
原文:1. Estimate before you ingest
```python estimate = await cognee.remember("./docs", dry_run=True) print(estimate) # per-stage token counts and approximate cost; no LLM calls ``` The estimate covers graph extraction and summarization only, not `improve()` or embeddings. Not available with GLiNER or a remote instance.
原文:2. Ingestion knobs
All are `remember()` arguments (and `cognify()` ones): | Knob | Default | What it controls | |---|---|---| | `data_per_batch` | 20 | How many documents are processed **at the same time** (a concurrency limit, not a batch). Lower it to reduce load; raise it for many small files. | | `chunks_per_batch` | 2000 (env `CHUNKS_PER_BATCH`) | How many chunks each extraction/storage call receives. Lower it to spread load and fail smaller. The DLT pipeline defaults to 100. | | `chunk_size` | min(embedding max tokens, LLM max tokens / 2); about 8191 tokens with default OpenAI models | Max tokens per chunk. Fewer, bigger chunks mean fewer LLM calls; smaller chunks mean finer-grained graphs. | | `run_in_background` | `False` | Return immediately (`status="running"`); `await result` later. | | `self_improvement` | `True` | `improve()` after the graph is built. `False` (or `IMPROVE_AUTO_ENABLED=false`) skips that extra work. | Worst-case concurrent LLM calls are about `data_per_batch × min(chunks per document, chunks_per_batch) × 2`, and there is no separate concurrency cap. The rate limiter below is the brake. Several datasets in one `cognify(datasets=[...])` call run one after another, not in parallel.
原文:3. LLM throttling and models
| Env var | Default | Notes | |---|---|---| | `LLM_RATE_LIMIT_ENABLED` | `false` | Turn on a requests-per-interval limit | | `LLM_RATE_LIMIT_REQUESTS` / `LLM_RATE_LIMIT_INTERVAL` | 60 / 60 s | 10 requests for local providers (Ollama, llama.cpp, LM Studio) | | `AUTO_RATE_LIMIT` | `true` | On a 429/503/529 or timeout, switches the limiter on for 15 minutes (extended while errors continue) | | `LLM_EXTRACTION_MODEL` / `_PROVIDER` / `_ENDPOINT` / `_API_KEY` / `_API_VERSION` | the main model | Use a cheaper or faster model just for graph extraction | | `LLM_SUMMARIZATION_*`, `LLM_QUERY_*` | the main model | Same, for summaries and for answering queries | | `LLM_MAX_COMPLETION_TOKENS` | 16384 | Also caps the default chunk size (half of it) | | `LLM_ARGS` | — | Extra litellm arguments merged into every call, e.g. a request `timeout` | Structured-output calls retry with exponential backoff for at least two attempts and four minutes before failing; auth, not-found, and quota errors are not retried. The rate limiter is built from the main model's settings. A stage routed to a local model does not get the local default of 10 requests; set `LLM_RATE_LIMIT_REQUESTS` yourself.
原文:4. Embeddings
| Env var | Default | |---|---| | `EMBEDDING_BATCH_SIZE` | 32 texts per request | | `EMBEDDING_MAX_CONCURRENT_DATA_POINTS` | 150 (so 150 / 32 = 4 concurrent requests) | | `VECTOR_WRITE_BATCH_SIZE` | 128 rows per vector write, embedded in 32-text requests under the shared request concurrency limit | | `EMBEDDING_RATE_LIMIT_ENABLED` / `_REQUESTS` / `_INTERVAL` | off / 60 / 60 s | Embedding calls retry transient errors, rate-limit 429s included, with exponential jitter for up to 128 s (budget-exhaustion errors are terminal, not retried), but `AUTO_RATE_LIMIT` does not apply to them; enable `EMBEDDING_RATE_LIMIT_ENABLED` yourself for sustained load. Without any credentials cognee embeds locally with fastembed (`BAAI/bge-small-en-v1.5`), which runs on the CPU and blocks while it works.
原文:5. Skip the LLM for extraction
`remember(data, extractor="gliner")` builds the graph and summaries with a local GLiNER model: no LLM calls, embeddings still run. The runtime installs on first use (`GLINER_AUTO_INSTALL=false` to disable; then `pip install "cognee[gliner]"`). See the `cognee-ingestion` skill for its limits.
文件 SHA256:28d57349a37eb7c28145bdbd8d9daa66a8f449ddfa3080e224b89e056669158c
仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。
Use when cognee is slow, expensive, or hitting rate limits — speeding up or throttling ingestion (remember/cognify batching, chunk size, LLM and embedding rate limits, per-stage models), cutting read latency, estimating cost before ingesting, running work in the background, or planning how to scale a deployment.
历史收录数据
| 来源仓库 | topoteretes/cognee |
|---|---|
| Skill源路径 | .agents/skills/cognee-performance/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
