topoteretes/cogneePublic

Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.

AI summary: An open-source AI memory platform that provides persistent long-term memory and knowledge graphs for agents.

Stars
29.8K
+39 today
Forks
2.9K
Watchers
104
Open issues
141
Open PRs
376
Contributors
~231
Commits
8.9K
Branches
404

PythonApache-2.0Created Aug 16, 2023Last push 2d agoLatest release v1.4.0.dev2+261 stars this week+261 this month

Star history

since Dec 31, 2023
010K20KDec 2023Nov 2024Sep 2025Aug 2026
29.8K stars as of Aug 6, 2026, tracked back to Dec 31, 2023. Historical curve reconstructed from public GitHub event archives, calibrated to the current total.

Contribution activity

commits per day, last 52 weeks
AugSepOctNovDecJanFebMarAprMayJunJulMonWedFri2025-08-03: 0 commits2025-08-04: 4 commits2025-08-05: 6 commits2025-08-06: 6 commits2025-08-07: 1 commit2025-08-08: 2 commits2025-08-09: 1 commit2025-08-10: 4 commits2025-08-11: 3 commits2025-08-12: 6 commits2025-08-13: 31 commits2025-08-14: 19 commits2025-08-15: 14 commits2025-08-16: 1 commit2025-08-17: 3 commits2025-08-18: 24 commits2025-08-19: 11 commits2025-08-20: 8 commits2025-08-21: 0 commits2025-08-22: 1 commit2025-08-23: 0 commits2025-08-24: 0 commits2025-08-25: 17 commits2025-08-26: 13 commits2025-08-27: 50 commits2025-08-28: 11 commits2025-08-29: 31 commits2025-08-30: 1 commit2025-08-31: 0 commits2025-09-01: 12 commits2025-09-02: 9 commits2025-09-03: 16 commits2025-09-04: 10 commits2025-09-05: 2 commits2025-09-06: 1 commit2025-09-07: 8 commits2025-09-08: 12 commits2025-09-09: 12 commits2025-09-10: 12 commits2025-09-11: 31 commits2025-09-12: 11 commits2025-09-13: 1 commit2025-09-14: 4 commits2025-09-15: 12 commits2025-09-16: 10 commits2025-09-17: 26 commits2025-09-18: 16 commits2025-09-19: 13 commits2025-09-20: 4 commits2025-09-21: 0 commits2025-09-22: 4 commits2025-09-23: 9 commits2025-09-24: 20 commits2025-09-25: 25 commits2025-09-26: 15 commits2025-09-27: 7 commits2025-09-28: 0 commits2025-09-29: 10 commits2025-09-30: 9 commits2025-10-01: 9 commits2025-10-02: 9 commits2025-10-03: 1 commit2025-10-04: 5 commits2025-10-05: 3 commits2025-10-06: 24 commits2025-10-07: 46 commits2025-10-08: 18 commits2025-10-09: 17 commits2025-10-10: 28 commits2025-10-11: 0 commits2025-10-12: 10 commits2025-10-13: 16 commits2025-10-14: 22 commits2025-10-15: 32 commits2025-10-16: 27 commits2025-10-17: 26 commits2025-10-18: 0 commits2025-10-19: 16 commits2025-10-20: 26 commits2025-10-21: 31 commits2025-10-22: 33 commits2025-10-23: 11 commits2025-10-24: 7 commits2025-10-25: 9 commits2025-10-26: 4 commits2025-10-27: 11 commits2025-10-28: 10 commits2025-10-29: 15 commits2025-10-30: 20 commits2025-10-31: 20 commits2025-11-01: 1 commit2025-11-02: 1 commit2025-11-03: 11 commits2025-11-04: 22 commits2025-11-05: 20 commits2025-11-06: 28 commits2025-11-07: 11 commits2025-11-08: 1 commit2025-11-09: 2 commits2025-11-10: 5 commits2025-11-11: 14 commits2025-11-12: 9 commits2025-11-13: 11 commits2025-11-14: 11 commits2025-11-15: 1 commit2025-11-16: 0 commits2025-11-17: 6 commits2025-11-18: 4 commits2025-11-19: 6 commits2025-11-20: 9 commits2025-11-21: 5 commits2025-11-22: 2 commits2025-11-23: 2 commits2025-11-24: 6 commits2025-11-25: 14 commits2025-11-26: 9 commits2025-11-27: 6 commits2025-11-28: 5 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 8 commits2025-12-02: 15 commits2025-12-03: 7 commits2025-12-04: 3 commits2025-12-05: 6 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 1 commit2025-12-09: 6 commits2025-12-10: 6 commits2025-12-11: 12 commits2025-12-12: 12 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 17 commits2025-12-16: 19 commits2025-12-17: 13 commits2025-12-18: 16 commits2025-12-19: 14 commits2025-12-20: 1 commit2025-12-21: 0 commits2025-12-22: 1 commit2025-12-23: 1 commit2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 5 commits2025-12-29: 6 commits2025-12-30: 2 commits2025-12-31: 1 commit2026-01-01: 1 commit2026-01-02: 2 commits2026-01-03: 9 commits2026-01-04: 2 commits2026-01-05: 1 commit2026-01-06: 5 commits2026-01-07: 2 commits2026-01-08: 16 commits2026-01-09: 9 commits2026-01-10: 5 commits2026-01-11: 7 commits2026-01-12: 12 commits2026-01-13: 14 commits2026-01-14: 3 commits2026-01-15: 32 commits2026-01-16: 29 commits2026-01-17: 5 commits2026-01-18: 1 commit2026-01-19: 11 commits2026-01-20: 21 commits2026-01-21: 7 commits2026-01-22: 11 commits2026-01-23: 9 commits2026-01-24: 0 commits2026-01-25: 13 commits2026-01-26: 12 commits2026-01-27: 16 commits2026-01-28: 20 commits2026-01-29: 21 commits2026-01-30: 23 commits2026-01-31: 1 commit2026-02-01: 1 commit2026-02-02: 13 commits2026-02-03: 11 commits2026-02-04: 21 commits2026-02-05: 4 commits2026-02-06: 19 commits2026-02-07: 12 commits2026-02-08: 13 commits2026-02-09: 28 commits2026-02-10: 26 commits2026-02-11: 33 commits2026-02-12: 33 commits2026-02-13: 22 commits2026-02-14: 16 commits2026-02-15: 11 commits2026-02-16: 15 commits2026-02-17: 19 commits2026-02-18: 10 commits2026-02-19: 18 commits2026-02-20: 12 commits2026-02-21: 0 commits2026-02-22: 10 commits2026-02-23: 23 commits2026-02-24: 6 commits2026-02-25: 6 commits2026-02-26: 21 commits2026-02-27: 5 commits2026-02-28: 3 commits2026-03-01: 5 commits2026-03-02: 2 commits2026-03-03: 10 commits2026-03-04: 15 commits2026-03-05: 26 commits2026-03-06: 4 commits2026-03-07: 13 commits2026-03-08: 18 commits2026-03-09: 8 commits2026-03-10: 16 commits2026-03-11: 23 commits2026-03-12: 32 commits2026-03-13: 4 commits2026-03-14: 4 commits2026-03-15: 5 commits2026-03-16: 4 commits2026-03-17: 21 commits2026-03-18: 18 commits2026-03-19: 18 commits2026-03-20: 8 commits2026-03-21: 2 commits2026-03-22: 9 commits2026-03-23: 11 commits2026-03-24: 18 commits2026-03-25: 4 commits2026-03-26: 41 commits2026-03-27: 9 commits2026-03-28: 8 commits2026-03-29: 14 commits2026-03-30: 19 commits2026-03-31: 6 commits2026-04-01: 20 commits2026-04-02: 14 commits2026-04-03: 22 commits2026-04-04: 12 commits2026-04-05: 2 commits2026-04-06: 1 commit2026-04-07: 22 commits2026-04-08: 44 commits2026-04-09: 27 commits2026-04-10: 63 commits2026-04-11: 19 commits2026-04-12: 7 commits2026-04-13: 7 commits2026-04-14: 12 commits2026-04-15: 12 commits2026-04-16: 34 commits2026-04-17: 14 commits2026-04-18: 1 commit2026-04-19: 18 commits2026-04-20: 10 commits2026-04-21: 23 commits2026-04-22: 20 commits2026-04-23: 23 commits2026-04-24: 40 commits2026-04-25: 2 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 8 commits2026-04-29: 24 commits2026-04-30: 29 commits2026-05-01: 9 commits2026-05-02: 18 commits2026-05-03: 14 commits2026-05-04: 10 commits2026-05-05: 5 commits2026-05-06: 9 commits2026-05-07: 10 commits2026-05-08: 16 commits2026-05-09: 6 commits2026-05-10: 1 commit2026-05-11: 18 commits2026-05-12: 21 commits2026-05-13: 29 commits2026-05-14: 4 commits2026-05-15: 31 commits2026-05-16: 28 commits2026-05-17: 0 commits2026-05-18: 15 commits2026-05-19: 18 commits2026-05-20: 20 commits2026-05-21: 17 commits2026-05-22: 14 commits2026-05-23: 0 commits2026-05-24: 5 commits2026-05-25: 7 commits2026-05-26: 16 commits2026-05-27: 4 commits2026-05-28: 25 commits2026-05-29: 24 commits2026-05-30: 8 commits2026-05-31: 5 commits2026-06-01: 18 commits2026-06-02: 8 commits2026-06-03: 16 commits2026-06-04: 16 commits2026-06-05: 13 commits2026-06-06: 5 commits2026-06-07: 2 commits2026-06-08: 14 commits2026-06-09: 20 commits2026-06-10: 36 commits2026-06-11: 26 commits2026-06-12: 19 commits2026-06-13: 9 commits2026-06-14: 12 commits2026-06-15: 16 commits2026-06-16: 6 commits2026-06-17: 10 commits2026-06-18: 10 commits2026-06-19: 4 commits2026-06-20: 28 commits2026-06-21: 33 commits2026-06-22: 9 commits2026-06-23: 15 commits2026-06-24: 18 commits2026-06-25: 9 commits2026-06-26: 28 commits2026-06-27: 2 commits2026-06-28: 0 commits2026-06-29: 24 commits2026-06-30: 2 commits2026-07-01: 16 commits2026-07-02: 22 commits2026-07-03: 22 commits2026-07-04: 1 commit2026-07-05: 4 commits2026-07-06: 1 commit2026-07-07: 12 commits2026-07-08: 7 commits2026-07-09: 26 commits2026-07-10: 22 commits2026-07-11: 29 commits2026-07-12: 5 commits2026-07-13: 6 commits2026-07-14: 8 commits2026-07-15: 28 commits2026-07-16: 16 commits2026-07-17: 16 commits2026-07-18: 9 commits2026-07-19: 4 commits2026-07-20: 2 commits2026-07-21: 3 commits2026-07-22: 0 commits2026-07-23: 0 commits2026-07-24: 0 commits2026-07-25: 1 commit2026-07-26: 0 commits2026-07-27: 0 commits2026-07-28: 1 commit2026-07-29: 0 commits2026-07-30: 0 commits2026-07-31: 0 commits2026-08-01: 0 commits
4,241 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Widely adopted

    29,811 stars

  • Very active

    4,241 commits in 52 weeks

  • Community-driven

    ~231 contributors

  • Well documented

    High community health score

  • Permissive license

    Apache-2.0

  • Continuous integration

    Automated checks passing

  • Repeat trending

    4 trending appearances

