Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Cognee Speed and Cost Tuning

Speeds up cognee memory graphs and cuts LLM costs with the right batching, rate limits and model choices.

Claude's review

7/10 Precise cognee tuning knobs with defaults, concurrency maths, per-stage models and a list of settings that silently do nothing.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

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.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: cognee-performance
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.
---

# 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.

## Use it

### 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`, all in
flight at once unless `LLM_MAX_CONCURRENT_REQUESTS` is set (below). The rate
...

From topoteretes's repository, Apache-2.0 licence.

Related skills

  • Checked

    Neuron PHP AI Agents

    Builds and configures AI agents in PHP with the Neuron framework, covering tools, memory and streaming.

    by neuron-core 2.2k
    7/101 credit
  • Checked

    RAG evaluation

    Measures how well a RAG system retrieves and answers, with test questions, metrics and chunking advice.

    by ai-evals-course 1.9k
    7/101 credit
  • Checked

    LangSmith Agent Testing

    Sets up LangSmith datasets, scorers and experiments so you can prove an AI agent change is better before release.

    by langchain-ai 1.4k
    7/101 credit
  • Checked

    Test and Fix Loop

    Sets up a coding agent to run tests, read failures and fix them until green, with a safe point to stop.

    by agentsope 513
    8/101 credit
  • Checked

    AI Failure Analysis

    Sorts real chatbot or agent logs into named failure types with counts, so you know which tests to write first.

    by yonatangross 312
    7/101 credit
  • Checked

    AI Agent Eval Rubric

    Writes pass or fail checks that define good behaviour for your AI agent, plus release targets for the PRD.

    by Calibre-Labs 107
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added