---
title: "Quickstart"
description: "Get started with Engram by creating a project, generating an API key, storing a memory, and searching it."
url: https://docs.weaviate.io/engram/quickstart
---

# Quickstart

> [!WARNING]
>
> **Engram is being sunset**
>
> We have decided to sunset Engram. Existing projects will continue to work until December 31, 2026. It is no longer possible to create new Engram projects.

Engram is a memory server for LLM agents and applications. It automatically extracts, transforms, and stores memories using vector embeddings and LLM-powered processing.

This guide walks you through the core Engram workflow: create a project, get an API key, store a memory, and search for it.

## Prerequisites

- A [Weaviate Cloud](https://console.weaviate.cloud) account
- `curl` or install the Engram [Python SDK](https://pypi.org/project/weaviate-engram/):

#### pip

```bash
pip install weaviate-engram
```

#### uv

```bash
uv add weaviate-engram
```

## Step 1: Create a project

Every memory in Engram belongs to a project. Create one in the [Weaviate Cloud console](https://console.weaviate.cloud).

Follow this interactive walkthrough to create a project with the **Personalization** template, set up its group and the `UserKnowledge` topic, and generate an API key to connect to it:

[Embedded content](https://app.guideflow.com/embed/xrg3yooiwk)

You can select a predefined template when creating a project. For this tutorial, use the **Personalization template**.

The template sets up the project's `default` [group](https://docs.weaviate.io/engram/concepts/groups) with default [topics](https://docs.weaviate.io/engram/concepts/topics), such as `UserKnowledge` for general information about the user. This is enough to get started.

The template also lets you optionally add a `ConversationSummary` topic, which maintains a single summary per conversation. Enabling this option makes a `conversation_id` [property](https://docs.weaviate.io/engram/concepts/scopes) required when adding memories that target it, which is why it's disabled by default.

**Concepts to learn**

Here are the key concepts:

- **[Topics](https://docs.weaviate.io/engram/concepts/topics)** — Named categories that control what kinds of information Engram extracts. The topic's description guides the LLM during extraction.
- **[Groups](https://docs.weaviate.io/engram/concepts/groups)** — Containers of topics. Each group maps to a use case (e.g. personalization, continual learning).
- **[Scopes](https://docs.weaviate.io/engram/concepts/scopes)** — Control who memories belong to. The default topic `UserKnowledge` is user-scoped, meaning you must provide a `user_id` so each user's memories stay separate.

Visit the [concepts section](https://docs.weaviate.io/engram/concepts) to learn more about how these work together.

## Step 2: Create an API key

Generate an API key for your project in the Weaviate Cloud console. The full key is only shown once — save it securely.

Set it as an environment variable for the examples below:

```bash
export ENGRAM_API_KEY="eng_abcdef123456..."
```

> [!WARNING]
>
> Copy and store the API key immediately. You cannot retrieve it again after it is displayed.

## Step 3: Connect to Engram

**Python**

Initialize the client with your API key.

```py
client = EngramClient(
    api_key=os.environ["ENGRAM_API_KEY"]
)
```

**Curl**

All `curl` commands authenticate via the `Authorization` header with a Bearer token:

```bash
-H "Authorization: Bearer $ENGRAM_API_KEY"
```

## Step 4: Store a memory

Send content to Engram using the memory API. This example sends a plain text string.

**Python**

```py
run = client.memories.add(
    "The user prefers dark mode and uses VS Code as their primary editor.",
    user_id="alice",  # any unique string per user (e.g. a username)
)

print(run.run_id)
print(run.status)
```

**Curl**

```bash
curl -X POST https://api.engram.weaviate.io/v1/memories \
  -H "Authorization: Bearer $ENGRAM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "string": {
        "content": [
          "The user prefers dark mode and uses VS Code as their primary editor."
        ]
      }
    },
    "user_id": "user-uuid"
  }'
```

Engram processes memories asynchronously and immediately returns a `run_id`. In most cases you don't need to wait, since memories become available for search once the pipeline finishes. If you want to confirm when a run completes, see [Check run status](https://docs.weaviate.io/engram/guides/check-run-status).

**Example response**

```json
{
  "run_id": "run-uuid",
  "status": "running"
}
```

## Step 5: Search memories

Search for relevant memories using a natural language query.

**Python**

```py
results = client.memories.search(
    query="What editor does the user prefer?",
    user_id="alice",
)

for memory in results:
    print(memory.content)
```

**Curl**

```bash
curl -X POST https://api.engram.weaviate.io/v1/memories/search \
  -H "Authorization: Bearer $ENGRAM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What editor does the user prefer?",
    "user_id": "user-uuid",
    "retrieval_config": {
      "retrieval_type": "hybrid",
      "limit": 5
    }
  }'
```

**Example response**

```json
{
  "memories": [
    {
      "id": "memory-uuid",
      "project_id": "project-uuid",
      "user_id": "user-uuid",
      "content": "The user prefers dark mode.",
      "topic": "UserKnowledge",
      "group": "default",
      "created_at": "2025-01-01T00:00:01Z",
      "updated_at": "2025-01-01T00:00:01Z",
      "score": 1
    },
    {
      "id": "memory-uuid-2",
      "project_id": "project-uuid",
      "user_id": "user-uuid",
      "content": "The user uses VS Code as their primary editor.",
      "topic": "UserKnowledge",
      "group": "default",
      "created_at": "2025-01-01T00:00:01Z",
      "updated_at": "2025-01-01T00:00:01Z",
      "score": 1
    }
  ],
  "total": 2
}
```

## Next steps

- Learn about [core concepts](https://docs.weaviate.io/engram/concepts) like topics, groups, and pipelines.
- Explore different ways to [store memories](https://docs.weaviate.io/engram/guides/store-memories), including conversations and pre-extracted data.
- See all [search options](https://docs.weaviate.io/engram/guides/search-memories) including vector, BM25, and hybrid retrieval.