What cognee does

Cognee is a memory infrastructure platform designed to give AI agents reliable, persistent context across multiple sessions. It ingests documents and data in any format and automatically constructs a self-hosted knowledge graph combined with vector embeddings. This hybrid approach enables agents to search information by meaning while understanding complex relational connections. Cognee supports auto-routing between search strategies, session-specific memory caching, and seamless integration with existing tools like Claude Code via dedicated plugins, ultimately reducing hallucinations and allowing agents to learn continuously.

AI developers, data engineers, and enterprise teams seeking to build intelligent agents that require trustworthy, long-term memory and complex reasoning capabilities.

  • Hybrid Knowledge Graph: Combines vector embeddings with graph reasoning to enable deep, relationship-aware retrieval of information.
  • Continuous Learning: Captures user feedback, tool traces, and conversational context to update the agent's memory persistently.
  • Auto-Routing Search: Automatically selects the most efficient search strategy (vector, graph, or hybrid) based on the specific query.
  • Agent Integration: Provides robust plugins for Claude Code and other frameworks to inject context seamlessly into ongoing sessions.
  • Tenant Isolation: Ensures secure, agentic user isolation with built-in traceability and audit trails for enterprise reliability.

Where teams use it

Customer Support Context

An agent uses Cognee to instantly recall a user's past billing issues and product history to provide a highly personalized resolution.

