Cognee

Active
GitHub Python Apache-2.0

Description

A knowledge engine for AI agent memory that builds knowledge graphs and memory layers in 6 lines of code, supporting graph databases, vector stores, and more for knowledge extraction and retrieval.

Key Features

  • Build knowledge graphs and memory layers in 6 lines of code
  • Core API: remember, recall, forget, improve operations
  • Session memory and permanent knowledge graph dual-mode
  • Auto-routing for optimal search strategy selection
  • Claude Code plugin support for cross-session persistent memory
  • Multiple backends: graph databases, vector stores, multiple LLM providers

Use Cases

💡 Adding cross-session persistent memory to AI agents
💡 Building enterprise knowledge graphs for semantic search and reasoning
💡 Sharing knowledge and context across multiple agents
💡 Transforming unstructured documents into queryable structured knowledge

Quick Start

Install: uv pip install cognee, set your LLM API key, use cognee.remember() to store data, cognee.recall() to query, cognee.forget() to clean up.

Related Projects