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

# Go

> Go SDK for the current Memorose `/v1` runtime.

# Go

Install the official Go SDK:

```bash theme={null}
go get github.com/memorose/memorose-sdk/go
```

Basic retrieval flow:

```go theme={null}
client := memorose.NewClient("http://127.0.0.1:3000", "your_api_key")
_, _ = client.IngestEvent(ctx, "user_123", streamID, memorose.IngestRequest{
    Content: "Dylan prefers concise summaries.",
})

response, err := client.RetrieveMemory(ctx, "user_123", streamID, memorose.RetrieveRequest{
    Query: "What does Dylan prefer?",
    Limit: 5,
})
if err != nil {
    log.Fatal(err)
}
```

Server-side reranker mode, including `arbitrator`, is configured when the Memorose server starts. SDK requests do not select the reranker model.