Knowledge Distillation

A SQL copilot agent retrieves successful query patterns from senior analysts stored in the graph to help juniors solve complex schema tasks.

Persistent Chat Assistants

Users connect their Claude Code CLI to Cognee to ensure the assistant remembers project-specific architectural decisions across terminal restarts.

Enterprise Knowledge Base

Companies ingest their internal documentation into a self-hosted Cognee instance, creating a secure, queryable brain for internal tools.

Getting started: pip install cognee

README

main branch
Cognee Logo

Cognee - The Open-Source AI Memory Platform for Agents

Demo . Docs . Learn More · Join Discord · Join r/AIMemory . Community Plugins & Add-ons

GitHub forks GitHub stars GitHub commits GitHub tag Downloads License Contributors Sponsor

topoteretes%2Fcognee | Trendshift

Cognee is the open-source AI memory platform that gives AI agents persistent long-term memory across sessions. Ingest data in any format, build a self-hosted knowledge graph, and let every agent recall, connect, and act with full context

🌐 This README is also available in: : Deutsch | Español | Français | 日本語 | 한국어 | Português | Русский | 中文

Cognee Demo

📄 Read the research paper: Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning — Markovic et al., 2025

About Cognee

Cognee is an open-source AI memory platform for AI Agents. Ingest data in any format, and Cognee continuously builds a self-hosted knowledge graph that gives your agents persistent long-term memory across sessions. Cognee combines vector embeddings, graph reasoning, and cognitive-science-grounded ontology generation to make documents both searchable by meaning and connected by relationships that evolve as your knowledge does.

Help us reach more developers and grow the cognee community. Star this repo!

📚 Check our detailed documentation for setup and configuration.

🦀 Available as a plugin for your OpenClaw — cognee-openclaw

✴️ Available as a plugin for your Claude Code — claude-code-plugin

🦀 Available as a Rust client — cognee-rs

🟦 Available as a TypeScript client — @cognee/cognee-ts

Why use Cognee:

  • Easily Build Company Brain - unify data from various sources in one place and enable Agents with your domain knowledge
  • Knowledge infrastructure — unified ingestion, graph/vector search, runs locally, ontology grounding, multimodal
  • Persistent and Learning Agents - learn from feedback, context management, cross-agent knowledge sharing
  • Reliable and Trustworthy Agents - agentic user/tenant isolation, traceability, OTEL collector, audit traits

How it Works

Cognee Products

Cognee Recall

Basic Usage & Feature Guide

To learn more, check out this short, end-to-end Colab walkthrough of Cognee's core features.

Open In Colab

Quickstart

Let’s try Cognee in just a few lines of code.

Prerequisites

  • Python 3.10 to 3.14

Step 1: Install Cognee

You can install Cognee with pip, poetry, uv, or your preferred Python package manager.

uv pip install cognee

Step 2: Configure the LLM

import os
os.environ["LLM_API_KEY"] = "YOUR OPENAI_API_KEY"

Alternatively, create a .env file using our template.

To integrate other LLM providers, see our LLM Provider Documentation.

Step 3: Run the Pipeline

Cognee's API gives you four operations — remember, recall, forget, and improve:

import cognee
import asyncio


async def main():
    # Store permanently in the knowledge graph (runs add + cognify + improve)
    await cognee.remember("Cognee turns documents into AI memory.")

    # Store in session memory (fast cache, syncs to graph in background)
    await cognee.remember("User prefers detailed explanations.", session_id="chat_1")

    # Query with auto-routing (picks best search strategy automatically)
    results = await cognee.recall("What does Cognee do?")
    for result in results:
        print(result)

    # Query session memory first, fall through to graph if needed
    results = await cognee.recall("What does the user prefer?", session_id="chat_1")
    for result in results:
        print(result)

    # Delete when done
    await cognee.forget(dataset="main_dataset")


if __name__ == '__main__':
    asyncio.run(main())

Use the Cognee CLI

