> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognee.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Python API Reference

> Complete Python API reference for the cognee package

# Python API Reference

Complete reference for the `cognee` Python package. All functions are accessible
directly from the top-level `cognee` module.

```python theme={null}
import cognee

# v1.0 workflow
await cognee.remember("Your data here")
results = await cognee.recall("Your query")
```

## Core Operations

These are the default v1.0 entry points for storing, querying, enriching, and deleting memory.

<CardGroup cols={2}>
  <Card title="remember()" href="/python-api/remember" icon="brain">
    Store data as permanent graph memory or fast session memory in one call.
  </Card>

  <Card title="recall()" href="/python-api/recall" icon="search">
    Query memory with auto-routing and session-aware retrieval.
  </Card>

  <Card title="improve()" href="/python-api/improve" icon="sparkles">
    Enrich an existing graph and bridge session memory into permanent memory.
  </Card>

  <Card title="forget()" href="/python-api/forget" icon="trash">
    Remove a data item, an entire dataset, or all memory for the current user.
  </Card>
</CardGroup>

## Legacy Operations

The lower-level pipeline operations are still available when you need direct control over each step.

<CardGroup cols={2}>
  <Card title="add()" href="/python-api/add" icon="plus">
    Ingest text, files, or structured data into the knowledge base.
  </Card>

  <Card title="cognify()" href="/python-api/cognify" icon="brain">
    Transform raw data into a structured knowledge graph.
  </Card>

  <Card title="search()" href="/python-api/search" icon="search">
    Query the knowledge graph with multiple search modes.
  </Card>

  <Card title="memify()" href="/python-api/memify" icon="sparkles">
    Enrich an existing knowledge graph with custom extraction and enrichment tasks.
  </Card>
</CardGroup>

## Data Management

<CardGroup cols={2}>
  <Card title="datasets" href="/python-api/datasets" icon="database">
    List, create, and delete datasets.
  </Card>

  <Card title="update()" href="/python-api/update" icon="pen">
    Update existing data items.
  </Card>

  <Card title="prune" href="/python-api/prune" icon="trash">
    Clean up data and system resources.
  </Card>

  <Card title="delete()" href="/python-api/delete" icon="trash">
    Delete data items (deprecated — use datasets).
  </Card>

  <Card title="run_startup_migrations()" href="/python-api/run-migrations" icon="circle-fading-arrow-up">
    Apply pending relational and vector database schema migrations.
  </Card>
</CardGroup>

## Session Management

<CardGroup cols={2}>
  <Card title="Sessions Guide" href="/guides/sessions" icon="message-square">
    Use `session_id` and inspect stored conversation history with `get_session()`.
  </Card>

  <Card title="Feedback System" href="/guides/feedback-system" icon="brain-circuit">
    Add and clear feedback on stored session Q\&A entries.
  </Card>
</CardGroup>

## Configuration & Utilities

<CardGroup cols={2}>
  <Card title="config" href="/python-api/config" icon="gear">
    Configure LLM providers, databases, chunking, and more.
  </Card>

  <Card title="SearchType" href="/python-api/search-type" icon="list">
    All available search modes and when to use them.
  </Card>

  <Card title="run_custom_pipeline()" href="/python-api/custom-pipeline" icon="route">
    Execute custom task pipelines.
  </Card>

  <Card title="Data Models" href="/python-api/data-models" icon="shapes">
    Key types: DataPoint, Task, PipelineRunInfo, SearchResult.
  </Card>
</CardGroup>
