cognee

Converts inputs into a persistent, searchable graph-based memory for AI agents via asynchronous Python API.

29.9k|2.9k|Updated Aug 16, 2023
One-click install
npx skills add https://github.com/topoteretes/cognee --skill cognee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cognee
Source: https://github.com/topoteretes/cognee/tree/main/cognee
Command: npx skills add https://github.com/topoteretes/cognee --skill cognee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cognee provides a knowledge engine that creates persistent, cross-session memory for AI agents by turning inputs into graph-based memory and enabling retrieval across sessions.

Core Features & Use Cases

  • Ingest data (text, files, URLs, datasets) and build a graph-based memory that can be queried with various search types.
  • Manage datasets and NodeSets to scope memory for tenants, teams, or individual agents.
  • Support self-improving agent workflows via memory enrichment, feedback loops, and visualizations.

Quick Start

Ingest data with add, transform it into a knowledge graph with cognify, and query insights with search.

Frequently Asked Questions about cognee

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add persistent memory to AI agents across multiple sessions?

Persistent memory for AI agents is created by converting inputs into a searchable knowledge graph using cognify, enabling cross-session retrieval across tasks and agents. You ingest data with add, transform it, and query insights with search.

What is a knowledge graph approach for AI memory management?

Knowledge graph memory management transforms ingested text, files, and URLs into a structured graph, enabling multi-user memory scoping and searchable retrieval. This mechanism supports feedback loops, memory enrichment, and self-improving agent workflows.

How do I scope AI agent memory for different tenants and teams?

You scope AI agent memory by managing datasets and NodeSets to isolate context for tenants, teams, or individual agents. This ensures cross-session retrieval remains specific to the designated context and prevents data overlap between users.

Can I use Python to build and query a persistent knowledge graph for AI?

Yes, you can build and query a persistent knowledge graph using an asynchronous Python API. It exposes add, cognify, search, memify, datasets, prune, and visualize functions, requiring integration with storage paths, graph, and vector DB backends.

What is the best way to visualize and maintain a knowledge graph for agent memory?

The best way to maintain a knowledge graph is using the visualize function to inspect graph structure and the prune function to remove stale data. This supports self-improving workflows via memory enrichment and visualizations.

Do I need vector DB and graph database backends for AI agent memory management?

Yes, you need to integrate storage paths, graph DB backends, and vector DB backends to build persistent AI agent memory. These backends store the graph structure and enable the various search types required for cross-session retrieval.