cognee-cli remember "Cognee turns documents into AI memory."

cognee-cli recall "What does Cognee do?"

cognee-cli forget --all

To open the local UI, run:

cognee-cli -ui

Note: The MCP server launched by cognee-cli -ui runs inside a Docker container. Docker Desktop, Colima, or any OCI-compatible runtime with a working docker CLI is required. See Docker & Colima Setup for details.

Run with Docker

Prefer containers? Cognee publishes prebuilt images to Docker Hub on every push to main: cognee/cognee (the API server) and cognee/cognee-mcp (the MCP server).

Option A — Docker Compose (build from source)

Clone the repo, create a .env with at least LLM_API_KEY, then:

cp .env.template .env   # then edit .env and set LLM_API_KEY

# Start the API server (http://localhost:8000)
docker compose up

# Optional profiles (combine as needed):
docker compose --profile ui up        # + frontend on http://localhost:3000
docker compose --profile mcp up       # + MCP server on http://localhost:8001
docker compose --profile postgres up  # + Postgres/PGVector
docker compose --profile neo4j up     # + Neo4j

The cognee and cognee-mcp services publish different host ports (8000 vs 8001), so you can run both at once.

Option B — Pull the prebuilt image (no clone required)

# Create a minimal .env in the current directory
echo 'LLM_API_KEY="YOUR_OPENAI_API_KEY"' > .env

# API server
docker run --env-file ./.env -p 8000:8000 --rm -it cognee/cognee:main

# MCP server (HTTP transport)
docker pull cognee/cognee-mcp:main
docker run -e TRANSPORT_MODE=http --env-file ./.env -p 8000:8000 --rm -it cognee/cognee-mcp:main

See the MCP server README for SSE/stdio transports, optional extras, and MCP client configuration.

Use with AI Agents

Claude Code

Install the Cognee memory plugin to give Claude Code persistent memory across sessions. The plugin captures prompts, tool traces, and assistant responses into session memory, injects relevant context on every prompt, and syncs session memory into the permanent knowledge graph at session end.

Install from the Claude Code marketplace. The recommended way is from your shell, before launching Claude Code, so the first claude launch is a clean session that bootstraps memory automatically:

# Add the marketplace and install the plugin (one-time, user-scoped)
claude plugin marketplace add topoteretes/cognee-integrations
claude plugin install cognee-memory@cognee

# Set env vars for your mode (see below), then launch
export LLM_API_KEY="sk-..."   # local mode; or COGNEE_BASE_URL + COGNEE_API_KEY for cloud
claude

Local mode (default) — the plugin bootstraps a local Cognee API at http://localhost:8011. Only LLM_API_KEY is required; the Cognee API key is auto-minted if absent:

export LLM_API_KEY="sk-..."

Cognee Cloud or a remote server — set both:

export COGNEE_BASE_URL="https://your-instance.cognee.ai"
export COGNEE_API_KEY="ck_..."

On startup you should see a "Cognee Memory Connected" system message.

The plugin hooks into Claude Code's lifecycle — SessionStart selects mode and sets up identity, UserPromptSubmit injects dataset-scoped context, PostToolUse captures tool traces, Stop writes the assistant's answer, PreCompact preserves memory across context resets, and SessionEnd triggers the final sync into the permanent graph.

See the plugin README for sessions, datasets, and full configuration.

Connect to Cognee Cloud

Point any Python agent at a managed Cognee instance — all SDK calls route to the cloud:

import cognee

await cognee.serve(url="https://your-instance.cognee.ai", api_key="ck_...")

await cognee.remember("important context")
results = await cognee.recall("what happened?")

await cognee.disconnect()

Examples

Browse more examples in the examples/ folder — demos, guides, custom pipelines, and database configurations.

Use Case 1 — Customer Support Agent

Goal: Resolve customer issues using their personal data across finance, support, and product history.

User: "My invoice looks wrong and the issue is still not resolved."

Cognee tracks: past interactions, failed actions, resolved cases, product history

# Agent response:
Agent: "I found 2 similar billing cases resolved last month.
        The issue was caused by a sync delay between payment
        and invoice systemsa fix was applied on your account."

# What happens under the hood:
- Unifies data sources from various company channels
- Reconstructs the interaction timeline and tracks outcomes
- Retrieves similar resolved cases
- Maps to the best resolution strategy
- Updates memory after execution so the agent never repeats the same mistake

Use Case 2 — Expert Knowledge Distillation (SQL Copilot)

Goal: Help junior analysts solve tasks by reusing expert-level queries, patterns, and reasoning.

User: "How do I calculate customer retention for this dataset?"

Cognee tracks: expert SQL queries, workflow patterns, schema structures, successful implementations

# Agent response:
Agent: "Here's how senior analysts solved a similar retention query.
        Cognee matched your schema to a known structure and adapted
        the expert's logic to fit your dataset."

# What happens under the hood:
- Extracts and stores patterns from expert SQL queries and workflows
- Maps the current schema to previously seen structures
- Retrieves similar tasks and their successful implementations
- Adapts expert reasoning to the current context
- Updates memory with new successful patterns so junior analysts perform at near-expert level

Run the Whole Memory Layer on Postgres

Graph memory traditionally means operating a stack — a graph database for relationships, a vector database for embeddings, Redis for sessions, and a relational database for metadata — all deployed, secured, and paid for before an agent remembers anything. In cognee 1.0 you can run the entire memory layer on a single Postgres instance.

Memory layer Traditional stack cognee on Postgres
Relationships Neo4j or another graph database cognee's Postgres graph backend
Embeddings Dedicated vector database pgvector
Sessions Redis SQL session-cache backend
Metadata Relational database same Postgres

