> For the complete documentation index, see [llms.txt](https://docs.llongterm.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.llongterm.com/docs/javascript/mind.ask.md).

# mind.ask

You can use the `ask` method to enrich user queries with context pulled from the mind's memory.

```javascript

const { knowledge } = await mind.ask('How does the user feel about apples?');

console.log("Extracted knowledge: ", response);
```

| Parameter | Type   | Description                         |
| --------- | ------ | ----------------------------------- |
| question  | string | The user's question to ask the mind |

**Response**

| Property  | Type   | Description                                           |
| --------- | ------ | ----------------------------------------------------- |
| knowledge | string | The answer generated by the LLM, enriched with memory |
