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

# Explore: graph, entities, receipts, chat

> Look at a space's entity graph, entities and context receipts, ask about one end user, chat with memory and list space types from the anona CLI.

pip 0.26.0; npm 0.20.0

Read-side commands for understanding what a space holds and why a request
returned what it did. Each takes `--space` (or `ANONA_SPACE_ID`), `--api-key` and
`--json`, except `receipts get` and `space-types`, which take no `--space`.

## Graph and entities

```bash theme={null}
anona graph --limit 20 --space notes
anona graph draw "memories added per week" --space notes
anona entities list --limit 20 --space notes
anona entities get ENTITY_ID --space notes
```

`graph` prints `<n> entities, <m> links` and then `name (count)` for each node,
at most 50 lines. Edges are co-occurrence, not typed relationships. See
[Graph](https://docs.anonalabs.com/api-reference/graph.md).

| Flag | On | |
| - | - | - |
| `--limit N` | `graph` | At most this many entities, 1-2000 (default 500) |
| `--min-count N` | `graph` | Only entities mentioned at least this many times |
| `--model M` | `graph draw` | The LLM that draws the chart (see `anona llm-models`) |
| `--limit N`, `--offset N` | `entities list` | Up to 500 (default 100); skip |

`graph draw PROMPT` asks for a chart or diagram drawn from the space's memories
([Draw](https://docs.anonalabs.com/api-reference/draw.md)); `--json` gives `{"chart", "diagram", "mermaid", "text", "model"}`. `entities list` prints `<id>  <name>  <mention_count>` for each entity,
most mentioned first; `entities get` shows one and the observations behind it.

## Receipts

```bash theme={null}
anona receipts get REQUEST_ID
anona receipts get REQUEST_ID --explain --memory-id MEMORY_ID
```

The context receipt of a request that asked for one: what was included, what
was left out, and the token accounting. `REQUEST_ID` is the `X-Request-ID` of a
retrieve or proxied call. `--explain` explains why one memory was or was not
included, and needs `--memory-id`. See [Context receipts](https://docs.anonalabs.com/api-reference/context-receipts.md).

## Ask about one user

```bash theme={null}
anona ask-user alice "What does she prefer?" --space notes
anona ask-user alice "What does she prefer?" --depth thorough --model MODEL --space notes
```

Answers a question about one end user, from what the space knows of them. `USER`
is the `user_id` your writes were [scoped](https://docs.anonalabs.com/guides/scoping-multi-tenant.md) with.
`--model M` picks the LLM (see `anona llm-models`; default: the space's) and
`--depth fast|thorough` how deep it reads. See [User profiles](https://docs.anonalabs.com/api-reference/user-profiles.md).

## Chat

```bash theme={null}
anona chat "What did we decide about releases?" --space notes
anona chat "Hello" --space notes --no-memory
```

One message through the memory-backed [chat proxy](https://docs.anonalabs.com/api-reference/chat.md). It
prints the reply. `--no-memory` sends `"memory": false` and `"auto_record": false`:
nothing is recalled into the turn and the turn is not recorded. `--model M`
picks the LLM.

## Space types

```bash theme={null}
anona space-types
```

The templates a new space can start from: `<id>  <name>`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.