The graph still exists — it just lives inside the same Postgres-backed memory layer as the text, metadata, and embeddings, so retrieval moves between similarity and structure without crossing service boundaries. In our CI benchmarks, Postgres search ran ~10% faster than the separate graph-plus-vector setup.

Postgres is the default we recommend for most deployments, but you can still swap in dedicated backends when a workload needs them (Neo4j and Neptune for graphs, Redis for sessions, pgvector and LanceDB for vectors, plus Qdrant, ChromaDB, Weaviate, and Milvus via community adapters). Local development stays fully embedded — SQLite, LanceDB, and Kuzudb — with no extra services to stand up.

pip install "cognee[postgres]"
DB_PROVIDER=postgres
VECTOR_DB_PROVIDER=pgvector
GRAPH_DATABASE_PROVIDER=postgres
CACHE_BACKEND=postgres

DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=cognee
DB_PASSWORD=cognee
DB_NAME=cognee_db

Deploy Cognee

Use Cognee Cloud for a fully managed experience, or self-host with one of the 1-click deployment configurations below.

Platform Best For Command
Cognee Cloud Managed service, no infrastructure to maintain Sign up or await cognee.serve()
Modal Serverless, auto-scaling, GPU workloads bash distributed/deploy/modal-deploy.sh
Railway Simplest PaaS, native Postgres railway init && railway up
Fly.io Edge deployment, persistent volumes bash distributed/deploy/fly-deploy.sh
Render Simple PaaS with managed Postgres Deploy to Render button
Daytona Cloud sandboxes (SDK or CLI) See distributed/deploy/daytona_sandbox.py
Islo Isolated cloud sandboxes (SDK) See distributed/deploy/islo_sandbox.py

See the distributed/ folder for deploy scripts, worker configurations, and additional details.

Use Cognee in Other Languages

Prefer something other than Python? Cognee also ships official clients for Rust and TypeScript.

Getting Started with Rust

Use the cognee-rs crate to add, cognify, and search from Rust.

cargo add cognee

See the cognee-rs repository for full setup and examples.

Getting Started with TypeScript

Use the @cognee/cognee-ts package to add, cognify, and search from Node.js or the browser.

npm install @cognee/cognee-ts

See the @cognee/cognee-ts package for full setup and examples.

Benchmarks

We ran cognee against BEAM, a long-context benchmark that tests whether a system can keep track of a long conversation as it changes — a more useful test for agent memory than typical needle-in-a-haystack benchmarks. Using only cognee's default settings and standard open-source features (no custom models, no BEAM-specific pipelines), we beat the previous state of the art at the 100K-token setting and matched it at 10M tokens.

Benchmark Setting cognee Previous SOTA Obsidian / RAG baseline
BEAM 100K tokens 0.79 (>0.8 with per-question routing) 0.735 ~0.33
BEAM 10M tokens 0.67 0.641 ~0.33

These numbers are a directional signal rather than a definitive measure — see the BEAM preliminary report for the full methodology, caveats, and what the results actually mean.

Latest News

Watch Demo

Community & Support

Contributing

We welcome contributions from the community! Your input helps make Cognee better for everyone. See CONTRIBUTING.md to get started.

Code of Conduct

We're committed to fostering an inclusive and respectful community. Read our Code of Conduct for guidelines.

Research & Citation

We recently published a research paper on optimizing knowledge graphs for LLM reasoning:

@misc{markovic2025optimizinginterfaceknowledgegraphs,
      title={Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning},
      author={Vasilije Markovic and Lazar Obradovic and Laszlo Hajdu and Jovan Pavlovic},
      year={2025},
      eprint={2505.24478},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2505.24478},
}
View on GitHub

Recent activity

commits and pull requests

Recent open issues

view all

Discussions

all 128

Releases and announcements

