new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

mem0/setup

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Mem0 environment variables for security

Use `MEM0_API_KEY` and `OPENAI_API_KEY` (or provider-specific API keys) as environment variables for security instead of hardcoding them.

Mem0 provider module installation

The Mem0 provider is available in the `@mem0/vercel-ai-provider` module and can be installed as a package.

Mem0 API Key requirement

You need a Mem0 API Key obtained from the Mem0 Dashboard at https://app.mem0.ai/dashboard/api-keys to initialize the Mem0 Client.

Mem0 client initialization with createMem0

The Mem0 Client is initialized using the `createMem0` function from `@mem0/vercel-ai-provider`. The function accepts parameters: provider (default is 'openai'), mem0ApiKey, apiKey (for the LLM provider), config (for LLM provider configuration), and optional mem0Config (for global Mem0 configuration like user_id, enable_graph, agent_id, app_id, run_id, org_id, project_id).

Mem0 initialization code example

```ts import { createMem0 } from '@mem0/vercel-ai-provider'; const mem0 = createMem0({ provider: 'openai', mem0ApiKey: 'm0-xxx', apiKey: 'provider-api-key', config: { // Configure the LLM Provider here }, // Optional Mem0 Global Config mem0Config: { user_id: 'mem0-user-id', enable_graph: true, }, }); ``` This example shows how to initialize a Mem0 client with OpenAI as the provider, setting the Mem0 API key, provider API key, and optional global configuration.

Give your agent this brain