130 total
  1. # v1.4.0.dev2 — Single-item Ingestion Pipeline (PoC) **Release Date:** 2026-07-29 **Changes:** v1.4.0.dev2 → poc/dlt-single-item-pipeline --- ## Summary This development release introduces a proof-of-concept single-item ingestion pipeline that focuses on processing individual pieces of data (like a single document or message) with lower latency and simpler error handling. Notes below summarize the user-facing changes and practical benefits; detailed code-level diffs were not provided, so contact the engineering team for exact implementation details. ## Highlights - Experimental single-item ingestion pipeline: process one document or message at a time for lower latency and simpler recovery. - Improved error handling and retry behavior for individual items so a failed item does not block the whole batch. - Developer-friendly tooling and configuration for creating and testing single-item pipelines. ## Breaking Changes - No breaking changes are expected in this development release. The single-item pipeline is experimental and disabled by default; enable it explicitly via configuration when ready. ## New Features - Single-item ingestion pipeline (proof-of-concept): A new exper

  2. v1.4.0.dev1 — Draft Release Notesv1.4.0.dev1Jul 22, 2026pre-release

    # v1.4.0.dev1 — Draft Release Notes **Release Date:** 2026-07-22 **Changes:** v1.4.0.dev1 → dev --- ## Summary This is a draft set of release notes for v1.4.0.dev1. The repository diff and commit details were not provided, so these notes outline likely categories of user-facing changes and suggest phrasing; please provide the commit list or diffs to finalize accurate release notes. ## Highlights - Draft summary of new user-facing features and improvements — needs commit details to finalize. - Placeholder highlights for performance and reliability enhancements. - Space reserved for any breaking changes or important upgrades that require user action. ## Breaking Changes - No breaking change details available in the provided data. If this release contains any API or config changes that require user action, list them here and explain how to migrate. ## New Features - Placeholder: New feature(s) — A brief description of any new functionality added in this release. Explain what it does and why it matters. (Please provide specific commits or PRs so we can replace this placeholder with exact feature descriptions.) - Placeholder: API additions — If new endpoints or client methods

  3. # v1.4.0.dev0 — Postgres null-handling reliability fix **Release Date:** 2026-07-20 **Changes:** v1.4.0.dev0 → fix-null-postgres --- ## Summary This development release fixes a class of errors where null or missing values caused failures when storing or querying data in Postgres. The update makes the Postgres storage path more tolerant of missing fields, improves error messages, and adds tests to prevent regressions. ## Highlights - Fix for Postgres ingestion failures when records include null (missing) fields. - Improved error handling and clearer messages when optional fields are absent. - Tests and internal safeguards added to prevent similar regressions in the future. ## Breaking Changes - None. This release is backwards-compatible. Existing databases and data are not required to be migrated; nulls are now handled more gracefully. ## New Features - No new end-user features in this release. The work focuses on reliability: if you use Cognee with a Postgres-backed storage connector (the component that saves your memories/documents into a Postgres database), writing or querying records that contain null or missing fields will no longer cause failures. ## Improvements -

  4. # v1.4.0 — Search & Ingestion Improvements **Release Date:** 2026-07-17 **Changes:** v1.4.0 → main --- ## Summary This release focuses on improving how documents are added and found in Cognee, plus stability and UI polish. It includes (draft) improvements to ingestion speed, search relevance, and some user-facing management tools. Please provide commit details if you want a finalized, authoritative changelog. ## Highlights - Faster and more reliable ingestion for large files and document batches, reducing wait times when adding data. - Improved search relevance that returns more accurate results for typical queries. - New dataset-level overview index (optional) that groups documents by topic and creates short summaries so searches have broader context. - Usability updates to dataset management and search result display in the UI. - General bug fixes and stability improvements. ## Breaking Changes - No breaking changes were identified from the information given. If this release includes changes that require user action (API changes, removed fields, authentication changes), provide the diff or commit notes so we can call them out clearly. ## New Features - Optional dataset-

  5. # v1.3.0 — Smarter Search & Dataset Indexing **Release Date:** 2026-07-12 **Changes:** v1.3.0 → main --- ## Summary This release focuses on making search more accurate and dataset management easier. It introduces a new optional dataset index that groups documents into topic clusters and provides short overviews, plus improved ingestion and filtering tools so you get better answers faster from your memory data. ## Highlights - New optional "Topic Index" for datasets — groups documents into topic clusters and a short overview to improve search context and answer quality. - Batch ingestion improvements — easier and faster bulk uploads with progress and resumable retries. - Search relevance and ranking upgrades — more accurate, less noisy results for common queries. ## Breaking Changes - No breaking changes in v1.3.0. Existing APIs and client integrations should continue to work as before. The new Topic Index and embedding configuration options are optional and opt-in. ## New Features - Topic Index (optional): A new index that organizes a dataset (the collection of documents you've added) into topic clusters and generates a short overview for each cluster. What it does: adds

Code frequency

additions and deletions
+55.8K-55.8KWeek of 2025-08-03: +51,273 linesWeek of 2025-08-03: -21,029 linesWeek of 2025-08-10: +9,180 linesWeek of 2025-08-10: -15,191 linesWeek of 2025-08-17: +9,607 linesWeek of 2025-08-17: -6,574 linesWeek of 2025-08-24: +11,899 linesWeek of 2025-08-24: -8,829 linesWeek of 2025-08-31: +6,410 linesWeek of 2025-08-31: -1,528 linesWeek of 2025-09-07: +7,771 linesWeek of 2025-09-07: -7,707 linesWeek of 2025-09-14: +9,575 linesWeek of 2025-09-14: -5,246 linesWeek of 2025-09-21: +13,597 linesWeek of 2025-09-21: -11,766 linesWeek of 2025-09-28: +12,409 linesWeek of 2025-09-28: -9,370 linesWeek of 2025-10-05: +19,809 linesWeek of 2025-10-05: -28,086 linesWeek of 2025-10-12: +21,005 linesWeek of 2025-10-12: -27,934 linesWeek of 2025-10-19: +14,399 linesWeek of 2025-10-19: -12,267 linesWeek of 2025-10-26: +9,413 linesWeek of 2025-10-26: -5,291 linesWeek of 2025-11-02: +6,098 linesWeek of 2025-11-02: -3,001 linesWeek of 2025-11-09: +3,701 linesWeek of 2025-11-09: -1,476 linesWeek of 2025-11-16: +3,058 linesWeek of 2025-11-16: -975 linesWeek of 2025-11-23: +12,110 linesWeek of 2025-11-23: -8,248 linesWeek of 2025-11-30: +9,335 linesWeek of 2025-11-30: -7,312 linesWeek of 2025-12-07: +6,919 linesWeek of 2025-12-07: -3,353 linesWeek of 2025-12-14: +28,537 linesWeek of 2025-12-14: -18,092 linesWeek of 2025-12-21: +21 linesWeek of 2025-12-21: -5 linesWeek of 2025-12-28: +8,373 linesWeek of 2025-12-28: -5,329 linesWeek of 2026-01-04: +2,561 linesWeek of 2026-01-04: -1,187 linesWeek of 2026-01-11: +15,833 linesWeek of 2026-01-11: -3,608 linesWeek of 2026-01-18: +8,692 linesWeek of 2026-01-18: -7,029 linesWeek of 2026-01-25: +5,459 linesWeek of 2026-01-25: -3,415 linesWeek of 2026-02-01: +20,827 linesWeek of 2026-02-01: -16,593 linesWeek of 2026-02-08: +26,582 linesWeek of 2026-02-08: -19,499 linesWeek of 2026-02-15: +15,659 linesWeek of 2026-02-15: -16,738 linesWeek of 2026-02-22: +31,883 linesWeek of 2026-02-22: -33,278 linesWeek of 2026-03-01: +13,702 linesWeek of 2026-03-01: -6,531 linesWeek of 2026-03-08: +49,197 linesWeek of 2026-03-08: -35,966 linesWeek of 2026-03-15: +15,800 linesWeek of 2026-03-15: -8,875 linesWeek of 2026-03-22: +17,374 linesWeek of 2026-03-22: -7,212 linesWeek of 2026-03-29: +33,586 linesWeek of 2026-03-29: -29,213 linesWeek of 2026-04-05: +55,841 linesWeek of 2026-04-05: -35,713 linesWeek of 2026-04-12: +29,993 linesWeek of 2026-04-12: -24,788 linesWeek of 2026-04-19: +29,658 linesWeek of 2026-04-19: -20,850 linesWeek of 2026-04-26: +31,241 linesWeek of 2026-04-26: -22,206 linesWeek of 2026-05-03: +15,036 linesWeek of 2026-05-03: -12,170 linesWeek of 2026-05-10: +34,087 linesWeek of 2026-05-10: -22,138 linesWeek of 2026-05-17: +15,076 linesWeek of 2026-05-17: -6,751 linesWeek of 2026-05-24: +19,401 linesWeek of 2026-05-24: -8,299 linesWeek of 2026-05-31: +10,395 linesWeek of 2026-05-31: -6,282 linesWeek of 2026-06-07: +34,890 linesWeek of 2026-06-07: -8,550 linesWeek of 2026-06-14: +22,177 linesWeek of 2026-06-14: -19,355 linesWeek of 2026-06-21: +15,499 linesWeek of 2026-06-21: -3,338 linesWeek of 2026-06-28: +34,067 linesWeek of 2026-06-28: -7,048 linesWeek of 2026-07-05: +29,335 linesWeek of 2026-07-05: -25,196 linesWeek of 2026-07-12: +23,821 linesWeek of 2026-07-12: -12,547 linesWeek of 2026-07-19: +220 linesWeek of 2026-07-19: -629 linesWeek of 2026-07-26: +146 linesWeek of 2026-07-26: -0 linesAug 3, 2025Jul 26, 2026
+932.5K lines added, -633.6K removed over the last year.

Commits per week

last 52 weeks
1780Week of 2025-08-03: 20 commitsWeek of 2025-08-10: 78 commitsWeek of 2025-08-17: 47 commitsWeek of 2025-08-24: 123 commitsWeek of 2025-08-31: 50 commitsWeek of 2025-09-07: 87 commitsWeek of 2025-09-14: 85 commitsWeek of 2025-09-21: 80 commitsWeek of 2025-09-28: 43 commitsWeek of 2025-10-05: 136 commitsWeek of 2025-10-12: 133 commitsWeek of 2025-10-19: 133 commitsWeek of 2025-10-26: 81 commitsWeek of 2025-11-02: 94 commitsWeek of 2025-11-09: 53 commitsWeek of 2025-11-16: 32 commitsWeek of 2025-11-23: 42 commitsWeek of 2025-11-30: 39 commitsWeek of 2025-12-07: 37 commitsWeek of 2025-12-14: 80 commitsWeek of 2025-12-21: 2 commitsWeek of 2025-12-28: 26 commitsWeek of 2026-01-04: 40 commitsWeek of 2026-01-11: 102 commitsWeek of 2026-01-18: 60 commitsWeek of 2026-01-25: 106 commitsWeek of 2026-02-01: 81 commitsWeek of 2026-02-08: 171 commitsWeek of 2026-02-15: 85 commitsWeek of 2026-02-22: 74 commitsWeek of 2026-03-01: 75 commitsWeek of 2026-03-08: 105 commitsWeek of 2026-03-15: 76 commitsWeek of 2026-03-22: 100 commitsWeek of 2026-03-29: 107 commitsWeek of 2026-04-05: 178 commitsWeek of 2026-04-12: 87 commitsWeek of 2026-04-19: 136 commitsWeek of 2026-04-26: 88 commitsWeek of 2026-05-03: 70 commitsWeek of 2026-05-10: 132 commitsWeek of 2026-05-17: 84 commitsWeek of 2026-05-24: 89 commitsWeek of 2026-05-31: 81 commitsWeek of 2026-06-07: 126 commitsWeek of 2026-06-14: 86 commitsWeek of 2026-06-21: 114 commitsWeek of 2026-06-28: 87 commitsWeek of 2026-07-05: 101 commitsWeek of 2026-07-12: 88 commitsWeek of 2026-07-19: 10 commitsWeek of 2026-07-26: 1 commitsAug 3, 2025Jul 26, 2026
4.2K commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 14 commitsSun 1:00 — 8 commitsSun 2:00 — 7 commitsSun 3:00 — 6 commitsSun 4:00 — 1 commitsSun 5:00 — 3 commitsSun 6:00 — 0 commitsSun 7:00 — 3 commitsSun 8:00 — 7 commitsSun 9:00 — 18 commitsSun 10:00 — 16 commitsSun 11:00 — 24 commitsSun 12:00 — 22 commitsSun 13:00 — 22 commitsSun 14:00 — 33 commitsSun 15:00 — 33 commitsSun 16:00 — 23 commitsSun 17:00 — 21 commitsSun 18:00 — 27 commitsSun 19:00 — 31 commitsSun 20:00 — 49 commitsSun 21:00 — 42 commitsSun 22:00 — 27 commitsSun 23:00 — 17 commitsMon 0:00 — 13 commitsMon 1:00 — 4 commitsMon 2:00 — 2 commitsMon 3:00 — 8 commitsMon 4:00 — 3 commitsMon 5:00 — 1 commitsMon 6:00 — 2 commitsMon 7:00 — 8 commitsMon 8:00 — 5 commitsMon 9:00 — 19 commitsMon 10:00 — 31 commitsMon 11:00 — 56 commitsMon 12:00 — 65 commitsMon 13:00 — 64 commitsMon 14:00 — 88 commitsMon 15:00 — 96 commitsMon 16:00 — 68 commitsMon 17:00 — 83 commitsMon 18:00 — 60 commitsMon 19:00 — 40 commitsMon 20:00 — 41 commitsMon 21:00 — 37 commitsMon 22:00 — 55 commitsMon 23:00 — 27 commitsTue 0:00 — 9 commitsTue 1:00 — 20 commitsTue 2:00 — 9 commitsTue 3:00 — 9 commitsTue 4:00 — 0 commitsTue 5:00 — 1 commitsTue 6:00 — 8 commitsTue 7:00 — 5 commitsTue 8:00 — 20 commitsTue 9:00 — 33 commitsTue 10:00 — 62 commitsTue 11:00 — 70 commitsTue 12:00 — 57 commitsTue 13:00 — 87 commitsTue 14:00 — 115 commitsTue 15:00 — 107 commitsTue 16:00 — 93 commitsTue 17:00 — 88 commitsTue 18:00 — 70 commitsTue 19:00 — 64 commitsTue 20:00 — 50 commitsTue 21:00 — 42 commitsTue 22:00 — 34 commitsTue 23:00 — 37 commitsWed 0:00 — 20 commitsWed 1:00 — 11 commitsWed 2:00 — 12 commitsWed 3:00 — 5 commitsWed 4:00 — 0 commitsWed 5:00 — 3 commitsWed 6:00 — 13 commitsWed 7:00 — 5 commitsWed 8:00 — 5 commitsWed 9:00 — 25 commitsWed 10:00 — 60 commitsWed 11:00 — 76 commitsWed 12:00 — 110 commitsWed 13:00 — 90 commitsWed 14:00 — 120 commitsWed 15:00 — 109 commitsWed 16:00 — 127 commitsWed 17:00 — 112 commitsWed 18:00 — 102 commitsWed 19:00 — 64 commitsWed 20:00 — 67 commitsWed 21:00 — 41 commitsWed 22:00 — 44 commitsWed 23:00 — 27 commitsThu 0:00 — 14 commitsThu 1:00 — 12 commitsThu 2:00 — 7 commitsThu 3:00 — 2 commitsThu 4:00 — 0 commitsThu 5:00 — 2 commitsThu 6:00 — 6 commitsThu 7:00 — 12 commitsThu 8:00 — 13 commitsThu 9:00 — 26 commitsThu 10:00 — 56 commitsThu 11:00 — 93 commitsThu 12:00 — 92 commitsThu 13:00 — 135 commitsThu 14:00 — 109 commitsThu 15:00 — 106 commitsThu 16:00 — 116 commitsThu 17:00 — 125 commitsThu 18:00 — 105 commitsThu 19:00 — 53 commitsThu 20:00 — 55 commitsThu 21:00 — 44 commitsThu 22:00 — 32 commitsThu 23:00 — 32 commitsFri 0:00 — 20 commitsFri 1:00 — 9 commitsFri 2:00 — 23 commitsFri 3:00 — 11 commitsFri 4:00 — 1 commitsFri 5:00 — 0 commitsFri 6:00 — 1 commitsFri 7:00 — 5 commitsFri 8:00 — 11 commitsFri 9:00 — 35 commitsFri 10:00 — 63 commitsFri 11:00 — 73 commitsFri 12:00 — 87 commitsFri 13:00 — 99 commitsFri 14:00 — 92 commitsFri 15:00 — 122 commitsFri 16:00 — 84 commitsFri 17:00 — 108 commitsFri 18:00 — 68 commitsFri 19:00 — 41 commitsFri 20:00 — 18 commitsFri 21:00 — 24 commitsFri 22:00 — 19 commitsFri 23:00 — 16 commitsSat 0:00 — 15 commitsSat 1:00 — 7 commitsSat 2:00 — 11 commitsSat 3:00 — 5 commitsSat 4:00 — 1 commitsSat 5:00 — 1 commitsSat 6:00 — 1 commitsSat 7:00 — 3 commitsSat 8:00 — 12 commitsSat 9:00 — 15 commitsSat 10:00 — 27 commitsSat 11:00 — 18 commitsSat 12:00 — 23 commitsSat 13:00 — 17 commitsSat 14:00 — 27 commitsSat 15:00 — 38 commitsSat 16:00 — 30 commitsSat 17:00 — 45 commitsSat 18:00 — 42 commitsSat 19:00 — 55 commitsSat 20:00 — 29 commitsSat 21:00 — 25 commitsSat 22:00 — 22 commitsSat 23:00 — 19 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.
DateListRankStars gained
Jun 28, 2026daily#23+24
Jun 27, 2026daily#10+46
Jun 24, 2026daily#5+25
Jun 23, 2026daily#25+7
  • public-apis/public-apis

    A collective list of free APIs

    454.9K stars · Python

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    385.5K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • openclaw/openclaw

    Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

    384.4K stars · TypeScript

  • donnemartin/system-design-primer

    Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

    362.2K stars · Python